10.08.2015 Views

Packet generation and network based attacks with Scapy - SecDev.org

Packet generation and network based attacks with Scapy - SecDev.org

Packet generation and network based attacks with Scapy - SecDev.org

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ARP pingIntroduction<strong>Scapy</strong>Network discovery <strong>and</strong> <strong>attacks</strong>One shotsScanningTTL tricksAsk every IP of our neighbourhood for its MAC address=⇒ Quickly find alive IP=⇒ Even firewalled ones (firewalls usually don’t work at Ethernetor ARP level)Sending packetsres,unans = srp(Ether(dst="ff:ff:ff:ff:ff:ff")/ARP(pdst="192.168.1.0/24"))Possible result interpretation: neighboursres.summary(lambda (s,r): r.sprintf("%Ether.src% %ARP.psrc%"))Note: The high-level function arping() does that.Philippe BIONDI<strong>Packet</strong> <strong>generation</strong> <strong>and</strong> <strong>network</strong> <strong>based</strong> <strong>attacks</strong> <strong>with</strong> <strong>Scapy</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!