app
This commit is contained in:
parent
a38d84d8fe
commit
a1b54de57d
1 changed files with 19 additions and 4 deletions
|
@ -1,6 +1,21 @@
|
||||||
from scapy.all import *
|
import socket
|
||||||
|
import random as r
|
||||||
|
|
||||||
for i in range(512,2048):
|
L=[
|
||||||
pkt = IP(dst='web') / IP(src='192.168.1.69')/ TCP(dport=80,sport=i,flags='S') / ICMP()
|
"G3T / HTTP/1.1\r\nHøst: localhost\r\n\r\n",
|
||||||
send(pkt, loop=1)
|
"GET /index.html HTTP/1.1\r\nHost: localhost\r\n\r\n",
|
||||||
|
"GET /about.html HTTP/1.1\r\nHost: localhost\r\n\r\n"
|
||||||
|
]
|
||||||
|
|
||||||
|
adresse="localhost"
|
||||||
|
port=80
|
||||||
|
with socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM) as s:
|
||||||
|
s.connect(adresse,port)
|
||||||
|
s.send(L[r.randint(0,2)].encode())
|
||||||
|
|
||||||
|
'''
|
||||||
|
|
||||||
|
GET / HTTP/1.1
|
||||||
|
Host: example.com
|
||||||
|
|
||||||
|
'''
|
Loading…
Add table
Add a link
Reference in a new issue