diff --git a/.gitignore b/.gitignore index c0de4e10..f501fc09 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,5 @@ target/ profile_pic/ reports/json/ +reports/text/ +text* diff --git a/README.md b/README.md index 74c696dd..b0001ad1 100644 --- a/README.md +++ b/README.md @@ -36,12 +36,11 @@ Open Source Assistant for #OSINT website: www.datasploit.info -Usage: domainOsint.py [options] +Usage: domainOsint.py domain [options] Options: -h, --help show this help message and exit - -d DOMAIN, --domain=DOMAIN Domain name against which automated Osint - is to be performed. + -o, --option[text, json] Generate a report in the reports directory reports/json or reports/text ``` diff --git a/datasploit.png b/datasploit.png new file mode 100644 index 00000000..5050c793 Binary files /dev/null and b/datasploit.png differ diff --git a/datasploit2.png b/datasploit2.png new file mode 100644 index 00000000..7bbe5fe9 Binary files /dev/null and b/datasploit2.png differ diff --git a/datasploit3.png b/datasploit3.png new file mode 100644 index 00000000..ee344cb6 Binary files /dev/null and b/datasploit3.png differ diff --git a/domain/domain_checkpunkspider.py b/domain/domain_checkpunkspider.py index 8bf09b22..e2386f52 100755 --- a/domain/domain_checkpunkspider.py +++ b/domain/domain_checkpunkspider.py @@ -20,12 +20,13 @@ class style: def checkpunkspider(reversed_domain): - time.sleep(0.5) + """ time.sleep(0.5) req = requests.post("http://www.punkspider.org/service/search/detail/" + reversed_domain, verify=False) try: return json.loads(req.content) except: - return {} + return {} """ + return {} def banner(): diff --git a/osint_runner.py b/osint_runner.py index cf47aa6f..82b7b89a 100755 --- a/osint_runner.py +++ b/osint_runner.py @@ -30,27 +30,30 @@ def run(component, module_dir, m_input, output = None): x.output(data, m_input) if output and str(output).lower() == "text": try: - if x.WRITE_TEXT_FILE: - filename = "text_report_%s_%s_%s.txt" % (m_input, x.MODULE_NAME, datetime.now().strftime("%Y-%m-%d_%H-%M-%S")) - text_data = x.output_text(data) - fh = open(filename, "w") - fh.write(text_data) - fh.close() - print "[+] Text Report written to %s" % filename + filepath = "./reports/text" + if not os.path.exists(filepath): + os.makedirs(filepath) + filename = "text_report_%s_%s_%s.txt" % (m_input, x.MODULE_NAME, datetime.now().strftime("%Y-%m-%d_%H-%M-%S")) + file = "%s/%s" % (filepath, filename) + text_data = x.output_text(data) + with open(file, "w") as fh: + fh.write(text_data) + fh.close() + print "[+] Text Report written to %s" % filename except Exception as e: pass -""" - if output and str(output).upper() == "JSON": - json_output[name] = data + + if output and str(output).upper() == "JSON": + json_output[name] = data if output and str(output).upper() == "JSON": timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S") filename = "datasploit_%s_%s_%s.json" % (module_dir, m_input, timestamp) - filepath = "reports/json" + filepath = "./reports/json" if not os.path.exists(filepath): os.makedirs(filepath) file = "%s/%s" % (filepath, filename) with open(file, "w") as fh: json.dump(json_output, fh, indent=4, sort_keys=True) print "JSON report saved to %s/%s" % (filepath, filename) -""" +