s0md3v / Striker

Striker is an offensive information and vulnerability scanner.
GNU General Public License v3.0
2.22k stars 451 forks source link

BUG: Syntax error #14

Closed kot9pko closed 6 years ago

kot9pko commented 6 years ago

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
s0md3v commented 6 years ago

[Fixed] Can you please check again?

kot9pko commented 6 years ago

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 :)

s0md3v commented 6 years ago

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 6 years ago

No, I'm running it by python2

s0md3v commented 6 years ago

Huh? But why would python2 require you to use parentheses in print statement.