From 5d1b6fc5cecbcf404754d0907ab5f34ad2e0ac0e Mon Sep 17 00:00:00 2001 From: vSpaike <153102900+vSpaike@users.noreply.github.com> Date: Tue, 14 Jan 2025 12:21:12 +0100 Subject: [PATCH] 2 thread send packet --- client/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index caca6f5..b01eb99 100644 --- a/client/main.py +++ b/client/main.py @@ -1,5 +1,6 @@ from scapy.all import * import random as r +import threading as th adresse = "web" port = 80 @@ -23,4 +24,7 @@ def attaque(): sr1(paquet, verbose=True) if __name__ == "__main__": - attaque() + t1= th.Thread(target=attaque()) + t2=th.Thread(target=attaque()) + t1.start() + t2.start()