mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-27 08:09:34 -05:00
35 lines
995 B
Python
35 lines
995 B
Python
#!/usr/bin/env python3
|
|
# A script to perform a quick OSINT recon for a given domains
|
|
# This is an example and work in progress
|
|
|
|
import os
|
|
import sys
|
|
import time
|
|
import requests
|
|
import random
|
|
from googlesearch import search
|
|
from termcolor import colored, cprint
|
|
from http import cookiejar
|
|
|
|
TLD = ["co.ma","dz","ru","ca"]
|
|
zolo = random.choice(TLD)
|
|
|
|
X = requests.get('https://www.google.com/webhp?ei=1') # : /
|
|
X.status_code
|
|
if X.status_code == 200:
|
|
time.sleep(5)
|
|
|
|
f = open('quick_recon.config', 'r')
|
|
alpha = f.read()
|
|
key = alpha
|
|
time.sleep(5)
|
|
print(colored ('[>] Looking in Pasting Sites...' ,'green')) #Pasting Sites e.g : PasteBin...
|
|
query = "site:pastebin.com | site:hastebin.com | site:carbon.now.sh " + key
|
|
for gamma in search(query, tld=zolo, num=30 , stop=60 , pause=2):
|
|
print("" + gamma)
|
|
print ("")
|
|
if os.path.exists(".google-cookie"):
|
|
os.remove(".google-cookie")
|
|
os.remove("quick_recon.config")
|
|
print(colored ('[>] Done...Happy Hunting' ,'green'))
|