Metasploit mailing list archives

how to quit a shell gracefully?


From: junkoi2004 at gmail.com (Jun Koi)
Date: Thu, 28 May 2009 11:43:43 +0900

On Wed, May 13, 2009 at 9:34 AM, Jun Koi <junkoi2004 at gmail.com> wrote:
hi Rob,

On Tue, May 12, 2009 at 10:08 PM, Rob Fuller <mubix at room362.com> wrote:
Jun,
?? Lauri is right. However if you are trying to close the session for good,
you are going to crash the process that you are in. I believe this is based
on the EXITFUNC (Exit Function) that is used (SEH, Process, Thread).
?? But as a best practice, in my penetration testing, I migrate to a service
(if possible - depending on level of access) that is marked to auto restart,

This part is interesting! Could you explain how to "migrate" to another service?
Does "migrate" mean "injecting shell into another process"?

A follow up question: could anybody explain how to "migrate" to
another process once we are in (so we can be more stealthy)? Any
command for that?

Thanks a lot,
J


Current thread: