mirror of
https://github.com/autistic-symposium/sec-pentesting-toolkit.git
synced 2025-05-03 07:14:54 -04:00
scapy scripts (including ddos)
This commit is contained in:
parent
2acc68c3dd
commit
8ca96e0b02
28 changed files with 172723 additions and 125 deletions
30
Network_and_802.11/scapy/plotting.py
Normal file
30
Network_and_802.11/scapy/plotting.py
Normal 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()
|
Loading…
Add table
Add a link
Reference in a new issue