-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflareexplore.py
31 lines (29 loc) · 1.29 KB
/
flareexplore.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from mod import explore
from colorama import Fore,init
import json
import argparse
import sys
init()
banner = f"""
{Fore.BLUE} _______ __ _______ __
| ___|| |.---.-..----..-----. | ___|.--.--..-----.| |.-----..----..-----.
| ___|| || _ || _|| -__| | ___||_ _|| _ || || _ || _|| -__|
|___| |__||___._||__| |_____| |_______||__.__|| __||__||_____||__| |_____|
|__| {Fore.RESET}
v 1.2
Find Real IP Behind CloudFlare
Dont forget to set censys api_id and api_secret in config.json
"""
print(banner)
parser = argparse.ArgumentParser()
required = parser.add_argument_group('required arguments')
required.add_argument('-d', '--domain', help="Domain to check , example.com, without http(s)://",required=True)
args = parser.parse_args()
with open("config.json","r") as config:
read_config = json.load(config)
if len(read_config['api_id']) != 0 and len(read_config['api_secret']) != 0:
app = explore.Flare(read_config['api_id'],read_config['api_secret'],read_config['shodan_cookie'],args.domain)
app.main()
else:
print(f"❌ {Fore.RED}api_id and api_secret in config.json cannot be empty {Fore.RESET}")
sys.exit()