‫So far, we've just begun to scratch the surface of session management and massive console.
‫So now let's go a little deeper.
‫Here we are in a maternity session at the moment to drive back to the MSF console interface without
‫losing the session.
‫We can use the background command to send the session back.
‫Now we're in the MSF console interface, so let's open another session.
‫This time I'd like to open a shell session, so I'm going to use Pressing SEQ to create the session
‫search for the exact module.
‫Use this one.
‫So now I'll set a payload to have a shell session, windows shell, and let's use buying TCP IP this
‫time.
‫And show options set.
‫Our host is the victim, my XP system.
‫Two 07.
‫User is administrator.
‫And the password hash is on the desktop.
‫Now we can run the export.
‫There it is.
‫We have a special session now, so I want to drop back to the MSF console interface without losing this
‫shelf session.
‫Can I use the background command?
‫Well, it's an interpreter command, so it's not available in this session, but not to worry.
‫It's not the only option.
‫So if you click control, see when you're in the shell session, you are able to abort the session,
‫but we don't want to lose the session, so this is not what we want.
‫If you hit Control Z, that will send the session into the background and drop you back to massive console
‫interface.
‫So press y for yes and drop back to the MSF console, press enter and you're in the MSF console interface.
‫Sessions, L Tillis, Tulsa Sessions.
‫Now we have two sessions, one MetaTrader, Praeger and one show.
‫You sessions I with the ID number of this session to interact with that session and use the background
‫or control z to send the session to the background.
‫Now, one more thing that I want to say here, we use the session cell to list the active sessions.
‫Well, the sessions command without the parameter does the exact same thing.