scapy scripts (including ddos)

This commit is contained in:
Mari Wahl 2014-12-28 15:50:05 -05:00
parent 2acc68c3dd
commit 8ca96e0b02
28 changed files with 172723 additions and 125 deletions

View file

@ -0,0 +1,30 @@
#!/usr/bin/env python
__author__ = "bt3"
from scapy.all import *
def conversation():
p = readpcap("myfile.pcap")
p.conversations(type="jpg", target="> test.jpg")
def simple_graph():
res,unans = traceroute(["www.google.com", "www.yahoo.com"], dport=[80,443], maxttl=20, retry=-2)
res.graph()
res.graph(type="ps")
res.graph(target="> example.png")
def ttd_graph():
p = IP()/ICMP()
p.pdfdump("test.pdf")
def td_graph():
a,u = traceroute(["www.python.org", "google.com","slashdot.org"])
a.trace3D()
def simple_plot():
p = sniff(count=50)
p.plot(lambda x:len(x))
if __name__ == '__main__':
simple_plot()