adding quick_recon to osint

This commit is contained in:
Omar Santos 2021-02-14 22:18:02 -05:00
parent 523b3fd208
commit 77af32a311
10 changed files with 225 additions and 2 deletions

View file

@ -0,0 +1,35 @@
#!/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'))