Comments (8)
Hello @JPwnage, I'm also getting these install errors in Kali. I wonder if setup.py was originally written in Python 2 as Python 2 didn't require print statements to use parenthesis, but Python 3 does and the error that you and I are getting is saying that the print statement is missing parenthesis. I was seeing the issue attempting to install on a box with Python 3.11.1 installed.
from tplmap.
https://pypi.org/project/wsgiref/
I wonder if this would be a problem too? It looks like wsgiref 0.1.2 is only compatible with python 3.6 or less. Although, I think python 3.11 has a wsgiref utility built-in per the following python3 documentation:
https://docs.python.org/3/library/wsgiref.html#module-wsgiref
from tplmap.
Hi the reason why we are encountering problems is because the is python 2 and kali has python 3 and the code isn't compatible with python 3.
Solution is to setup a python 2.7 environment
cd tplmap
virtualenv -p python2 venv
source venv/bin/activate
from tplmap.
I tried to install in burp first and when that failed, I decided just to install and use the cli version instead but got many errors:
`(root㉿kali)-[~/tplmap] └─# pip install -r requirements.txt Collecting PyYAML==5.1.2 Downloading PyYAML-5.1.2.tar.gz (265 kB) ━━━━━━━━━━━━━━━━━━━━ 265.0/265.0 kB 9.4 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Collecting certifi==2018.10.15 Downloading certifi-2018.10.15-py2.py3-none-any.whl (146 kB) ━━━━━━━━━━━━━━━━━━━ 146.3/146.3 kB 25.3 MB/s eta 0:00:00 Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 3)) (3.0.4) Requirement already satisfied: idna==2.8 in /usr/local/lib/python3.10/dist-packages (from -r requirements.txt (line 4)) (2.8) Collecting requests==2.22.0 Downloading requests-2.22.0-py2.py3-none-any.whl (57 kB) ━━━━━━━━━━━━━━━━━━━━━ 58.0/58.0 kB 10.5 MB/s eta 0:00:00 Collecting urllib3==1.24.1 Downloading urllib3-1.24.1-py2.py3-none-any.whl (118 kB) ━━━━━━━━━━━━━━━━━━━ 118.1/118.1 kB 18.9 MB/s eta 0:00:00 Collecting wsgiref==0.1.2 Downloading wsgiref-0.1.2.zip (37 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [9 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/tmp/pip-install-lctvd9e0/wsgiref_d7010dd76a9d41859824def11078dadd/setup.py", line 5, in import ez_setup File "/tmp/pip-install-lctvd9e0/wsgiref_d7010dd76a9d41859824def11078dadd/ez_setup/init.py", line 170 print "Setuptools version",version,"or greater has been installed." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)? [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details. `
run these commands
git clone https://github.com/epinna/tplmap.git
cd tplmap
pip install virtualenv
virtualenv -p python2 venv
source venv/bin/activate
pip install -r requirements.txt
./tplmap.py -u 'http://<TARGET IP>:<PORT>' -d name=john
from tplmap.
Hi the reason why we are encountering problems is because the is python 2 and kali has python 3 and the code isn't compatible with python 3.
Solution is to setup a python 2.7 environment
> cd tplmap
virtualenv -p python2 venv
>
> source venv/bin/activate
After that use these commands to start your environment after install.
I actually put it in a script and for easy setup
from tplmap.
Hi JPwnage. Thanks for giving me a lesson in Python2 virtual environments :D
from tplmap.
I get the following when trying to run the virtualenv piece:
Exception: Wheel for wheel for Python 2.7 is unavailable. apt install python2-wheel-whl
apt can't locate the python2-wheel-whl app, and Googling isn't getting me anywhere.
from tplmap.
I get the following when trying to run the virtualenv piece:我在尝试运行virtualenv时得到以下结果:
Exception: Wheel for wheel for Python 2.7 is unavailable. apt install python2-wheel-whl
apt can't locate the python2-wheel-whl app, and Googling isn't getting me anywhere.apt找不到python 2-wheel-whl应用程序,谷歌搜索也没有找到任何地方。
I fixed some problems, maybe this helps you. https://github.com/qNwNp/tplmap
from tplmap.
Related Issues (20)
- Twig plugin blind injection exception - crash HOT 2
- 'bool' object has no attribute 'replace' HOT 5
- module 'collections' has no attribute 'Mapping' HOT 8
- requests module download faile
- Unable to detect SSTI
- Node test container not building
- doesn't support python3.10.9 HOT 5
- Getting error: Name 'GuiderQuest' is not defined even though it is global and i think it is all right? Help please.
- module 'collections' has no attribute 'Mapping' HOT 2
- Not working properly showing bool object no atribute replace error while runninng HOT 1
- Is this awesome tools provide witting a log?
- 3 arguments ? HOT 1
- target shell can't move to other file ,is it normal? HOT 1
- Traceback (most recent call last): File "./tplmap.py", line 3, in <module> HOT 5
- Why can't my cookie be configured normally
- ISSUE AGAIN
- Can't SSTI injection through cookie value
- Traceback (most recent call last): File "tplmap.py", line 2, in <module> HOT 4
- ERROR: No matching distribution found for PyYaml HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tplmap.