BC-SECURITY / Empire

Empire is a post-exploitation and adversary emulation framework that is used to aid Red Teams and Penetration Testers.
https://bc-security.gitbook.io/empire-wiki/
BSD 3-Clause "New" or "Revised" License
4.26k stars 581 forks source link

[BUG] #651

Closed RavenTait closed 1 year ago

RavenTait commented 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.

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'