WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.600 --> 00:00:10.900
In this video, you will learn how to use immunity debugger

1
00:00:10.900 --> 00:00:14.000
 to help us find the right component that

2
00:00:13.200 --> 00:00:16.300
 we could exploit within our vulnerable

3
00:00:16.300 --> 00:00:19.400
 application. I hope you excited. So let's

4
00:00:19.400 --> 00:00:20.200
 iPhone in

5
00:00:21.500 --> 00:00:24.500
finding the right module simply allows us to look for a specific

6
00:00:24.500 --> 00:00:27.100
 component or a library file such as

7
00:00:27.100 --> 00:00:30.500
 a DOT dll file that has no memory protection

8
00:00:30.500 --> 00:00:33.300
 within the vulnerable application that we are

9
00:00:33.300 --> 00:00:33.600
 targeting.

10
00:00:34.300 --> 00:00:37.700
We can use a Mona module that we have previously copied

11
00:00:37.700 --> 00:00:40.600
 into the program files of immunity debugger.

12
00:00:40.900 --> 00:00:42.500
So to get started let's

13
00:00:43.500 --> 00:00:46.700
restart all server on reattacher

14
00:00:46.700 --> 00:00:47.600
 to immunity debugger

15
00:00:49.400 --> 00:00:52.500
let's run Vol server as administrator like

16
00:00:52.500 --> 00:00:52.600
 so

17
00:00:56.800 --> 00:00:59.800
Next we'll execute immunity bugger

18
00:00:59.800 --> 00:01:01.300
 with administrative privileges.

19
00:01:08.400 --> 00:01:11.700
Great now it's time to attach the wall server

20
00:01:11.700 --> 00:01:14.100
 application. Let's click on file.

21
00:01:14.900 --> 00:01:17.400
Attach and now let's select the

22
00:01:17.400 --> 00:01:20.100
 Vol server process and simply click on

23
00:01:20.100 --> 00:01:23.300
 a Dutch this time. We don't need to click on play. We

24
00:01:23.300 --> 00:01:26.000
 can simply leave the application in its pause mode.

25
00:01:29.200 --> 00:01:33.400
To see the list of Mona modules. Let us simply enter

26
00:01:32.400 --> 00:01:35.900
 a command within immunity

27
00:01:35.900 --> 00:01:36.300
 debugger.

28
00:01:36.800 --> 00:01:40.000
Let's do exclamation mark Mona.

29
00:01:40.700 --> 00:01:43.300
Modules like so and hit

30
00:01:43.300 --> 00:01:43.500
 enter.

31
00:01:44.800 --> 00:01:48.200
This will show us all of the modules that

32
00:01:47.200 --> 00:01:50.500
 is possibly exploitable or

33
00:01:50.500 --> 00:01:52.700
 that can be compromised by us.

34
00:01:53.700 --> 00:01:56.700
We are simply looking for something that is associated

35
00:01:56.700 --> 00:01:58.000
 with Volvo.

36
00:01:58.600 --> 00:02:01.600
Specifically, let's look in the version column.

37
00:02:02.300 --> 00:02:05.900
For instance, we can see version module name

38
00:02:05.900 --> 00:02:06.700
 and path.

39
00:02:07.500 --> 00:02:10.600
We simply need to look for something that belongs to

40
00:02:10.600 --> 00:02:12.400
 the wall server application.

41
00:02:13.400 --> 00:02:16.000
If you look closely we can see that this

42
00:02:16.800 --> 00:02:20.100
Particular component which is e SS

43
00:02:19.100 --> 00:02:21.200
 f u n c.

44
00:02:21.800 --> 00:02:24.600
Dot dll this is a library file

45
00:02:24.600 --> 00:02:27.400
 and notice that each

46
00:02:27.400 --> 00:02:30.500
 of these columns shows that it

47
00:02:30.500 --> 00:02:33.300
 is false. This means that there is no sort

48
00:02:33.300 --> 00:02:36.500
 of memory protection that is applicable to

49
00:02:36.500 --> 00:02:40.000
 the ESS F. UNC dot dll

50
00:02:39.700 --> 00:02:42.100
 component. This is great.

51
00:02:42.900 --> 00:02:45.900
Now that you have found a vulnerable component within

52
00:02:45.900 --> 00:02:48.400
 the application. Let's head over back to Kali

