BUG: Syntax error
kot9pko opened this issue · comments
kot9pko commented
Started script with python2, got this exception after DNS Map:
File "theHarvester.py", line 56
print "Invalid search engine, try with: baidu, bing, bingapi,crtsh, dogpile, google, googleCSE, virustotal, netcraft, googleplus, google-profiles, linkedin, pgp, twitter, vhost, yahoo, all"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print "Invalid search engine, try with: baidu, bing, bingapi,crtsh, dogpile, google, googleCSE, virustotal, netcraft, googleplus, google-profiles, linkedin, pgp, twitter, vhost, yahoo, all")?
[>] Crawling the target for fuzzable URLs
[-] No fuzzable URLs found
Somdev Sangwan commented
[Fixed] Can you please check again?
kot9pko commented
Now another string :D
File "theHarvester.py", line 63
print '\033[1;97m[>]\033[1;m Initiating 3 intel modules'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(print '\033[1;97m[>]\033[1;m Initiating 3 intel modules')?
I think the best way is write it on python3 :)
Somdev Sangwan commented
Ah I see now.
You are running this script with python3 because we don't parentheses in a print statement in python2.
Well sorry, it won't work in python3.
kot9pko commented
No, I'm running it by python2
Somdev Sangwan commented
Huh? But why would python2 require you to use parentheses in print statement.