n00py/WPForce

syntax errors

geminimonster opened this issue · 8 comments

hi guys.
I'm trying to test my WP Website security Vulnerability with this amazing tool.
seriously its very nice , useful and beautiful.
but I've got some problems with run the tool.
here is the errors:
File "c:\WPForce\wpforce.py", line 72
print "Here is the content of the wordlists for each thread"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Here is the content of the wordlists for each thread")?

File "c:\WPForce\wpforce.py", line 96
print banner
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(banner)?

Did you try to put in parentheses around the string that you’re trying to print, like the error message suggested?

yes I did.
and syntax errors gone but new problems shows up:

Traceback (most recent call last):
File "C:\WPForce\wpforce.py", line 8, in
from urlparse import urljoin
ModuleNotFoundError: No module named 'urlparse'

File "c:\WPForce\wpforce.py", line 8
from urlparse
^
SyntaxError: invalid syntax

i tried to change the statement top of the code from " Import urllib2" to "import urllib.response"
as described in python 3 documentation and after run the code i got this error:
Traceback (most recent call last):
File "C:\WPForce\wpforce.py", line 8, in
from urlparse import urljoin
ModuleNotFoundError: No module named 'urlparse'

n00py commented

The main issue is this tool was written for Python 2.7. (the print statements are the giveaway)

It can be modernized for Python 3 with some effort, but it's currently not compatible

that's right,
I'm not an expert developer , i recently started learning and I'm drowning in .
just tried with python 2.7.0 in windows 10 x64 in a minute ago and instantly got : "SyntaxError: invalid syntax"

before python 2.7 I had installed python 3.9 for learning and developing on android.
few times i tried changing code for 3.9 version and nothing!