Re: How to send a sequence of bytes

"Renaud Deraison (lists)" <[email protected]>
Newsgroups gmane.comp.security.nessus.general
Message-ID <[email protected]>
On May 22, 2008, at 6:15 PM, John Chajecki wrote:

> Renaud,
>
> Curious. I tried that but it literally sent the string  
> 0x31,0x00,0x30,......etc rather than the actual hex bytes  
> represented by string.
> I have attached the Wireshark screen grab.
>
> Here is my code.
>
> pktdata = '
> 0x31,0x00,0x30,0x00,0x33,0x00,0x3b,0x00,0x38,0x00,0x36,0x00,0x3b,0x00,
> 0x31,0x00,0x2e,0x00,0x30,0x00,0x2e,0x00,0x30,0x00,0x2e, 
> 0x00,0x30,0x00';

It should really be :

pktdata = raw_string(0x31, 0x00, ....); (no quotes).

then :

send(socket:soc, data:pktdata);


				-- Renaud
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.