Infoga icon indicating copy to clipboard operation
Infoga copied to clipboard

TypeError: a bytes-like object is required, not 'str'

Open myservicegroovy opened this issue 5 years ago • 4 comments

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

myservicegroovy avatar Apr 01 '19 08:04 myservicegroovy

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.

int0x80 avatar May 23 '19 14:05 int0x80

I can reproduce it as well.

fabaff avatar May 24 '19 20:05 fabaff

Same error.

chinookinv avatar Jun 05 '19 01:06 chinookinv

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

ghost avatar Feb 17 '20 04:02 ghost