53
00:02:48.400 --> 00:02:51.500
 this time. We need to find something called the

54
00:02:51.500 --> 00:02:54.500
 opcode or the operation codes that will

55
00:02:54.500 --> 00:02:57.400
 simply allow us to jump directly into the

56
00:02:57.400 --> 00:02:59.400
 ESP register.

57
00:03:00.200 --> 00:03:03.300
By jumping into the ESP register those will

58
00:03:03.300 --> 00:03:06.400
 simply enable us to jump directly to a memory

59
00:03:06.400 --> 00:03:09.700
 location in which we can inject our militia Shell

60
00:03:09.700 --> 00:03:12.700
 Code that you will learn about in the next video. So let's

61
00:03:12.700 --> 00:03:14.300
 head over back to Kali Lennox.

62
00:03:16.300 --> 00:03:19.700
Once you're on your Kali Linux virtual machine simply open the

63
00:03:19.700 --> 00:03:19.900
 terminal

64
00:03:20.700 --> 00:03:23.900
we will use a special, Metasploit.

65
00:03:24.700 --> 00:03:27.900
We'll use a special component from Metasploit,

66
00:03:27.900 --> 00:03:30.100
 which is called the nazim shell.

67
00:03:30.700 --> 00:03:33.300
To use a Shell. Let's type msf. Like

68
00:03:33.300 --> 00:03:35.600
 so Dash and Asm.

69
00:03:38.900 --> 00:03:41.200
Underscore shell and hit enter.

70
00:03:43.100 --> 00:03:47.400
Now we can use this particular component to

71
00:03:46.400 --> 00:03:50.100
 Simply allow us to convert Assembly Language

72
00:03:49.100 --> 00:03:50.900
 into hex.

73
00:03:51.700 --> 00:03:54.700
Most importantly. We are trying to find the jump

74
00:03:54.700 --> 00:03:55.400
 address.

75
00:03:56.300 --> 00:03:57.800
within the registry

76
00:03:59.100 --> 00:04:01.200
let's type g m p

77
00:04:02.500 --> 00:04:06.200
to specify jump and where do we want to jump to the ESP?

78
00:04:05.200 --> 00:04:07.700
 That's it. Enter.

79
00:04:08.800 --> 00:04:09.100
create

80
00:04:10.300 --> 00:04:14.900
as you can see it has provided us with ffv4 which

81
00:04:13.900 --> 00:04:16.500
 is simply the jump code that

82
00:04:16.500 --> 00:04:16.600
 we need.

83
00:04:17.400 --> 00:04:20.300
Now that we have a strong code. Let's head over back

84
00:04:20.300 --> 00:04:21.800
 to immunity debugger.

85
00:04:24.600 --> 00:04:26.100
now let's use

86
00:04:27.200 --> 00:04:30.600
the jump code to help us find a specific

87
00:04:30.600 --> 00:04:31.500
 memory location.

88
00:04:33.800 --> 00:04:35.000
Let's delete this command.

89
00:04:36.400 --> 00:04:39.700
Let's type exclamation Mona like

90
00:04:39.700 --> 00:04:40.200
 so

91
00:04:40.900 --> 00:04:41.300
find

92
00:04:43.200 --> 00:04:44.000
- s

93
00:04:45.300 --> 00:04:49.500
and between our quotation marks, we'll specify the

94
00:04:48.500 --> 00:04:51.500
 hex value of FF.

95
00:04:52.100 --> 00:04:52.900
e 4

96
00:04:53.700 --> 00:04:56.500
To do so we'll specify slash X

97
00:04:56.500 --> 00:04:58.400
 to represent hexadecimal.

98
00:04:58.900 --> 00:05:01.500
Who specify two characters FF?

99
00:05:02.300 --> 00:05:04.800
Will put a slash X again.

100
00:05:05.400 --> 00:05:08.700
I'll specify the other two characters, which is E4.

101
00:05:11.800 --> 00:05:14.800
After we'll specify Dash M. The

102
00:05:14.800 --> 00:05:18.000
 specify the specific vulnerable module,

103
00:05:17.600 --> 00:05:20.900
 which is e SS f

104
00:05:20.900 --> 00:05:23.900
 u n c dot dll like

105
00:05:23.900 --> 00:05:24.300
 so

106
00:05:25.400 --> 00:05:26.400
simply hit enter.

