Skip to content
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

Issue Using the --headers Flag #126

Closed
SolomonSklash opened this issue Apr 5, 2019 · 2 comments · Fixed by #136
Closed

Issue Using the --headers Flag #126

SolomonSklash opened this issue Apr 5, 2019 · 2 comments · Fixed by #136

Comments

@SolomonSklash
Copy link

SolomonSklash commented Apr 5, 2019

When running the following Photon command, I receive an error:
python3 photon.py -u example.com --headers
This only happens when including the --headers flag.

Traceback (most recent call last):
  File "photon.py", line 138, in <module>
    headers = extract_headers(prompt())
  File "/home/myuser/bounty/tools/Photon/core/prompt.py", line 18, in prompt
    os.execvp(editor, [editor, tmpfile.name])
  File "/usr/lib/python3.7/os.py", line 571, in execvp
    _execvpe(file, args)
  File "/usr/lib/python3.7/os.py", line 613, in _execvpe
    raise last_exc
  File "/usr/lib/python3.7/os.py", line 604, in _execvpe
    exec_func(fullname, *argrest)
FileNotFoundError: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "photon.py", line 138, in <module>
    headers = extract_headers(prompt())
  File "/home/myuser/bounty/tools/Photon/core/prompt.py", line 22, in prompt
    return tmpfile.read().strip()
  File "/usr/lib/python3.7/tempfile.py", line 639, in __exit__
    self.close()
  File "/usr/lib/python3.7/tempfile.py", line 646, in close
    self._closer.close()
  File "/usr/lib/python3.7/tempfile.py", line 583, in close
    unlink(self.name)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpd56bth_3'
@s0md3v
Copy link
Owner

s0md3v commented Apr 5, 2019

Are you on Windows?

@SolomonSklash
Copy link
Author

Should have mentioned that. Latest Kali Linux.

Linux thinkpad 4.19.0-kali4-amd64 #1 SMP Debian 4.19.28-2kali1 (2019-03-18) x86_64 GNU/Linux

Python 3.7.3rc1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants