mandatoryprogrammer / TrustTrees

A Tool for DNS Delegation Trust Graphing
Apache License 2.0
403 stars 70 forks source link

Can't open the generated graph(s) with --open #33

Closed dgzlopes closed 4 years ago

dgzlopes commented 4 years ago

Description I get a FileNotFoundError exception when I run the default example from the README.md. Without --open TrustTrees works as expected.

Environment

$ trusttrees --target example.com --open

      ______                __ ______
     /_  __/______  _______/ //_  __/_______  ___  _____
      / / / ___/ / / / ___/ __// / / ___/ _ \/ _ \/ ___/
     / / / /  / /_/ (__  ) /_ / / / /  /  __/  __(__  )
    /_/ /_/   \__,_/____/\__//_/ /_/   \___/\___/____/
              Graphing & Scanning DNS Delegation Trees

[ STATUS ] Querying nameserver '192.203.230.10/e.root-servers.net.' for NS of 'example.com.'
......
[ STATUS ] Opening final graph...
Traceback (most recent call last):
  File "/home/dgzlopes/.pyenv/versions/3.7.0/bin/trusttrees", line 11, in <module>
    load_entry_point('TrustTrees', 'console_scripts', 'trusttrees')()
  File "/home/dgzlopes/TrustTrees/trusttrees/__main__.py", line 43, in main
    args.upload_args,
  File "/home/dgzlopes/TrustTrees/trusttrees/draw.py", line 170, in generate_graph
    subprocess.call(['open', filename])
  File "/home/dgzlopes/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 304, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/home/dgzlopes/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "/home/dgzlopes/.pyenv/versions/3.7.0/lib/python3.7/subprocess.py", line 1499, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'open': 'open'
KevinHock commented 4 years ago

Thanks so much for making this @dgzlopes!

KevinHock commented 4 years ago

Fixed, thanks again! :)