Nmap Development mailing list archives
Re: pcap-tcp Proof of Concept hack
From: Jay Fink <jay.fink () gmail com>
Date: Mon, 29 Jun 2009 14:13:07 -0400
On Mon, Jun 29, 2009 at 12:01 PM, Jay Fink<jay.fink () gmail com> wrote:
On Mon, Jun 29, 2009 at 10:32 AM, David Fifield<david () bamsoftware com> wrote:Nsock can do pcap captures. See the functions nsock_pcap_open, nsock_pcap_read_packet, and others.
I put together the beginnings of an example in ~/nmap/nsock/examples/nsock_pcap.c and a small diff to the Makefile. Right now it invokes an open and single read. Doesn't do much else. I'll keep fleshing this out until it actually does something useful and then decide to dovetail it somewhere else or drop it. Here is the Makefile diff and the source file is attached. Index: examples/Makefile =================================================================== --- examples/Makefile (revision 13965) +++ examples/Makefile (working copy) @@ -12,7 +12,7 @@ PCAPLIB=$(PCAPBASEDIR)/libpcap.a RM = rm -f -TARGETS = nsock_test_timers nsock_telnet +TARGETS = nsock_test_timers nsock_telnet nsock_pcap all: $(TARGETS)
Attachment:
nsock_pcap.c
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Re: pcap-tcp Proof of Concept hack Jay Fink (Jun 28)
- Re: pcap-tcp Proof of Concept hack Jay Fink (Jun 29)
- Re: pcap-tcp Proof of Concept hack David Fifield (Jun 29)
- Re: pcap-tcp Proof of Concept hack Jay Fink (Jun 29)
- Re: pcap-tcp Proof of Concept hack Jay Fink (Jun 29)
- Re: pcap-tcp Proof of Concept hack David Fifield (Jun 29)
- Re: pcap-tcp Proof of Concept hack Jay Fink (Jun 29)