smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
13.27k stars 2.29k forks source link

fix for issue #1820 #1826

Closed KDreynolds closed 5 months ago

KDreynolds commented 12 months ago

quick fix for Issue #1820

block of code reads the file specified by the -e argument into a string, which is then passed to the SpiderFootCli class as the stdin argument. However, the SpiderFootCli class expects an object with a readline method, not a string.

To fix this issue, I have modified the code to pass the file object itself, rather than a string containing the file's contents. Here's a rough idea of what the corrected code might look like:

KDreynolds commented 12 months ago

Please let me know if I missed anything on this fix. Thanks!

KDreynolds commented 11 months ago

I believe this is ready to go, let me know if I need to do anything else here.