Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax errors #21

Open
geminimonster opened this issue May 28, 2021 · 8 comments
Open

syntax errors #21

geminimonster opened this issue May 28, 2021 · 8 comments

Comments

@geminimonster
Copy link

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

@jeffwright13
Copy link

jeffwright13 commented May 28, 2021 via email

@geminimonster
Copy link
Author

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

@jeffwright13
Copy link

jeffwright13 commented May 28, 2021 via email

@geminimonster
Copy link
Author

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
Copy link
Owner

n00py commented May 28, 2021

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

@geminimonster
Copy link
Author

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"

@jeffwright13
Copy link

jeffwright13 commented May 28, 2021 via email

@geminimonster
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants