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

Output from tool runs with no [OUTPUT] variable specified #66

Open
mcjon3z opened this issue Jan 27, 2017 · 2 comments
Open

Output from tool runs with no [OUTPUT] variable specified #66

mcjon3z opened this issue Jan 27, 2017 · 2 comments

Comments

@mcjon3z
Copy link
Contributor

mcjon3z commented Jan 27, 2017

I've noticed that tools in the config file that output only to screen and have no [OUTPUT] file parameter have their output stored in the database however do not have their output saved as .txt files in the tool output directories. The directories get created but remain empty.

Is this behavior by design? It would be helpful to have output for these tools as well available as standalone files for inclusion in workpapers or supporting documentation, either by export or by creating the files directly.

As a workaround, I've been able to get the output to file by appending a piped tee command and specifying an output file in that manner...

@st3r30byt3
Copy link
Contributor

Hi! It was by design but we are definitely considering the export option. In fact, we are planning to work on a reporting module in the future. It's all about finding the time :)

@mcjon3z
Copy link
Contributor Author

mcjon3z commented Jan 30, 2017

If there is anybody else out there that wants a workaround in the meantime, simply modify config file entries to pipe through the tee command. You have to call them through a bash command with the appropriate escape characters:

enum4linux=Run enum4linux, enum4linux [IP], "netbios-ssn,microsoft-ds"

becomes

enum4linux=Run enum4linux, bash -c \"enum4linux [IP] | tee [OUTPUT].txt\", "netbios-ssn,microsoft-ds"

Easy enough to do, just be careful if you are using Kali as your config can get overwritten with repo updates. I keep my own config files in a separate directory and then replace the symlink in /usr/share/%appname%

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

No branches or pull requests

2 participants