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
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to