Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: NSE: Getting IP address from a captured packet
From: Henri Doreau <henri.doreau () greenbone net>
Date: Tue, 15 Mar 2011 08:40:19 +0100

2011/3/15 Nick Nikolaou <nikolasnikolaou1 () gmail com>:
Hey everyone,

I'm working a script that sniffs packets on the network and adds the IP
addresses to newtargets. (
Using pcap_receive() I'm able to capture packets but I'm not really sure
what Layer 3 data pcap_receive() returns and I'm having trouble getting the
IP addresses from the packets.

Can anyone shed some light on this?



You might also have a look at the following scripts, that perform
packet capture: firewalk.nse, ipidseq.nse, path-mtu.nse, qscan.nse and

Hope that helps.

Henri Doreau |  Greenbone Networks GmbH  |  http://www.greenbone.net
Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
Sent through the nmap-dev mailing list
Archived at http://seclists.org/nmap-dev/

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]