Skip to content

Modif README.md and modif text report folder and uncoment json report #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ target/

profile_pic/
reports/json/
reports/text/
text*
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```

Expand Down
Binary file added datasploit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasploit2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added datasploit3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions domain/domain_checkpunkspider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
27 changes: 15 additions & 12 deletions osint_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
"""