InQuest / iocextract

Defanged Indicator of Compromise (IOC) Extractor.
https://inquest.readthedocs.io/projects/iocextract/
GNU General Public License v2.0
498 stars 91 forks source link

File redirection doesn't work #37

Closed sooshie closed 1 year ago

sooshie commented 4 years ago

If I run iocextract.py --input info.txt it will correctly print indicators to what seems to be standard out, however iocextract.py --input info.txt | less simply gives the the "you've got nothing END" in less. It looks like however you're getting the handle to STDOUT isn't the actual STDOUT handle.

Tested on OS X 10.14.6 with Python 3.7.6.

presianbg commented 3 years ago

Same on linux.

battleoverflow commented 1 year ago

Hi @sooshie,

Thanks to @presianbg's fix (https://github.com/InQuest/python-iocextract/pull/48), this issue should now be resolved. I will ping this issue once more when a new package is available from PyPI.

battleoverflow commented 1 year ago

The new PyPI package is now available!

PyPI: https://pypi.org/project/iocextract/1.13.8/ GitHub Releases: https://github.com/InQuest/python-iocextract/releases/tag/v1.13.8