forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSIPP PGWARE You There?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Nov 01, 2005 5:15 am    Post subject: VDSIPP PGWARE You There? Reply with quote

Quick question. I have a problem with a TCP Server that I am working with in VDSIPP.

Below is what I have

%A = 12.151.5.2
INTERNET TCP,SEND,1,%A

On the remote end I gets nothing.

However if I telnet to the port that is listening on the remote end and type 12.151.5.2 into the telnet window it shows up. Is this something to do with Null characters and if so what should my send line look like?

Thanks. Also could it be the periods in the message im sending that is causing the problem?

Thanks.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Nov 01, 2005 8:13 am    Post subject: Reply with quote

You might want to put a @cr() of @lf() (or both) at the end of the line of text you send to inform the server it is the end of the text string... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Nov 01, 2005 3:11 pm    Post subject: Reply with quote

To add one more, a NULL char in VDS is expressed with @chr(0).
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Nov 01, 2005 7:55 pm    Post subject: No Dice Reply with quote

I have tried everything and still no dice. Null characters, line feeds, you name it. I dont know what telnet is doing that the dll isnt but im about to use a network sniffer to try and see what is going over the wire to figure out what is different between telnet and how the application is communicating.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Nov 01, 2005 7:59 pm    Post subject: Help File on this Matter Reply with quote

In order to use the special directive ^NULL^ you must first turn this feature on within the Internet Protcol Package extension. To do this use the command:

This is what the help file states on this DLL.

INTERNET REPLACENULL, ON

Now anytime you need to send a null character (character 0) place the text ^NULL^ where you need to send a null character. The Internet Protocol Package will then send an actual character 0 in it's place to the intended server/client. Also when you use functions to return text/messages any returned text with a null character will also be replaced with the directive ^NULL^.

The concept here is that character 0's are replaced with readable text ^NULL^, but when actual communication is sent to other client/servers the readable text is then converted back to a null character (character 0). If for any reason you choose to turn this feature off you can use the command:

MY QUESTION IS TO FORMAT - What is the correct format for doing this? I tried ^NULL^ after %A in the script no dice.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Nov 03, 2005 3:21 pm    Post subject: Reply with quote

I take it you are communicating with a telnet server??

the command:

INTERNET TCP, SEND, 1, 'whatever text'

automatically adds a linefeed character to the end of the text.


It could be the server does not accept the linefeed characters at the end of the text.

Try using:

INTERNET TCP, SIMPLESEND, 1, 'whatever text'

This does not add any linefeed to the end of the transmission. See if this works with your server.


Your server also may expect some other text or character denoting an end of line rather than a linefeed or character 0.



In regards to your other question. The command:

INTERNET REPLACENULL, ON

allows you to send character 0's within your communications.

You can do something like:

INTERNET TCP, SEND, 1, "whatever text ^NULL^"

This would send - whatever text (and then followed with the character 0).

Also if the server sends any text with a character 0 in it, then it is replaced in your vds app with ^NULL^, allowing you to read in the text completely.
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Thu Nov 03, 2005 4:54 pm    Post subject: Thanks Reply with quote

The second example you gave me seems to have fixed it. Im connecting to a regular TCP server and it seems to have worked fine using the second method. Gonna update my notes so that I know that I may need to code it this way in the future. Thanks a million.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sat Nov 05, 2005 2:42 pm    Post subject: Reply with quote

It's documented in the helpfile Smile It's actually one of the latest commands added into vdsipp before the project was closed.

The UDP protocol also has this command in it as well. There are a few protocols which don't like the line-feed character in it. I know MSN doesn't like it and I think telnet doesn't either.
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sun Nov 06, 2005 6:08 am    Post subject: Yep Reply with quote

I saw it in the help file but I didnt know the exact format to do it. So when you posted I tried it and it worked beautifully.

Again thanks for supporting it even though the project is no more. Would it be possible for you to turn over the project to somebody for future development. You probably cant but its worth asking.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Sun Nov 06, 2005 6:21 pm    Post subject: Reply with quote

Anybody is free to develop the dll, I include the source code of the dll with the latest installation available here on vdsworld.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group