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
hi
i am a emergency response engineer,I did an experiment
I generated the Trojan through kali metasploit and executed it in win7.
The PID after execution was 2001,
In kali I execute ps | grep explorer.exe
result is 2890,
I executed migrate 2890
then I checked netstat -ano
and I could see that the PID was 2001 network connection,But process 2001 is dead
I cannot see the network connection with PID 2890.
at kali,i execute getpid
result is 2890
How should I emergency in this case? Restart the server?
The text was updated successfully, but these errors were encountered:
Assuming that the reverse_tcp or bind_tcp stager is in use, I would guess that it's due to migrate duplicating the socket with WSADuplicateSocketA in server_transport_tcp.c#L847. The socket is probably marked as owned by the original process that created it before it was duplicated as part of the migration process. I don't think this is a bug and from my understanding of the question, nothing is broken. It's just undocumented how the transport socket is reported via netstat.
If your objective is to make the socket look like it's from the process that Meterpreter is running in, then sleep would probably do the trick by closing it for a couple of seconds and then reopening it in. That'd cause the socket to be closed and reopened so it'd be accurate until the Meterpreter migrates again.
If your objective is to find the process that Meterpreter is actually running in from the socket, maybe looking at the open handles with something like Process Hacker might help.
hi
i am a emergency response engineer,I did an experiment
I generated the Trojan through kali metasploit and executed it in win7.
The PID after execution was 2001,
In kali I execute
ps | grep explorer.exe
result is 2890,
I executed
migrate 2890
then I checked
netstat -ano
and I could see that the PID was 2001 network connection,But process 2001 is dead
I cannot see the network connection with PID 2890.
at kali,i execute
getpid
result is 2890
How should I emergency in this case? Restart the server?
The text was updated successfully, but these errors were encountered: