nccgroup / Winpayloads

Undetectable Windows Payload Generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImportError: No module named Random

crypter4908394 opened this issue · comments

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

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

docker image

how can i do that if i can ask

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

i think this command can work

pip2 install random