-
Notifications
You must be signed in to change notification settings - Fork 5
/
cfdns.py
63 lines (60 loc) · 1.7 KB
/
cfdns.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## CFBypass DNS Method v2.BETA
# Coded 6/10/19
# Inspired by CloudSearch.cf
# Author = SmallDoink
# Date = 6/10/19
# Version = v2.BETA
# Updated: Added DNS Method
# Imports
import os
import socket
import dns.resolver
# End Imports
# Start Setup
os.system('clear')
cfdns = dns.resolver.Resolver()
os.system('clear')
class c:
black='\033[30m'
red='\033[31m'
green='\033[32m'
orange='\033[33m'
blue='\033[34m'
purple='\033[35m'
cyan='\033[36m'
lightgrey='\033[37m'
darkgrey='\033[90m'
lightred='\033[91m'
lightgreen='\033[92m'
yellow='\033[93m'
lightblue='\033[94m'
pink='\033[95m'
lightcyan='\033[96m'
white='\033[0m'
print c.red + """
__ _____ ____ __ __ ____ ____ _____ _____
/ ]| || \ | | || \ / |/ ___// ___/
/ / | __|| o )| | || o ) o ( \_( \_
/ / | |_ | || ~ || _/| |\__ |\__ |
/ \_ | _] | O ||___, || | | _ |/ \ |/ \ |
\ || | | || || | | | |\ |\ |
\____||__| |_____||____/ |__| |__|__| \___| \___|
CFBypass - CloudFlare Bypass - Version v2.MAIN
Author - SmallDoink#1102
Methods:
1] DNS 2] SSH
"""
i = raw_input(c.orange + "Wesbite> " + c.white)
meth = raw_input(c.orange + "Method> " + c.white)
if meth == "1":
site = "i"
bpip = cfdns.query(i, "A")
for rdata in bpip:
print c.green + "IP Behind CloudFlare"
print rdata
elif meth == "2":
site = "i"
ip = socket.gethostbyname('ssh.'+i)
print c.pink + "IP Behind Cloudflare - "+ip
else:
print c.red + "[!] Error | Please use a listed method"