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

[-] Failed loading module at /tmp/_MEIlp1XZ1/nxc/modules/wam.py: No module named 'jwt' #519

Open
0xGreen opened this issue Dec 25, 2024 · 4 comments

Comments

@0xGreen
Copy link

0xGreen commented Dec 25, 2024

Describe the bug
Manually compiled the binary from the source code but getting the error: wam.py. No module named 'jwt'

Steps to reproduce the behavior i.e.:

Command: nxc nfs -L

Resulted in:

[-] Failed loading module at /tmp/_MEIlp1XZ1/nxc/modules/wam.py: No module named 'jwt'
LOW PRIVILEGE MODULES

HIGH PRIVILEGE MODULES (requires admin privs)

Expected behavior
Version: 1.3.0 / Codename: NeedForSpeed / Commit : 05ad3c6 works fine.

@Adamkadaban
Copy link
Contributor

jwt is listed as a requirement in pyproject.toml, so this shouldn't be the case.

How did you install it? The precompiled binary works for me and so does installation via pipx

@0xGreen
Copy link
Author

0xGreen commented Dec 25, 2024

I have manually compiled it from the source code (https://www.netexec.wiki/getting-started/installation/manually-building-the-binary).

The precompiled binary works fine for me as well but this binary is from Oct. jwt was added to pyproject.toml last week.

I did see jwt added into pyproject.toml that's why i complied it from the latest source code but it still complains about missing jwt for wam.

@NeffIsBack
Copy link
Contributor

Yep, the stable binaries are only supported on each release.
It is highly recommended to use pipx if you don't really have to use the binaries. However, if you still need to use them, try adding 'jwt' to the spec file, that should resolve at least this import error.

@0xGreen
Copy link
Author

0xGreen commented Dec 25, 2024

Yep, the stable binaries are only supported on each release. It is highly recommended to use pipx if you don't really have to use the binaries. However, if you still need to use them, try adding 'jwt' to the spec file, that should resolve at least this import error.

Thank you!!

Adding jwt and dploot.triage.wam under netexec.spec => hiddenimports worked.

without jwt:

./nxc nfs -L
[-] Failed loading module at /tmp/_MEIA3DpOK/nxc/modules/wam.py: No module named 'jwt'

with jwt but no dploot.triage.wam:

./nxc nfs -L
[-] Failed loading module at /tmp/_MEIA3DpOK/nxc/modules/wam.py: No module named 'dploot.triage.wam'

with jwt and dploot.triage.wam added to netexec.spec

./nxc nfs -L
LOW PRIVILEGE MODULES

HIGH PRIVILEGE MODULES (requires admin privs)

Shouldn't jwt and dploot.triage.wam be added to the source netexec.spec?

My working netexec.spec

hiddenimports=[                                                                                                                                                        
        'aardwolf',                                                                                                                                                         
        'aardwolf.connection',                                                                                                                                              
        .....SNIP.......                                                                                                                                              
        'impacket.tds',                                                                                                                                                     
        'impacket.version',                                                                                                                                                 
        'impacket.ldap.ldap',                                                                                                                                               
        'jwt',  
        'dploot.triage.wam',
        .....SNIP.......                                                                                                                                              

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