{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}


PacketGenerator - Hping hpingsynp80www.usc.edu...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Hping Generating a TCP SYN packet hping --syn –p 80 www.usc.edu Sending a ping from a fake source hping --icmp -C 0 -K 0 –a Break an established TCP IP connection hping --icmp -C 3 -K 1 -a --icmp-ipdst update.microsoft.com --icmp- ipsrc victim --icmp-srcport 1034 --icmp-dstport 80 victim Port scanning the bored way hping www.usc.edu --syn -p 79 Press CTRL‐Z to increment the port number hping --scan 79-81 www.usc.edu -S Listening for 404 errors hping --listen “404” Traceroute over TCP on port 80 hping --traceroute www.google.com --syn –p 80 Scappy Testing a network stack with a bad packet >>> IP(version=2, ihl=3, options=“love”, proto=1)/TCP() Creating an implicit packet >>> pkts = IP(ttl=[1,3,5,(7,10)])/TCP() >>> pkts >>> [pkt for pkt in pkts] This is a ping scan on the first 10 IPs of the 192.168.*.* network >>> IP(dst=“192.168.*.1-10”)/ICMP() Do a TCP/SYN scan on all privilaged ports on the network >>> IP(dst=“”)/TCP(dport=(0,1024)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Navigating between layers >>> a=Ether()/IP()/TCP() >>> a >>> a.payload >>> a.payload.payload Another way to access fields in Scapy >>> a[IP] >>> a[TCP] >>> a[IP].dst
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

PacketGenerator - Hping hpingsynp80www.usc.edu...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online