2 ms·
I've just started using scapy recently. The syntax is a little inconsistent, but it's really powerful. It defines a domain-specific language (DSL) that piggybac
by sp332 13y ago
I've just started using scapy recently. The syntax is a little inconsistent, but it's really powerful. It defines a domain-specific language (DSL) that piggybacks on python syntax. You can make a traceroute-like object in one line:
pkt = IP(dst=target, ttl=(4,25),id=RandShort())/TCP(flags=0x2)
This single pkt object describes 22 IP packets, each with a TTL from 4 to 24 inclusive. Each IP packet encapsulates a TCP packet with the SYN flag set.
http://www.secdev.org/projects/scapy/doc/usage.html#tcp-traceroute http://www.secdev.org/projects/scapy/doc/usage.html#tcp-trac...