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

"ImportError: No module named..." issue #7

Open
matth82 opened this issue Jun 13, 2022 · 0 comments
Open

"ImportError: No module named..." issue #7

matth82 opened this issue Jun 13, 2022 · 0 comments

Comments

@matth82
Copy link

matth82 commented Jun 13, 2022

When I want to import various libraries it gives an error (when using a .py script on my kali the import of these libs works):

import base64
import hashlib
import time
import json
import jwt
from Crypto.PublicKey import RSA

Error log:

Traceback (most recent call last):
  File "/home/matt/.BurpSuite/bapps/eb563ada801346e6bdb7a7d7c5c52587/models.py", line 165, in processHttpMessage
    exec(self._code, globals_, locals_)
  File "<string>", line 3, in <module>
ImportError: No module named Crypto
...
ImportError: No module named jwt

Now I used /home/matt/.local/lib/python3.9/site-packages as maindir in the 'Folder for loading modules (optional)' section in the Extender->Options tab an it seems to work. However, creating a global function using def... gives me:

"NameError: global name 'base64' is not defined" -> apparently one can use 'import' within a global function to resolve it.

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

No branches or pull requests

1 participant