WEBVTT - This file was automatically generated by VIMEO

0
00:00:06.300 --> 00:00:09.800
Okay here is where we ended in the

1
00:00:09.800 --> 00:00:12.700
 previous demo. So we were able to fetch the

2
00:00:12.700 --> 00:00:15.500
 sensitive data from the database like passwords of

3
00:00:15.500 --> 00:00:18.700
 different users. It was very cool. But now let's

4
00:00:18.700 --> 00:00:21.500
 do even more cool thing. So instead

5
00:00:21.500 --> 00:00:23.900
 of dash dash dump, I will put here.

6
00:00:24.600 --> 00:00:28.400
and dash dash OS -

7
00:00:28.400 --> 00:00:29.200
 shell

8
00:00:30.500 --> 00:00:32.100
and I will hit enter.

9
00:00:33.100 --> 00:00:33.400
right

10
00:00:34.700 --> 00:00:37.400
and what say can

11
00:00:37.400 --> 00:00:40.600
 I see here? I'm asked which web

12
00:00:40.600 --> 00:00:43.900
 application language does the web server support the

13
00:00:43.900 --> 00:00:46.500
 default is PHP. And and

14
00:00:46.500 --> 00:00:48.900
 yeah, he indeed I'm gonna choose it.

15
00:00:50.900 --> 00:00:52.500
And now I've got a question.

16
00:00:53.300 --> 00:00:56.700
Where I want to install my back

17
00:00:56.700 --> 00:01:00.500
 door and the default location is as

18
00:00:59.500 --> 00:01:03.300
 you can see Slash VAR

19
00:01:02.300 --> 00:01:05.600
 slash. Www. Yeah, that's

20
00:01:05.600 --> 00:01:08.300
 that. That's the good place. So let's do it. I will

21
00:01:08.300 --> 00:01:08.600
 hit enter.

22
00:01:09.300 --> 00:01:12.200
And now the process is underway, right?

23
00:01:12.200 --> 00:01:15.100
 Oh, is it just finished right now? Can you see

24
00:01:15.100 --> 00:01:18.300
 OS shell nice. Let

25
00:01:18.300 --> 00:01:21.200
 me show you that indeed works. So for example,

26
00:01:21.200 --> 00:01:24.200
 I will put lsla and I will

27
00:01:24.200 --> 00:01:25.800
 see the kind of

28
00:01:27.800 --> 00:01:30.700
files in in the in the directory. Yeah,

29
00:01:30.700 --> 00:01:34.300
 I can see different PHP files

30
00:01:33.300 --> 00:01:34.900
 out there.

31
00:01:35.800 --> 00:01:37.400
This one is very nice.

32
00:01:38.200 --> 00:01:42.300
This one because this is the configuration file

33
00:01:41.300 --> 00:01:45.100
 right of the WordPress a

34
00:01:44.100 --> 00:01:46.800
 VP Dash config.php.

35
00:01:48.300 --> 00:01:48.600
So yeah.

36
00:01:49.700 --> 00:01:52.100
The Next Step I'm going to fetch the

37
00:01:52.100 --> 00:01:57.000
 content of this file. Why not? So cat VP

38
00:01:55.900 --> 00:01:58.800
 Dash config?

39
00:02:00.700 --> 00:02:03.600
dot PHP, right

40
00:02:04.800 --> 00:02:07.600
Yeah, here is the content very

41
00:02:07.600 --> 00:02:09.300
 nice. Let me go a little bit.

42
00:02:10.200 --> 00:02:14.700
Up. What? Can I see here? Mmm, very

43
00:02:14.700 --> 00:02:15.200
 nice.

44
00:02:16.400 --> 00:02:19.400
I see the user of the database is

45
00:02:19.400 --> 00:02:22.900
 root. And I've got the password Here

46
00:02:22.900 --> 00:02:26.600
 Right P capital E free

47
00:02:25.600 --> 00:02:28.200
 pm and so on

48
00:02:28.200 --> 00:02:28.800
 so forth.

49
00:02:29.400 --> 00:02:32.200
Very nice. I can just do whatever I want. This

50
00:02:32.200 --> 00:02:36.300
 is just an example. I'm reading the content of of

51
00:02:35.300 --> 00:02:38.200
 very sensitive file because I can

52
00:02:38.200 --> 00:02:38.600
 do it.

53
00:02:39.300 --> 00:02:41.100
I've got always shell.

54
00:02:41.500 --> 00:02:44.500
And always shall access right you can

55
00:02:44.500 --> 00:02:47.700
 do arbitrary Command right now, for example, you name?

56
00:02:49.000 --> 00:02:49.600
- A

57
00:02:52.300 --> 00:02:55.700
and and you will see here the

58
00:02:55.700 --> 00:02:56.400
 details.

59
00:02:57.200 --> 00:02:57.600
about

60
00:02:58.700 --> 00:03:01.700
a the operating system kernel version

61
00:03:01.700 --> 00:03:04.600
 stuff like that. So it's just I could

62
00:03:04.600 --> 00:03:07.800
 figure out right now tens or hundreds

63
00:03:07.800 --> 00:03:10.400
 of different commands. But now it's up to

64
00:03:10.400 --> 00:03:13.100
 your imagination. I just want to show you

65
00:03:13.100 --> 00:03:14.300
 that the back door.

66
00:03:15.400 --> 00:03:18.300
Has been indeed installed and I've got remote

67
00:03:18.300 --> 00:03:21.700
 code execution. This is how it works. And and now whatever

68
00:03:21.700 --> 00:03:24.200
 comes up to your mind. You can put here and you

69
00:03:24.200 --> 00:03:28.500
 will be executed because now you can execute arbitrary

70
00:03:27.500 --> 00:03:28.800
 code.

71
00:03:29.600 --> 00:03:32.600
Okay. I hope you really like

72
00:03:32.600 --> 00:03:33.300
 this demo.

73
00:03:34.400 --> 00:03:37.900
Let's go to the next subject because right now

74
00:03:37.900 --> 00:03:40.300
 you are the master of

75
00:03:40.300 --> 00:03:41.800
 exploitation with this tool.

76
00:03:42.800 --> 00:03:45.100
And what do you also want to

77
00:03:45.100 --> 00:03:48.400
 master in this course is how to

78
00:03:48.400 --> 00:03:51.800
 master the detection phase right? So I'm

79
00:03:51.800 --> 00:03:54.400
 going to show you how you can maximize the

80
00:03:54.400 --> 00:03:57.300
 power of SQL injection detection with SQL map

81
00:03:57.300 --> 00:04:00.400
 and this is what's gonna happen in the next module. So

82
00:04:00.400 --> 00:04:01.700
 thank you very much for your attention.
