mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2025-08-21 12:28:21 -04:00
adding quick_recon to osint
This commit is contained in:
parent
523b3fd208
commit
77af32a311
10 changed files with 225 additions and 2 deletions
35
osint/quick_recon/plugins/pasting.py
Normal file
35
osint/quick_recon/plugins/pasting.py
Normal 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'))
|
Loading…
Add table
Add a link
Reference in a new issue