From 6cf5d70f5c8097b51fc791ed3f569e4805168748 Mon Sep 17 00:00:00 2001 From: gloomy-ghost Date: Sun, 16 Oct 2016 08:04:24 +0000 Subject: [PATCH] Update sublist3r.py subbrute.py Tabs --> Spaces print --> print() --- subbrute/subbrute.py | 4 ++-- sublist3r.py | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/subbrute/subbrute.py b/subbrute/subbrute.py index 411b9aa..c7b1ab6 100644 --- a/subbrute/subbrute.py +++ b/subbrute/subbrute.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 @@ if __name__ == "__main__": #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) diff --git a/sublist3r.py b/sublist3r.py index d216321..22d3e95 100644 --- a/sublist3r.py +++ b/sublist3r.py @@ -45,7 +45,7 @@ else: W = '\033[0m' #white def banner(): - print """%s + print("""%s ____ _ _ _ _ _____ / ___| _ _| |__ | (_)___| |_|___ / _ __ \___ \| | | | '_ \| | / __| __| |_ \| '__| @@ -53,7 +53,7 @@ def banner(): |____/ \__,_|_.__/|_|_|___/\__|____/|_|%s%s # Coded By Ahmed Aboul-Ela - @aboul3la - """%(R,W,Y) + """%(R,W,Y)) def parser_error(errmsg): banner() @@ -135,7 +135,7 @@ class enumratorBase(object): def print_(self, text): if not self.silent: - print text + print(text) return def print_banner(self): @@ -811,7 +811,6 @@ class PassiveDNS(enumratorBaseThreaded): 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()