SafeBreach-Labs / SirepRAT

Remote Command Execution as SYSTEM on Windows IoT Core (releases available for Python2.7 & Python3)
BSD 3-Clause "New" or "Revised" License
373 stars 86 forks source link

mappings.py line 65: AttributeError: 'int' object has no attribute 'value' #4

Closed jbdu94 closed 4 years ago

jbdu94 commented 4 years ago

Hello

When I run the following command, I have the following error

python SirepRAT.py 10.10.xx.xx LaunchCommandWithOutput --return_output --cmd "C:\Windows\System32\cmd.exe" --args "/c powershell.exe ipconfig" --v Traceback (most recent call last): File "SirepRAT.py", line 52, in from common.mappings import SIREP_COMMANDS, RESULT_TYPE_TO_RESULT File "/home/tomski/HTB/SirepRAT/common/mappings.py", line 65, in ResultRecordType.SystemInformation.value: results.SystemInformationResult, AttributeError: 'int' object has no attribute 'value'

Could you please help me to fix it?

0xHasanM commented 4 years ago

pip uninstall enum pip install enum34

jbdu94 commented 4 years ago

Thx !!!

gearcapitan commented 4 years ago

imagen the problem persist

dorazouri commented 4 years ago

imagen the problem persist

Hi, please see issue #2 for the solution. Also - latest requirements.txt does specify enum34 explicitly, so that should do the work: pip install -r requirements.txt