Skip to content

Commit 83a1182

Browse files
authored
Add files via upload
1 parent 3e12e56 commit 83a1182

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

domain-scraper.py

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#Author: chainski
2+
#Github: https://github.com/chainski
3+
4+
import os
5+
import requests,json
6+
import os.path
7+
from colorama import Fore
8+
os.system('mode con: cols=160 lines=40')
9+
10+
11+
test_url = r'https://www.youtube.com/channel/UCR55c-mtcH86O-QvOQC_oFg?sub_confirmation=1'
12+
13+
with open('Subscribe.url','w') as f:
14+
f.write(f"""[InternetShortcut]
15+
URL={test_url}
16+
""")
17+
18+
19+
banner = '''
20+
██████╗ ██████╗ ███╗ ███╗ █████╗ ██╗███╗ ██╗ ███████╗ ██████╗██████╗ █████╗ ██████╗ ███████╗██████╗
21+
██╔══██╗██╔═══██╗████╗ ████║██╔══██╗██║████╗ ██║ ██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗
22+
██║ ██║██║ ██║██╔████╔██║███████║██║██╔██╗ ██║ ███████╗██║ ██████╔╝███████║██████╔╝█████╗ ██████╔╝
23+
██║ ██║██║ ██║██║╚██╔╝██║██╔══██║██║██║╚██╗██║ ╚════██║██║ ██╔══██╗██╔══██║██╔═══╝ ██╔══╝ ██╔══██╗
24+
██████╔╝╚██████╔╝██║ ╚═╝ ██║██║ ██║██║██║ ╚████║ ███████║╚██████╗██║ ██║██║ ██║██║ ███████╗██║ ██║
25+
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═╝
26+
'''
27+
28+
info = '''
29+
╔════════════════════════════════╗
30+
║ DOMAIN SCRAPER V1.0 ║
31+
║ coded by chainski ║
32+
║ For Educational Purposes Only ║
33+
║ Join : https://t.me/chinotech ║
34+
╚════════════════════════════════╝
35+
'''
36+
37+
38+
39+
print(Fore.CYAN+banner)
40+
print(Fore.LIGHTGREEN_EX+info)
41+
42+
def main():
43+
44+
choice ='0'
45+
while choice =='0':
46+
print(Fore.RESET+" API URL:hackertarget.com")
47+
choice = input (Fore.LIGHTGREEN_EX+"\n\n [+] Press 1 To Start: ")
48+
if choice == "1":
49+
Hackertarget()
50+
else:
51+
print("I don't understand your choice.")
52+
53+
54+
def Hackertarget():
55+
os.system("cls")
56+
print("""
57+
╦ ╦╔═╗╔═╗╦╔═╔═╗╦═╗╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗
58+
╠═╣╠═╣║ ╠╩╗║╣ ╠╦╝ ║ ╠═╣╠╦╝║ ╦║╣ ║
59+
╩ ╩╩ ╩╚═╝╩ ╩╚═╝╩╚═ ╩ ╩ ╩╩╚═╚═╝╚═╝ ╩
60+
""")
61+
session = requests.session()
62+
inip = input('Enter URL or IP: ')
63+
print("\n=========== Output ===============")
64+
api = "http://api.hackertarget.com/reverseiplookup/?q="
65+
apipun = api + inip
66+
output = session.get(apipun).text
67+
print(output)
68+
file = input("Save output to txt? [Y/n]").lower()
69+
if file == 'y':
70+
fila = input("\nFilename: ")
71+
filename = fila + ".txt"
72+
file1 = open(filename, "w")
73+
file1.write(str(output))
74+
else:
75+
print("\nThank for using my tool !")
76+
77+
78+
main()

0 commit comments

Comments
 (0)