1 00:00:00,740 --> 00:00:07,850 All right, so I want to get something off my chest I need to share with you as a penetration tester, 2 00:00:08,660 --> 00:00:12,800 it's really important to be organized while testing. 3 00:00:14,050 --> 00:00:19,590 Now, you're probably going to find yourself in an information pool and I don't want you to drown, 4 00:00:19,600 --> 00:00:27,550 it contains tons of details like credentials, vulnerable services, target scan reports, and the list 5 00:00:27,550 --> 00:00:28,270 goes on and on. 6 00:00:29,580 --> 00:00:36,270 So it is absolutely essential to keep track of what you've done on the network. 7 00:00:37,310 --> 00:00:47,090 So this is why MSF has an option to cover with extensive support, multiple database systems, so configuring 8 00:00:47,090 --> 00:00:51,530 a database to work with MSF will be a real time saver for you. 9 00:00:52,440 --> 00:00:56,100 MSF supports Maisky well and PostgreSQL. 10 00:00:57,410 --> 00:00:58,610 You can use both. 11 00:00:59,520 --> 00:01:07,710 However, PostgreSQL, you well is the default one, which has built in support within MSF, and by 12 00:01:07,710 --> 00:01:15,060 using this feature you can easily access scan information, export and import results, use the identified 13 00:01:15,060 --> 00:01:17,400 information later on in module's. 14 00:01:18,300 --> 00:01:23,850 Then you will also be able to keep your findings clean and well organized. 15 00:01:25,360 --> 00:01:31,210 So go ahead and open your terminal again, motorsport can use databases to store information. 16 00:01:32,520 --> 00:01:36,510 So you have the option to start without a database. 17 00:01:37,480 --> 00:01:43,270 But please, for better penetration testing experience, I do not recommend this. 18 00:01:44,050 --> 00:01:49,690 So before starting the MSF console using a database, you need to run a sequence of commands. 19 00:01:50,670 --> 00:01:55,920 The default installation of Métis Point framework on Colly uses PostgreSQL. 20 00:01:55,920 --> 00:02:06,510 Wow, so you should first start PostgreSQL from the Linux terminal by typing in System CTL start PostgreSQL 21 00:02:06,510 --> 00:02:09,150 DOT service and now the next thing. 22 00:02:10,440 --> 00:02:16,560 Is creating an initializing the sport database in PostgreSQL? 23 00:02:16,590 --> 00:02:24,000 Well, for this, you can use the MSF Debe command and here is the help screen for. 24 00:02:25,280 --> 00:02:35,690 So let's check the database status by typing in MSF DB status and what comes up is PostgreSQL is running 25 00:02:36,200 --> 00:02:42,280 an MSF DB finds a database connection file in the default directory. 26 00:02:43,040 --> 00:02:51,930 So if you start MSF, TB, it will use the information in this file for connecting to PostgreSQL. 27 00:02:51,950 --> 00:02:58,100 Well, so I'm going to go ahead and delete that database and let's create it from the beginning. 28 00:02:58,990 --> 00:03:02,500 And I safdie the lead for deletion. 29 00:03:04,250 --> 00:03:09,740 OK, so now initialization with Mzoudi in it. 30 00:03:11,620 --> 00:03:17,050 Then start the MSF divi with MSF, DBI start. 31 00:03:18,180 --> 00:03:25,860 Now, actually, when you run MSFC, it will automatically start PostgreSQL, you will, therefore you 32 00:03:25,860 --> 00:03:29,910 can only use MSF Debe but this is just my habit. 33 00:03:30,570 --> 00:03:35,520 So I'll first run PostgreSQL you will then MSF dbe. 34 00:03:37,970 --> 00:03:39,830 And I'm going to run it in quiet mode. 35 00:03:43,480 --> 00:03:45,760 OK, MSF console open. 36 00:03:46,690 --> 00:03:53,080 Now, in order to do the database operations, MSF console has its own database commands. 37 00:03:54,170 --> 00:03:59,900 So let's type in help database to get a look at these commands and here are some of them. 38 00:04:01,090 --> 00:04:03,130 And you can see the names are very clear. 39 00:04:04,260 --> 00:04:17,760 Check database status with DB status and Métis Boite connected to default Ms F3, so you can change 40 00:04:17,760 --> 00:04:22,200 this database, you can even create your own and connect to that. 41 00:04:22,950 --> 00:04:25,020 And that is going to be our next goal. 42 00:04:26,080 --> 00:04:35,050 And now I want to introduce you to the workspace concept and Métis Point, it's more like working under 43 00:04:35,050 --> 00:04:36,190 a project area. 44 00:04:36,220 --> 00:04:41,480 I think so simply type workspace to see the available workspaces. 45 00:04:42,010 --> 00:04:44,710 Now, here I have only the default one. 46 00:04:45,340 --> 00:04:54,040 The workspace command has a help screen so you can add, delete and create workspaces with abandon according 47 00:04:54,040 --> 00:04:55,750 to whatever your requirements are. 48 00:04:56,720 --> 00:05:02,270 And the Vickerman will list the workspaces in a verb bowsman. 49 00:05:03,170 --> 00:05:09,560 And I will add a couple of workspaces by using a as my parameter. 50 00:05:12,340 --> 00:05:19,450 And here are the workspaces that I have added now automatically, the last one is chosen, as you see 51 00:05:19,450 --> 00:05:24,610 here now, you can also delete a workspace by using the deep parameter. 52 00:05:26,580 --> 00:05:33,360 And let's say you want to change your workspace any time, just write its name after the workspace command. 53 00:05:34,280 --> 00:05:37,400 Well, I'm already using pen test for. 54 00:05:38,440 --> 00:05:42,520 All righty, then, let's connect Métis boy to our own database.