|
1 |
| -#!/usr/bin/env python3 |
2 |
| -# Coded By Tux-MacG1v |
3 |
| -#https://t.me/I_am_a_silent_killer |
4 |
| -#https://www.facebook.com/tux.macg1v |
5 |
| -#DONATE ME: |
6 |
| -# TRC20 - TEd4f33f2c2AVGaB14VFCZbVLCe9hirNtK |
7 |
| -# BTC - 1KP3ekYeQGNVpMJr8P4hwwPPQ5sFP4h2Xb |
| 1 | +import requests,re |
| 2 | +from fake_useragent import UserAgent |
| 3 | +from multiprocessing import Pool |
| 4 | + |
| 5 | +class Ipto(): |
| 6 | + def __init__( self , ip , proxy = None , browser = UserAgent().random ): |
| 7 | + self.ip = ip |
| 8 | + self.website = "https://domains.tntcode.com/ip/%s" % ip |
| 9 | + self.browser = browser |
| 10 | + |
| 11 | + def __action_to( self ): |
| 12 | + Headers = {"User-Agent": self.browser, |
| 13 | + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8", |
| 14 | + "Accept-Language": "en-US,en;q=0.5", "Accept-Encoding": "gzip, deflate", |
| 15 | + "Origin": "https://127.0.0.1", "Connection": "close", "DNT": "1", |
| 16 | + "Expires": "Null","Referer": "https://127.0.0.1"} |
| 17 | + res = requests.get(self.website , headers= Headers ).text |
| 18 | + return re.findall( '<a href="/domain/(.+?)"' , res ) |
| 19 | + |
| 20 | + def domains_list( self ): |
| 21 | + return self.__action_to() |
| 22 | + |
| 23 | + |
| 24 | +def findandsave(ip , trys=False): |
| 25 | + for x in range(5): |
| 26 | + try: |
| 27 | + list = Ipto(ip).domains_list() |
| 28 | + if list: |
| 29 | + [ open("domains.txt", "a" , encoding="Latin-1").write("%s\n" % bb ) for bb in list ] |
| 30 | + print("From this ip ==> %s saved %s domains " % ( ip , len(list) ) ) |
| 31 | + break |
| 32 | + except: |
| 33 | + time.sleep(20) |
| 34 | + pass |
8 | 35 |
|
9 |
| -import re |
10 |
| -import os.path |
11 |
| -import string |
12 |
| -import os |
13 |
| -import sys |
14 |
| -import time |
15 |
| -import urllib.request |
16 |
| -from platform import system |
17 |
| -import warnings |
18 |
| -from concurrent.futures import ThreadPoolExecutor |
19 |
| -from importlib import reload |
20 |
| -from colorama import init, Fore, Style |
21 |
| -from urllib3.exceptions import InsecureRequestWarning |
22 |
| -warnings.simplefilter('ignore', InsecureRequestWarning) |
23 |
| -init(autoreset=True) |
24 |
| -#try: |
25 |
| -# os.mkdir('Result') #createfolder |
26 |
| -# os.getcwd() |
27 |
| -#except: |
28 |
| -# pass |
29 |
| - |
30 |
| -reload(sys) |
31 |
| -r = Fore.RED + Style.BRIGHT |
32 |
| -g = Fore.GREEN + Style.BRIGHT |
33 |
| -c = Fore.CYAN + Style.BRIGHT |
34 |
| -y = Fore.YELLOW + Style.BRIGHT |
35 |
| -o = Fore.RESET + Style.RESET_ALL |
36 |
| - |
37 |
| -good=[] |
38 |
| -bad=[] |
39 |
| -failed =[] |
40 |
| -GOOD = 0 |
41 |
| -BAD = 0 |
42 |
| -FAILED = 0 |
43 |
| - |
44 |
| -os.system("title " + "[+] GOOD: {} , [-]BAD : {} , [!]FAILED : {} ".format(GOOD, BAD, FAILED)) |
45 |
| - |
46 |
| - |
47 |
| -banner = """ |
48 |
| -
|
49 |
| - {}[!] {}NOSLEP-DEMO {} - {}REVERSE IP{} |
50 |
| - {}CODED BY TUX-MACG1V{} |
51 |
| - {}FOR BUY MAIN TOOL CONTACT WITH ME{} |
52 |
| - {}https://t.me/I_am_a_silent_killer{} |
53 |
| - {}TRC20- TEd4f33f2c2AVGaB14VFCZbVLCe9hirNtK |
54 |
| - BTC - 1KP3ekYeQGNVpMJr8P4hwwPPQ5sFP4h2Xb{} |
55 |
| -
|
56 |
| -
|
57 |
| -""".format(r, g, y, g, o, r, o, y, o, r, o, g, o) |
58 |
| -headers = { |
59 |
| - 'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'} |
60 |
| - |
61 |
| -def reverseip(i): |
62 |
| - global GOOD, BAD, FAILED |
63 |
| - try: |
64 |
| - grab = urllib.request.urlopen('https://apifromtuxdemo1.herokuapp.com/'+ i, timeout=2000).read() |
65 |
| - html = grab.decode('ISO-8859-1') |
66 |
| - if not "null" in html: |
67 |
| - res = re.findall('"(.*?)"', html) |
68 |
| - print('{}[+] {}Reverse {}http://{} {}[{} {} {}DOMAINS]{}'.format(g, c, y, i, g, r, len(str(res)), g, o)) |
69 |
| - for domain in res: |
70 |
| - open('Domains.txt', "a+").write(str(domain)+'\n') |
71 |
| - good.append(i) |
72 |
| - GOOD += 1 |
73 |
| - |
74 |
| - else: |
75 |
| - print('{}[-] {}Reverse {}http://{} {}[{} NO DOMAIN {}]{}'.format(r, c, y, i, g, r, g, r, o)) |
76 |
| - bad.append(i) |
77 |
| - BAD += 1 |
78 |
| - except KeyboardInterrupt: |
79 |
| - print('{}[-] {}Reverse {}http://{} {}[{} API FAILED OR WRONG {}]{}'.format(r, c, y, i, g, r, g, r, o)) |
80 |
| - failed.append(i) |
81 |
| - FAILED += 1 |
82 |
| - time.sleep(0.5) |
83 |
| - sys.exit() |
84 | 36 |
|
85 | 37 | def main():
|
| 38 | + |
| 39 | + smiya = input("[x] list ip : " ) |
| 40 | + |
86 | 41 | try:
|
87 |
| - os.system('cls' if os.name == 'nt' else 'clear') |
88 |
| - print(banner) |
89 |
| - lists = input('\n{}[+] {}Website List{} > {}'.format(c, g, o, g).strip()) |
90 |
| - power = int(input('{}[+] {}Thread{} > {}'.format(c, g, o, r, r))) |
91 |
| - print('') |
| 42 | + listip = open( smiya , "r" , encoding="Latin-1" ).read().splitlines() |
| 43 | + except: |
| 44 | + try: |
| 45 | + listip = open( smiya , "r" , encoding="utf-8" ).read().splitlines() |
| 46 | + except: |
| 47 | + print("List Problem !") |
| 48 | + exit() |
92 | 49 |
|
93 |
| - def runner(): |
94 |
| - threads = [] |
95 |
| - domain = lists.replace('"', '') |
96 |
| - process = open(domain, 'r').read().splitlines() |
97 |
| - with ThreadPoolExecutor(max_workers=power) as thread: |
98 |
| - [threads.append(thread.submit(reverseip, i)) for i in process] |
| 50 | + ThreadPool = Pool(50) |
| 51 | + ThreadPool.map(findandsave, listip) |
99 | 52 |
|
100 |
| - runner() |
101 |
| - print("\n\n{}[+] TOTAL GOODS {}:{}[{}{}{}]{}".format(g, o, g, o, str(len(good)), g, o)) |
102 |
| - print("{}[-] TOTAL BADS {}:{}[{}{}{}]{}".format(c, o, c, o, str(len(bad)), r, o)) |
103 |
| - print("{}[!] TOTAL FAILED {}:{}[{}{}{}]{}".format(r, o, r, o, str(len(failed)), r, o)) |
104 |
| - except Exception as e: |
105 |
| - print('{}[!] {}Incorrect'.format(c, r)) |
106 |
| - time.sleep(0.5) |
107 | 53 |
|
108 |
| -if __name__ == '__main__': |
| 54 | +if __name__ == "__main__": |
109 | 55 | main()
|
0 commit comments