WEBVTT - This file was automatically generated by VIMEO

0
00:00:06.300 --> 00:00:09.500
Hello, guys, how are you? I hope that you like

1
00:00:09.500 --> 00:00:12.600
 the course so far and you will even more like

2
00:00:12.600 --> 00:00:15.500
 it after this module because

3
00:00:15.500 --> 00:00:19.000
 this module is really cool. As I told you it

4
00:00:18.500 --> 00:00:21.800
 in the introduction. This module

5
00:00:21.800 --> 00:00:24.400
 will show you how you can go from

6
00:00:24.400 --> 00:00:27.600
 SQL injection to even the more powerful

7
00:00:27.600 --> 00:00:30.600
 attack. Now the so-called remote code

8
00:00:30.600 --> 00:00:33.600
 execution. So we gonna

9
00:00:33.600 --> 00:00:36.400
 start with SQL injection and we're gonna end

10
00:00:36.400 --> 00:00:39.400
 with complete control over

11
00:00:39.400 --> 00:00:42.500
 the the vulnerable system. So that's gonna

12
00:00:42.500 --> 00:00:44.600
 be an ultimate fun for us, right?

13
00:00:45.600 --> 00:00:48.200
so, okay, where have we ended in the

14
00:00:48.200 --> 00:00:52.100
 last module and I believe you have remember so

15
00:00:51.100 --> 00:00:54.700
 still the same place like

16
00:00:54.700 --> 00:00:57.300
 item details.php question mark

17
00:00:57.300 --> 00:00:59.300
 ID equals sign 13

18
00:01:00.300 --> 00:01:02.900
And you learned how to use - dump.

19
00:01:04.100 --> 00:01:07.200
But this now time to how launch this

20
00:01:07.200 --> 00:01:10.600
 even more powerful attack and let me go to some

21
00:01:10.600 --> 00:01:13.000
 details of this powerful attack because it sounds

22
00:01:13.300 --> 00:01:16.500
 really cool. But you need to understand how it actually works. So here

23
00:01:16.500 --> 00:01:19.800
 is the sequence of steps and now I'm

24
00:01:19.800 --> 00:01:22.600
 gonna give you a high level overview because we

25
00:01:22.600 --> 00:01:26.000
 don't have to go into the details this

26
00:01:25.500 --> 00:01:28.600
 tool again SQL map will do

27
00:01:28.600 --> 00:01:31.600
 it automatically, right? So we're

28
00:01:31.600 --> 00:01:34.500
 gonna start with SQL injection and

29
00:01:34.500 --> 00:01:38.000
 you already know that SQL injection has been detected in

30
00:01:37.400 --> 00:01:41.200
 our testing web application. And what

31
00:01:40.200 --> 00:01:43.500
 we gonna do this time as

32
00:01:43.500 --> 00:01:47.200
 a result of SQL injection is install

33
00:01:46.200 --> 00:01:49.500
 a back door. This is

34
00:01:49.500 --> 00:01:52.400
 really cool because when I'm able

35
00:01:52.400 --> 00:01:54.100
 to install it back door

36
00:01:55.100 --> 00:01:58.200
Then I can actually do a Next Step which is

37
00:01:58.200 --> 00:02:01.500
 remote code execution when you are able to install a

38
00:02:01.500 --> 00:02:04.200
 back door. Well, you are the master of the system,

39
00:02:04.200 --> 00:02:07.500
 right? And for for some of you who are really

40
00:02:07.500 --> 00:02:11.600
 curious about the what's gonna happen underneath right?

41
00:02:11.600 --> 00:02:14.400
 Because the SQL map is going to do it for you. I will

42
00:02:14.400 --> 00:02:18.400
 give you some kind of more technical description. So

43
00:02:18.400 --> 00:02:21.800
 what you can do what you can do as a attacker in

44
00:02:21.800 --> 00:02:24.600
 case of SQL injection attack is you can

45
00:02:24.600 --> 00:02:27.500
 save a file right? It's

46
00:02:27.500 --> 00:02:30.200
 possible the consequence of SQL injection

47
00:02:30.200 --> 00:02:33.500
 attack can be saving a file and

48
00:02:33.500 --> 00:02:36.200
 now imagine that you are going to save a file

49
00:02:36.200 --> 00:02:40.900
 and this file is for example dot PHP

50
00:02:40.900 --> 00:02:43.200
 file right that PHP file it

51
00:02:43.200 --> 00:02:46.400
 actually means that whatever you're gonna put there will be

52
00:02:46.400 --> 00:02:48.100
 executed on the server side, right?

53
00:02:48.900 --> 00:02:51.300
And this is actually our back door. So you're gonna

54
00:02:51.300 --> 00:02:55.100
 save a file. We for example extension dot

55
00:02:54.100 --> 00:02:56.100
 PHP. This is just an example.

56
00:02:57.100 --> 00:02:58.700
And this is how our back door.

57
00:02:59.300 --> 00:03:02.500
And the viad is backdoor or thanks to this back

58
00:03:02.500 --> 00:03:05.300
 door. We can just do remote code execution. So

59
00:03:05.300 --> 00:03:07.100
 this is basically how it is.

60
00:03:08.600 --> 00:03:12.000
So I hope it is a it is clear. And again

61
00:03:11.500 --> 00:03:14.300
 SQL map will do

62
00:03:14.300 --> 00:03:15.300
 everything for you.

63
00:03:16.100 --> 00:03:19.900
But how to ask SQL map to install a

64
00:03:19.900 --> 00:03:23.300
 back door in case of SQL injection detection successful,

65
00:03:22.300 --> 00:03:24.800
 of course SQL injection detection.

66
00:03:26.200 --> 00:03:29.300
Here is the command. So now the

67
00:03:29.300 --> 00:03:32.300
 only difference is that instead of

68
00:03:32.300 --> 00:03:35.500
 using - dump we are

69
00:03:35.500 --> 00:03:39.000
 using dash dash OS -

70
00:03:39.100 --> 00:03:42.200
 shell that's it. That's the only difference

71
00:03:42.200 --> 00:03:45.500
 so still the very same example, but we

72
00:03:45.500 --> 00:03:48.600
 want to have more and more powerful attack.

73
00:03:48.600 --> 00:03:51.400
 This is actually the most powerful attack because when you've got

74
00:03:51.400 --> 00:03:54.600
 shell access then the game is over, right? This

75
00:03:54.600 --> 00:03:54.900
 is it

76
00:03:55.700 --> 00:03:58.400
And SQL map will do the all

77
00:03:58.400 --> 00:03:58.900
 job.

78
00:03:59.500 --> 00:03:59.900
for you

79
00:04:00.900 --> 00:04:03.900
So let's now jump to

80
00:04:03.900 --> 00:04:06.200
 the demo and let me show you how it

81
00:04:06.200 --> 00:04:10.700
 works how this backdoor is gonna be installed on

82
00:04:09.700 --> 00:04:12.400
 the vulnerable machine and how

83
00:04:12.400 --> 00:04:15.600
 I can do remote shell commands

84
00:04:15.600 --> 00:04:19.300
 gonna be fun demo. And yeah, let's

85
00:04:18.300 --> 00:04:20.300
 jump to them right now.
