Comments (7)
You don't need to change the directory structure.
Just download tplmap to C:\Temp\tplmap
and load C:\Temp\tplmap\burp_extension.py
by burp suite.
from tplmap.
Oh stupid me! You are absolutely right, now it loads correctly:
I think the installation instructions are a bit hazy here, so if I may suggest, you could add instructions for Win users to download (or git clone) the whole repo.
Thanks again for your quick replies 👍 !
from tplmap.
@HunterOfBounties Please try following commands.
./bin/pip uninstall PyYaml requests
./bin/pip install PyYaml==5.1.2 requests==2.22.0
from tplmap.
Thanks for helping me. The output of the commands:
C:\Temp\jython>bin\pip uninstall PyYaml requests
�[33mDEPRECATION: A future version of pip will drop support for Python 2.7.�[0m
Uninstalling requests-2.24.0:
Would remove:
c:\temp\jython\lib\site-packages\requests-2.24.0.dist-info\*
c:\temp\jython\lib\site-packages\requests\*
Proceed (y/n)? y
Successfully uninstalled requests-2.24.0
Uninstalling PyYAML-5.3.1:
Would remove:
c:\temp\jython\lib\site-packages\pyyaml-5.3.1-py2.7.egg-info
c:\temp\jython\lib\site-packages\yaml\*
Would not remove (might be manually added):
c:\temp\jython\lib\site-packages\yaml\__init__$py.class
c:\temp\jython\lib\site-packages\yaml\composer$py.class
c:\temp\jython\lib\site-packages\yaml\constructor$py.class
c:\temp\jython\lib\site-packages\yaml\cyaml$py.class
c:\temp\jython\lib\site-packages\yaml\dumper$py.class
c:\temp\jython\lib\site-packages\yaml\emitter$py.class
c:\temp\jython\lib\site-packages\yaml\error$py.class
c:\temp\jython\lib\site-packages\yaml\events$py.class
c:\temp\jython\lib\site-packages\yaml\loader$py.class
c:\temp\jython\lib\site-packages\yaml\nodes$py.class
c:\temp\jython\lib\site-packages\yaml\parser$py.class
c:\temp\jython\lib\site-packages\yaml\representer$py.class
c:\temp\jython\lib\site-packages\yaml\resolver$py.class
c:\temp\jython\lib\site-packages\yaml\scanner$py.class
c:\temp\jython\lib\site-packages\yaml\serializer$py.class
c:\temp\jython\lib\site-packages\yaml\tokens$py.class
Proceed (y/n)? y
Successfully uninstalled PyYAML-5.3.1
C:\Temp\jython>bin\pip install PyYaml==5.1.2 requests==2.22.0
�[33mDEPRECATION: A future version of pip will drop support for Python 2.7.�[0m
Collecting PyYaml==5.1.2
�[?25l Downloading https://files.pythonhosted.org/packages/e3/e8/b3212641ee2718d556df0f23f78de8303f068fe29cdaa7a91018849582fe/PyYAML-5.1.2.tar.gz (265kB)
�[K |################################| 266kB 948kB/s eta 0:00:01
�[?25hCollecting requests==2.22.0
�[?25l Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
�[K |################################| 61kB 2.0MB/s eta 0:00:01
�[?25hRequirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\temp\jython\lib\site-packages (from requests==2.22.0) (1.25.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\temp\jython\lib\site-packages (from requests==2.22.0) (2020.6.20)
Collecting idna<2.9,>=2.5 (from requests==2.22.0)
�[?25l Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
�[K |################################| 61kB 2.4MB/s eta 0:00:01
�[?25hRequirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\temp\jython\lib\site-packages (from requests==2.22.0) (3.0.4)
Installing collected packages: PyYaml, idna, requests
Running setup.py install for PyYaml ... �[?25ldone
�[?25h Found existing installation: idna 2.10
Uninstalling idna-2.10:
Successfully uninstalled idna-2.10
Successfully installed PyYaml-5.1.2 idna-2.8 requests-2.22.0
�[33mWARNING: You are using pip version 19.1, however version 20.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.�[0m
Seems to be working, but still get the same error:
Traceback (most recent call last):
File "C:\Temp\tplmap\burp_extension.py", line 1, in <module>
from burp_extension.burp_extender import BurpExtender
File "C:\Temp\tplmap\burp_extension\burp_extender.py", line 2, in <module>
from config_tab import ConfigTab
File "C:\Temp\tplmap\burp_extension\config_tab.py", line 6, in <module>
from core.checks import plugins
ImportError: No module named core
at org.python.core.Py.ImportError(Py.java:329)
at org.python.core.imp.import_first(imp.java:1230)
at org.python.core.imp.import_module_level(imp.java:1361)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at burp_extension.config_tab$py.f$0(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/config_tab.py:103)
at burp_extension.config_tab$py.call_function(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/config_tab.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:630)
at org.python.core.imp.createFromPyClass(imp.java:312)
at org.python.core.imp.createFromPyClass(imp.java:255)
at org.python.core.imp.loadFromSource(imp.java:929)
at org.python.core.imp.find_module(imp.java:769)
at org.python.core.PyModule.findSubModule(PyModule.java:140)
at org.python.core.PyModule.impAttr(PyModule.java:107)
at org.python.core.imp.import_next(imp.java:1161)
at org.python.core.imp.import_module_level(imp.java:1350)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at burp_extension.burp_extender$py.f$0(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/burp_extender.py:5)
at burp_extension.burp_extender$py.call_function(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/burp_extender.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:630)
at org.python.core.imp.createFromPyClass(imp.java:312)
at org.python.core.imp.createFromPyClass(imp.java:255)
at org.python.core.imp.loadFromSource(imp.java:929)
at org.python.core.imp.find_module(imp.java:769)
at org.python.core.PyModule.findSubModule(PyModule.java:140)
at org.python.core.PyModule.impAttr(PyModule.java:107)
at org.python.core.imp.import_next(imp.java:1161)
at org.python.core.imp.import_logic(imp.java:1278)
at org.python.core.imp.import_module_level(imp.java:1369)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at org.python.pycode._pyx5.f$0(C:/Temp/tplmap/burp_extension.py:1)
at org.python.pycode._pyx5.call_function(C:/Temp/tplmap/burp_extension.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1687)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:535)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:287)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at burp.cbw.<init>(Unknown Source)
at burp.b7f.a(Unknown Source)
at burp.f96.lambda$panelLoaded$0(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
from tplmap.
Directory c:\temp\tplmap structure:
burp_extension.py
/burp_extension
/burp_extension/burp_extender.py
/burp_extension/channel.py
/burp_extension/ ...
from tplmap.
Thank you for reporting.
I think that this error means the tplmap/core
directory does not exist.
File "C:\Temp\tplmap\burp_extension\config_tab.py", line 6, in <module>
from core.checks import plugins
ImportError: No module named core
Does c:\temp\tplmap\core\checks.py
exist?
from tplmap.
No there weren't any subdirectories under c:\temp\tplmap\burp_extension. Now I copied everything from the root of the repository to folder c:\temp\tplmap\burp_extensions. But we are getting somewhere - as I try to load the extension in Burp, it finds core.checks module, but fails on plugins.engines.mako import:
Traceback (most recent call last):
File "C:\Temp\tplmap\burp_extension.py", line 1, in <module>
from burp_extension.burp_extender import BurpExtender
File "C:\Temp\tplmap\burp_extension\burp_extender.py", line 2, in <module>
from config_tab import ConfigTab
File "C:\Temp\tplmap\burp_extension\config_tab.py", line 6, in <module>
from core.checks import plugins
File "C:\Temp\tplmap\burp_extension\core\checks.py", line 1, in <module>
from plugins.engines.mako import Mako
ImportError: No module named plugins
at org.python.core.Py.ImportError(Py.java:329)
at org.python.core.imp.import_first(imp.java:1230)
at org.python.core.imp.import_module_level(imp.java:1361)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at burp_extension.core.checks$py.f$0(C:/Temp/tplmap/burp_extension/core/checks.py:141)
at burp_extension.core.checks$py.call_function(C:/Temp/tplmap/burp_extension/core/checks.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:630)
at org.python.core.imp.createFromPyClass(imp.java:312)
at org.python.core.imp.createFromPyClass(imp.java:255)
at org.python.core.imp.loadFromSource(imp.java:929)
at org.python.core.imp.find_module(imp.java:769)
at org.python.core.PyModule.findSubModule(PyModule.java:140)
at org.python.core.PyModule.impAttr(PyModule.java:107)
at org.python.core.imp.import_next(imp.java:1161)
at org.python.core.imp.import_logic(imp.java:1278)
at org.python.core.imp.import_module_level(imp.java:1369)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at burp_extension.config_tab$py.f$0(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/config_tab.py:103)
at burp_extension.config_tab$py.call_function(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/config_tab.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:630)
at org.python.core.imp.createFromPyClass(imp.java:312)
at org.python.core.imp.createFromPyClass(imp.java:255)
at org.python.core.imp.loadFromSource(imp.java:929)
at org.python.core.imp.find_module(imp.java:769)
at org.python.core.PyModule.findSubModule(PyModule.java:140)
at org.python.core.PyModule.impAttr(PyModule.java:107)
at org.python.core.imp.import_next(imp.java:1161)
at org.python.core.imp.import_module_level(imp.java:1350)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at burp_extension.burp_extender$py.f$0(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/burp_extender.py:5)
at burp_extension.burp_extender$py.call_function(C:/Users/MarkoN/OneDrive/scripts/burp/tplmap/burp_extension/burp_extender.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:630)
at org.python.core.imp.createFromPyClass(imp.java:312)
at org.python.core.imp.createFromPyClass(imp.java:255)
at org.python.core.imp.loadFromSource(imp.java:929)
at org.python.core.imp.find_module(imp.java:769)
at org.python.core.PyModule.findSubModule(PyModule.java:140)
at org.python.core.PyModule.impAttr(PyModule.java:107)
at org.python.core.imp.import_next(imp.java:1161)
at org.python.core.imp.import_logic(imp.java:1278)
at org.python.core.imp.import_module_level(imp.java:1369)
at org.python.core.imp.importName(imp.java:1528)
at org.python.core.ImportFunction.__call__(__builtin__.java:1285)
at org.python.core.PyObject.__call__(PyObject.java:433)
at org.python.core.__builtin__.__import__(__builtin__.java:1232)
at org.python.core.imp.importFromAs(imp.java:1620)
at org.python.core.imp.importFrom(imp.java:1595)
at org.python.pycode._pyx5.f$0(C:/Temp/tplmap/burp_extension.py:1)
at org.python.pycode._pyx5.call_function(C:/Temp/tplmap/burp_extension.py)
at org.python.core.PyTableCode.call(PyTableCode.java:173)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1687)
at org.python.core.__builtin__.execfile_flags(__builtin__.java:535)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:287)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at burp.cbw.<init>(Unknown Source)
at burp.b7f.a(Unknown Source)
at burp.f96.lambda$panelLoaded$0(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
checks.py, which tries to import mako, is now located at C:\Temp\tplmap\burp_extension\core\checks.py.
mako.py is now located at C:\Temp\tplmap\burp_extension\plugins\engines\mako.py.
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
- Problem installing in kali HOT 8
- 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.