Infoga
Infoga copied to clipboard
TypeError: a bytes-like object is required, not 'str'
Traceback (most recent call last): File "E:\tool\infoga\infoga.py", line 109, in <module> infoga().main() File "E:\tool\infoga\infoga.py", line 101, in main PPrint(ips,email,self.verbose,self.breach,self.report).output() File "E:\tool\infoga\lib\output.py", line 112, in output self.file.write('[+] '+ email +'\n') TypeError: a bytes-like object is required, not 'str'
When I try to save ... and by command infoga.py --domain cia.gov --source all --breach -v 3 --report C:\Users\pc\Desktop\gov.txt
Also received this.
Traceback (most recent call last):
File "infoga.py", line 109, in <module>
infoga().main()
File "infoga.py", line 101, in main
PPrint(ips,email,self.verbose,self.breach,self.report).output()
File "/Users/user/tools/Infoga/lib/output.py", line 63, in output
self.file.write('[+] '+email+'\n')
TypeError: a bytes-like object is required, not 'str'
This is with Python 3.7.3 inside a virtualenv running on macOS Mojave.
I can reproduce it as well.
Same error.
I had that same issue running it in Python 3. A fix for it is to go into 'infoga.py' and change line 74 from if o in ('-r','--report'):self.report= open(a,'wb') if a != '' else None
to if o in ('-r','--report'):self.report= open(a,'w') if a != '' else None