· 6 years ago · Oct 19, 2019, 02:36 PM
1"""
2_______________.___.
3\______ \__ | |
4 | | _// | |
5 | | \\____ |
6 |______ // ______|
7 \/ \/
8 _____ _______ ________ __________.__ ._____________ __________
9 / _ \ ____ \ _ \ ____ \_____ \___ __\______ | | ____ |__\__ _______\______ \
10 / /_\ \ / \/ /_\ \ / \ _(__ <\ \/ /| ___| | / _ \| | | |_/ __ \| _/
11/ | | | \ \_/ | | \ / \> < | | | |_( <_> | | | |\ ___/| | \
12\____|__ |___| /\_____ |___| / /______ /__/\_ \|____| |____/\____/|__| |____| \___ |____|_ /
13 \/ \/ \/ \/ \/ \/ \/ \/
14
15 ~ Changing Coder Name Wont Make You One :)
16 ~ An0n 3xPloiTeR :)
17"""
18
19from insides import *
20from sys import argv
21import requests, json
22import optparse
23import os, re
24
25################################ Banner ################################
26
27print(Banner)
28
29################################ Functions ################################
30
31def reverseViaHT(website):
32 website = addHTTP(website); webs = removeHTTP(website)
33 url = "http://api.hackertarget.com/reverseiplookup/?q="
34 combo = "{url}{website}".format(url=url, website=webs)
35 request = requests.get(combo, headers=functions._headers, timeout=5).text.encode('UTF-8')
36 if len(request) != 5:
37 list = request.strip("").split("\n")
38 for _links in list:
39 if len(_links) != 0:
40 write(var="#", color=g, data=_links)
41 else:
42 write(var="@", color=r, data="Sorry, The webserver of the website you entered have no domains other then the one you gave :')")
43
44def reverseViaYGS(website):
45 website = addHTTP(website); webs = removeHTTP(website)
46 url = "https://domains.yougetsignal.com/domains.php"
47 post = {
48 'remoteAddress' : webs,
49 'key' : ''
50 }
51 request = requests.post(url, headers=functions._headers, timeout=5, data=post).text.encode('UTF-8')
52
53 grab = json.loads(request)
54
55 Status = grab['status']
56 IP = grab['remoteIpAddress']
57 Domain = grab['remoteAddress']
58 Total_Domains = grab['domainCount']
59 Array = grab['domainArray']
60
61 if (Status == 'Fail'):
62 write(var="#", color=r, data="Sorry! Reverse Ip Limit Reached.")
63 else:
64 write(var="$", color=c, data="IP: " + IP + "")
65 write(var="$", color=c, data="Domain: " + Domain + "")
66 write(var="$", color=c, data="Total Domains: " + Total_Domains + "\n")
67
68 domains = []
69
70 for x, y in Array:
71 domains.append(x)
72
73 for res in domains:
74 write(var="#", color=b, data=res)
75
76def heading(heading, website, color, afterWebHead):
77 space = " " * 15
78 var = str(space + heading + " '" + website + "'" + str(afterWebHead) + " ..." + space)
79 length = len(var) + 1; print "" # \n
80 print("{white}" + "-" * length + "-").format(white=w)
81 print("{color}" + var).format(color=color)
82 print("{white}" + "-" * length + "-").format(white=w); print "" # \n
83
84################################ Args ################################
85
86_usage = g + "python " + w + argv[0] + g + " --all hackthissite.org" + w
87_version = w + "[" + c + "~" + w + "] " + g + "Version: " + c + "2.0"
88parser = optparse.OptionParser(usage=_usage, version=_version, conflict_handler="resolve")
89general = optparse.OptionGroup(parser, y + 'Basic Help')
90general.add_option( '-h', '--help', action='help', dest='help', help='Shows the help for program.')
91general.add_option( '-v', '--version', action='version',
92 help='Shows the version of program.')
93
94reverse_ip = optparse.OptionGroup(parser, g + "Reverse IP")
95reverse_ip.add_option( "-s", "--revygs", action='store_true', dest='yougetsignal', help="For Doing Reverse IP Via You Get Signal's API")
96reverse_ip.add_option( "-r", "--revht", action='store_true', dest='hackertarget', help="For Doing Reverse IP Via Hacker Target's API")
97
98grouped_scanning = optparse.OptionGroup(parser, c + "Grouped Results")
99grouped_scanning.add_option( "-a", "--all", action='store_true', dest='all', help="All Things at Once!")
100
101
102
103parser.add_option_group(general)
104parser.add_option_group(reverse_ip)
105parser.add_option_group(grouped_scanning)
106
107(options, args) = parser.parse_args()
108try: website = addHTTP(args[0])
109except: pass
110
111try:
112 if options.yougetsignal:
113 heading(heading="Doing Reverse IP", website=website, afterWebHead=" Via YGS <3", color=g)
114 reverseViaYGS(website)
115
116 elif options.hackertarget:
117 heading(heading="Doing Reverse IP", website=website, afterWebHead=" Via HT <3", color=c)
118 reverseViaHT(website)
119
120 elif options.all:
121 heading(heading="Doing Reverse IP", website=website, afterWebHead=" Via YGS <3", color=g)
122 reverseViaYGS(website)
123
124 heading(heading="Doing Reverse IP", website=website, afterWebHead=" Via HT <3", color=c)
125 reverseViaHT(website)
126
127 else:
128 write(var="~", color=c, data="Usage: " + g + "python " + w + argv[0] + g + " --all hackthissite.org")
129
130except KeyboardInterrupt:
131 write(var="~", color=y, data="Err0r: User Interrupted!")
132
133except Exception, e:
134 write(var="#", color=r, data="Err0r: Kindly Report the err0r below to An0n3xPloiTeR :) (If Your Internet's Working ;)\n\"\"\"\n" + str(e) + "\n\"\"\"")
135
136print(Footer)
137
138# ~ See Ya :)
139# ~ An0n 3xPloiTeR :)