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 Random #78

Open
crypter4908394 opened this issue Mar 26, 2020 · 4 comments
Open

ImportError: No module named Random #78

crypter4908394 opened this issue Mar 26, 2020 · 4 comments

Comments

@crypter4908394
Copy link

crypter4908394 commented Mar 26, 2020

Hello im having trouble with executing winpayloads. I just cant install module named Random, was trying to find but i dont find anything

Traceback (most recent call last):
File "./WinPayloads.py", line 2, in
from lib.main import *
File "/root/Winpayloads/lib/main.py", line 20, in
import psexec
File "/root/Winpayloads/lib/psexec.py", line 31, in
from impacket import version, smb
File "/usr/local/lib/python2.7/dist-packages/impacket-0.9.21.dev1+20200325.171015.69fee03f-py2.7.egg/impacket/smb.py", line 54, in
from impacket.krb5.gssapi import KRB5_AP_REQ
File "/usr/local/lib/python2.7/dist-packages/impacket-0.9.21.dev1+20200325.171015.69fee03f-py2.7.egg/impacket/krb5/gssapi.py", line 20, in
from Cryptodome.Hash import HMAC, MD5
File "/usr/local/lib/python2.7/dist-packages/pycryptodomex-3.9.7-py2.7-linux-x86_64.egg/Cryptodome/Hash/HMAC.py", line 39, in
from Cryptodome.Hash import BLAKE2s
File "/usr/local/lib/python2.7/dist-packages/pycryptodomex-3.9.7-py2.7-linux-x86_64.egg/Cryptodome/Hash/BLAKE2s.py", line 35, in
from Cryptodome.Random import get_random_bytes
ImportError: No module named Random

@Charliedean
Copy link
Contributor

This is likely due to mismatch of some libraries.
I can only suggest try using docker image

@crypter4908394
Copy link
Author

docker image

how can i do that if i can ask

@crypter4908394
Copy link
Author

This is likely due to mismatch of some libraries.
I can only suggest try using docker image

okay i fix it by deleting python2.7 folder

@LDelaforet
Copy link

i think this command can work

pip2 install random

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