Ticket #76 (closed enhancement: fixed)
Major p0f improvements: other databases support and new p0f_impersonate() function
| Reported by: | pierre@… | Owned by: | pbi |
|---|---|---|---|
| Priority: | major | Milestone: | scapy 2.2 |
| Component: | Scapy | Version: | |
| Keywords: | p0f | Cc: | pierre@… |
Description
Adds support for new p0f(a,r,o).fp databases (TCP SYN/ACK, RST & RST/ACK, and stray ACK packets).
Adds a p0f_impersonate() function:
Welcome to Scapy (1.2.0.2)
>>> x = p0f_impersonate(IP(dst='10.0.0.1')/TCP(flags='RA'), 'Linux',
... extrahops=4)
>>> x
<IP flags=DF frag=0 ttl=60 proto=tcp dst=10.0.0.1 |<TCP seq=<RandInt>
ack=<RandInt> flags=RA window=<RandShort> options=[('NOP', None), ('NOP',
None), ('Timestamp', (310207126,u3333721462L))] |>>
>>> prnp0f(x)
192.168.0.97:ftp_data - Linux 2.4 (?) (dropped, lame) (up: 861 hrs)
-> 10.0.0.1:www (RA) (distance 4)
>>> x = p0f_impersonate(IP(dst='10.0.0.1')/TCP(flags='S',sport=RandInt()),
'Solaris', osdetails='9', extrahops=3)
>>> x
<IP flags=DF frag=0 ttl=61 proto=tcp dst=10.0.0.1 |<TCP sport=<RandInt>
flags=S window=39202 options=[('MSS', 1153), ('NOP', None), ('NOP', None),
('SAckOK', '')] |>>
>>> prnp0f(x)
192.168.0.97:<RandInt> - Solaris 9
-> 10.0.0.1:www (S) (distance 3)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.