asnmap icon indicating copy to clipboard operation
asnmap copied to clipboard

output not being writen to stdout with -c -silent

Open nickpending opened this issue 1 year ago • 1 comments

For example:

asnmap -a AS20001 -c -silent asnmap -a AS20001 -c

vs

asnmap -a AS20001 -c -silent -o myoutput.txt

The former produces no output and the latter works as intended. Previously, both worked as expected. The first would output CSV data to stdout and the second would write CSV data to a file.

I think this might be due to a recent change in runner.go (line 61) but haven't done enough testing to confirm.

nickpending avatar Mar 12 '24 15:03 nickpending

You're right; the behavior has changed with https://github.com/projectdiscovery/asnmap/pull/183. I'm on it.

dogancanbakir avatar Mar 12 '24 17:03 dogancanbakir