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: Thu, 22 May 2008 17:35:02 +0200


John,

On May 22, 2008, at 4:15 PM, John Chajecki wrote:

In trying to create a custom plugin, I have the need to send a  
sequence of bytes as the data in a packet.

I know the exact sequence of hex bytes to be:

 31,00,30,00,33,00,3b,00,38,00,36,00,3b,00,31,00,2e,00,30,00,2e, 
00,30,00,2e,00,30

The problem is that I can't find a way of converting that  
representation into a suitable string to pass to the send command:

  send(socket:soc, data:pktdata);

Is there a function in nasl that can do the conversion?

You'd do :

send(socket:soc, data:raw_string(0x31, 0x00, 0x30, ....., 0x2e, 0x00,  
0x30));


                                -- Renaud

_______________________________________________
Nessus mailing list
Nessus@list.nessus.org
http://mail.nessus.org/mailman/listinfo/nessus

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