Re: [Plugins-writers] Bug in htonl (network_func.nasl) and help needed in building packe payload

From: Michel Arboi (mikhail@private)
Date: Wed Aug 17 2005 - 10:28:45 PDT


On Wed Aug 17 2005 at 16:16, Jingyu Dong wrote:

> I also have a question that needs your help: how can I forge ICMP
> payload data?

In some cases (host unreachable...), forging an IP packet then
truncating it to keep the 1st 64 bits should work.

> I need 2 bytes source port, 2 bytes destination port, and 4 bytes
> sequence #,

> So I wrote like 'data = raw_string( htons(sport), htons(dport),
> htonl(seq) );' 

Use strcat, not raw_string
_______________________________________________
Plugins-writers mailing list
Plugins-writers@private
http://mail.nessus.org/mailman/listinfo/plugins-writers



This archive was generated by hypermail 2.1.3 : Wed Aug 17 2005 - 10:29:33 PDT