107
00:05:28.400 --> 00:05:28.900
create

108
00:05:31.200 --> 00:05:34.900
As shown on the screen there are nine possible pointers.

109
00:05:34.900 --> 00:05:38.200
 Each of these pointers will provide

110
00:05:37.200 --> 00:05:40.500
 us or give us the capability

111
00:05:40.500 --> 00:05:43.700
 of finding the return address within the

112
00:05:43.700 --> 00:05:46.100
 memory when the program is executing.

113
00:05:47.700 --> 00:05:50.600
To put simply we'll need to test each of

114
00:05:50.600 --> 00:05:52.700
 these pointers within this column.

115
00:05:53.500 --> 00:05:56.300
However, let's write down the first pointer.

116
00:05:57.600 --> 00:05:59.800
Which is 6 to 5 0.

117
00:06:00.500 --> 00:06:02.000
one one EF

118
00:06:03.100 --> 00:06:06.400
practically speaking in a real situation will need

119
00:06:06.400 --> 00:06:09.000
 to write on each of these and test them individually.

120
00:06:14.700 --> 00:06:15.900
before we restart

121
00:06:17.600 --> 00:06:19.600
let's click on this icon.

122
00:06:20.800 --> 00:06:23.700
Which simply allows us to specify a jump

123
00:06:23.700 --> 00:06:23.900
 location?

124
00:06:26.800 --> 00:06:29.600
Let's enter the pointer address, which

125
00:06:29.600 --> 00:06:33.000
 is 6 to 5 0 1 1 AF

126
00:06:32.200 --> 00:06:34.800
 like so and click on Okie.

127
00:06:36.500 --> 00:06:39.500
If you look closely we can see we have found

128
00:06:39.500 --> 00:06:42.300
 that particular Point address. We have

129
00:06:42.300 --> 00:06:46.300
 seen the hexadecimal value FF E4

130
00:06:45.300 --> 00:06:48.100
 and specifies to

131
00:06:48.100 --> 00:06:50.300
 jump to the ESP register.

132
00:06:51.100 --> 00:06:55.600
Let's press f2 on our keyboard simply ensure

133
00:06:55.600 --> 00:06:58.700
 you select the jump ESP location with

134
00:06:58.700 --> 00:06:59.400
 a pointer dress.

135
00:07:00.100 --> 00:07:02.300
And press f2 on your keyboard.

136
00:07:03.100 --> 00:07:05.800
Now you can see the pointer dress is now highlighted.

137
00:07:09.800 --> 00:07:12.500
This will both shows the exact jump ESP

138
00:07:12.500 --> 00:07:15.600
 location. Plus it will allow us

139
00:07:15.600 --> 00:07:18.200
 to set a breakpoint on this particular

140
00:07:18.200 --> 00:07:18.600
 spot.

141
00:07:20.300 --> 00:07:23.800
Once a program reaches here, it will stop executing.

142
00:07:25.300 --> 00:07:26.400
Let's click on play.

143
00:07:27.900 --> 00:07:30.300
Create now, our application is

144
00:07:30.300 --> 00:07:30.700
 running.

145
00:07:31.800 --> 00:07:34.800
The Next Step it is to generate our militia

146
00:07:34.800 --> 00:07:37.200
 Shell Code and compromise the target

147
00:07:37.200 --> 00:07:37.500
 system.

148
00:07:38.800 --> 00:07:41.400
During the course of this video you have learned how to

149
00:07:41.400 --> 00:07:45.100
 use immunity debugger to find it vulnerable component such

150
00:07:44.100 --> 00:07:47.500
 as an exe or even a

151
00:07:47.500 --> 00:07:50.500
 DOT dll file within an application, which will

152
00:07:50.500 --> 00:07:53.800
 simply a low us to exploit and compromise

153
00:07:53.800 --> 00:07:55.900
 application and also gain access.

154
00:07:57.200 --> 00:08:00.600
In the next video, you will learn how to create malicious Shell

155
00:08:00.600 --> 00:08:03.400
 Code to obtain administrator or even

156
00:08:03.400 --> 00:08:06.400
 root access on your target system. I hope

157
00:08:06.400 --> 00:08:09.500
 this video has been informative for you and I will see you in the

158
00:08:09.500 --> 00:08:09.700
 next one.
