h4cker/osint/quick_recon/plugins/pasting.py

35 lines
995 B
Python
Raw Permalink Normal View History

2021-02-15 03:18:02 +00:00
#!/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'))