Skip to content
Permalink
Browse files

Update sublist3r.py subbrute.py

  Tabs  --> Spaces
  print --> print()
  • Loading branch information...
gloomy-ghost committed Oct 16, 2016
1 parent ec4251a commit 6cf5d70f5c8097b51fc791ed3f569e4805168748
Showing with 5 additions and 7 deletions.
  1. +2 −2 subbrute/subbrute.py
  2. +3 −5 sublist3r.py
@@ -416,7 +416,7 @@ def print_target(target, record_type = None, subdomains = "names.txt", resolve_l
result = "%s,%s" % (hostname, ",".join(response).strip(","))
if result not in found_subdomains:
if verbose:
print result
print(result)
subdomains_list.append(result)

return set(subdomains_list)
@@ -629,7 +629,7 @@ def signal_init():
#options.resolvers => the resolvers file
#options.output
#options.json
print target, record_type, options.subs, options.resolvers, options.process_count, output, json_output
print(target, record_type, options.subs, options.resolvers, options.process_count, output, json_output)
print_target(target, record_type, options.subs, options.resolvers, options.process_count, output, json_output)


@@ -45,15 +45,15 @@
W = '\033[0m' #white

def banner():
print """%s
print("""%s
____ _ _ _ _ _____
/ ___| _ _| |__ | (_)___| |_|___ / _ __
\___ \| | | | '_ \| | / __| __| |_ \| '__|
___) | |_| | |_) | | \__ \ |_ ___) | |
|____/ \__,_|_.__/|_|_|___/\__|____/|_|%s%s
# Coded By Ahmed Aboul-Ela - @aboul3la
"""%(R,W,Y)
"""%(R,W,Y))

def parser_error(errmsg):
banner()
@@ -135,7 +135,7 @@ def __init__(self, base_url, engine_name, domain, subdomains=None, silent=False,

def print_(self, text):
if not self.silent:
print text
print(text)
return

def print_banner(self):
@@ -811,7 +811,6 @@ def __init__(self, domain, subdomains=None, q=None, silent=False, verbose=True):
super(PassiveDNS, self).__init__(base_url, self.engine_name, domain, subdomains, q=q, silent=silent, verbose=verbose)
return


def req(self, url):
headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/40.0',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
@@ -954,7 +953,6 @@ def main(domain, threads, savefile, ports, silent, verbose, enable_bruteforce):
for subdomain in subdomains:
print(G+subdomain+W)
return subdomains


if __name__=="__main__":
args = parse_args()

0 comments on commit 6cf5d70

Please sign in to comment.
You can’t perform that action at this time.