-
-
Notifications
You must be signed in to change notification settings - Fork 581
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
[BUG] [ERROR]: Exception in agents.handle_agent_staging() for HAKE19F4 : Invalid ciphertext received. #735
Comments
Can you try version 5.11 and see if that issue is still there? Otherwise, you will need to request that Kali update their repo. |
same error with Empire v 5.10.3
and then there are cases where it does finish staging, but closes the powershell window on the victim computer afterwards
staging does work fully sometimes (including powershell staying open) but it is very rare |
I got more information from adding some output to the verify_hmac function in encryption.py
it seems the mac and the expected value don't match, which causes the function to return false. don't know what might cause this: failure:
success:
|
Thanks for following up with this information; I really appreciate it. Unfortunately, I am having no luck recreating it. If you want to jump into our Discord and @ me, I'd love to help in realtime and hopefully figure out what is wrong. |
Is there an existing issue for this?
Empire Version
5.4.2-0kali5
Python Version
3.11.2
Operating System
Kali Linux
Database
MariaDB
Current Behavior
occasionally throws
File "/usr/share/powershell-empire/empire/server/common/encryption.py", line 204, in aes_decrypt_and_verify raise Exception("Invalid ciphertext received.")
when an agent tries to connect to the listener. haven't been able to narrow down the cause of this issue. seems to occur at random.
Expected Behavior
it is expected to set up a connection between agent and listener
Steps To Reproduce
Victim:
OS Name: Microsoft Windows 11 Enterprise Evaluation
OS Version: 10.0.22621 N/A Build 22621
running in VirtualBox 7.0.8 r156879 on a Windows 10 Host System
Attacker:
Description: Kali GNU/Linux Rolling
Release: 2023.2
Codename: kali-rolling
running in VirtualBox 7.0.8 r156879 on a Windows 10 Host System
Steps to Reproduce:
attacker:
sudo powershell-empire server
in the Obfuscation tab of the Starkill Interface enable global obfuscation for powershell and preobfuscate all modules with Token\All\1
set up "http_com" type listener
create windows_launcher_bat stager for the listener
- language: powershell
- delete: off
- obfuscate: on with Token\All\1
download the stager and move to victim pc
victim pc:
(I tried this both with windows firewall and windows defender turned off as well as turned on, doesn't make a difference)
attacker (powershell-empire console ouput):
the error seems to occur completely randomly and sometimes the agent won't even connect to the listener
Anything else?
if I need to provide any more information to fix this, please let me know. any help narrowing down the root of this problem is appreciated, thanks
The text was updated successfully, but these errors were encountered: