Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Nessus-Users
[Top] [All Lists]

Re: How to send a sequence of bytes

Subject: Re: How to send a sequence of bytes
Date: Sun, 15 Jun 2008 13:01:55 +0200
On Thu, 22 May 2008 18:21:13 +0200
"Renaud Deraison (lists)" <deraison-lists@nessus.org> wrote:

On May 22, 2008, at 6:15 PM, John Chajecki wrote:
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).

Or:
pktdata = 
'\x31\x00\x30\x00\x33\x00\x3b\x00\x38\x00\x36\x00\x3b\x00\x31\x00\x2e\x00\x30\x00\x2e\x00\x30\x00\x2e\x00\x30\x00';

But the raw_string construction is probably more readable if the string is long.
_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

<Prev in Thread] Current Thread [Next in Thread>