Closed RavenTait closed 1 year ago
Note: Please fill out all sections (if applicable) and do not delete the below section headers, otherwise the bot will close the issue.
PSRansom fails to generate script.
Create a new task on an agent using powershell_exfiltration_psransom and fill out required options.
PSRansom task is generated and executed on the agent.
INFO]: 127.0.0.1:45864 - "POST /api/v2/agents/YEV42R5D/tasks/module/ HTTP/1.1" 400 [ERROR]: Error generating script: 'MainMenu' object has no attribute 'modules' Traceback (most recent call last): File "/home/kali/Empire/empire/server/core/module_service.py", line 257, in _generate_script return module.advanced.generate_class.generate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Empire/empire/server/modules/powershell/exfiltration/PSRansom.py", line 20, in generate script, err = main_menu.modules.get_module_source( ^^^^^^^^^^^^^^^^^ AttributeError: 'MainMenu' object has no attribute 'modules'
Note: Please fill out all sections (if applicable) and do not delete the below section headers, otherwise the bot will close the issue.
Empire Version
OS Information (Linux flavor, Python version)
Describe the bug
PSRansom fails to generate script.
To Reproduce
Create a new task on an agent using powershell_exfiltration_psransom and fill out required options.
Expected behavior
PSRansom task is generated and executed on the agent.
Screenshots
Additional context
INFO]: 127.0.0.1:45864 - "POST /api/v2/agents/YEV42R5D/tasks/module/ HTTP/1.1" 400 [ERROR]: Error generating script: 'MainMenu' object has no attribute 'modules' Traceback (most recent call last): File "/home/kali/Empire/empire/server/core/module_service.py", line 257, in _generate_script return module.advanced.generate_class.generate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Empire/empire/server/modules/powershell/exfiltration/PSRansom.py", line 20, in generate script, err = main_menu.modules.get_module_source( ^^^^^^^^^^^^^^^^^ AttributeError: 'MainMenu' object has no attribute 'modules'