1 00:00:00,570 --> 00:00:06,450 ‫So far, we've just begun to scratch the surface of session management and massive console. 2 00:00:07,050 --> 00:00:08,760 ‫So now let's go a little deeper. 3 00:00:10,120 --> 00:00:16,330 ‫Here we are in a maternity session at the moment to drive back to the MSF console interface without 4 00:00:16,330 --> 00:00:17,290 ‫losing the session. 5 00:00:17,650 --> 00:00:20,860 ‫We can use the background command to send the session back. 6 00:00:21,680 --> 00:00:26,920 ‫Now we're in the MSF console interface, so let's open another session. 7 00:00:26,920 --> 00:00:34,180 ‫This time I'd like to open a shell session, so I'm going to use Pressing SEQ to create the session 8 00:00:34,870 --> 00:00:37,060 ‫search for the exact module. 9 00:00:37,660 --> 00:00:38,350 ‫Use this one. 10 00:00:39,830 --> 00:00:48,410 ‫So now I'll set a payload to have a shell session, windows shell, and let's use buying TCP IP this 11 00:00:48,410 --> 00:00:48,770 ‫time. 12 00:00:49,700 --> 00:00:51,460 ‫And show options set. 13 00:00:51,490 --> 00:00:54,830 ‫Our host is the victim, my XP system. 14 00:00:55,260 --> 00:00:56,060 ‫Two 07. 15 00:00:57,600 --> 00:00:59,010 ‫User is administrator. 16 00:01:01,090 --> 00:01:03,240 ‫And the password hash is on the desktop. 17 00:01:09,160 --> 00:01:10,720 ‫Now we can run the export. 18 00:01:12,190 --> 00:01:12,820 ‫There it is. 19 00:01:12,850 --> 00:01:19,030 ‫We have a special session now, so I want to drop back to the MSF console interface without losing this 20 00:01:19,030 --> 00:01:19,780 ‫shelf session. 21 00:01:20,620 --> 00:01:22,630 ‫Can I use the background command? 22 00:01:23,380 --> 00:01:28,840 ‫Well, it's an interpreter command, so it's not available in this session, but not to worry. 23 00:01:29,260 --> 00:01:30,730 ‫It's not the only option. 24 00:01:31,710 --> 00:01:38,610 ‫So if you click control, see when you're in the shell session, you are able to abort the session, 25 00:01:38,610 --> 00:01:42,030 ‫but we don't want to lose the session, so this is not what we want. 26 00:01:42,950 --> 00:01:49,580 ‫If you hit Control Z, that will send the session into the background and drop you back to massive console 27 00:01:49,580 --> 00:01:50,180 ‫interface. 28 00:01:50,540 --> 00:01:58,790 ‫So press y for yes and drop back to the MSF console, press enter and you're in the MSF console interface. 29 00:02:00,470 --> 00:02:02,900 ‫Sessions, L Tillis, Tulsa Sessions. 30 00:02:03,960 --> 00:02:07,740 ‫Now we have two sessions, one MetaTrader, Praeger and one show. 31 00:02:09,790 --> 00:02:16,210 ‫You sessions I with the ID number of this session to interact with that session and use the background 32 00:02:16,210 --> 00:02:19,570 ‫or control z to send the session to the background. 33 00:02:20,550 --> 00:02:26,520 ‫Now, one more thing that I want to say here, we use the session cell to list the active sessions. 34 00:02:26,850 --> 00:02:31,260 ‫Well, the sessions command without the parameter does the exact same thing.