WEBVTT - This file was automatically generated by VIMEO

0
00:00:07.300 --> 00:00:11.100
In this video, you will learn how to perform password hash

1
00:00:10.100 --> 00:00:13.600
 extractions from Lennox B systems.

2
00:00:14.200 --> 00:00:16.700
I hope you excited. So let's dive on in.

3
00:00:17.500 --> 00:00:20.200
To get started with this exercise. Please ensure you

4
00:00:20.200 --> 00:00:23.500
 have booted your metasploitable to virtual machine.

5
00:00:23.500 --> 00:00:26.400
 I'll ensure your Carly Linux virtual

6
00:00:26.400 --> 00:00:27.800
 machine is up and running.

7
00:00:28.800 --> 00:00:31.800
Once already let's open our terminal

8
00:00:31.800 --> 00:00:34.800
 on cardi Linux and will perform

9
00:00:34.800 --> 00:00:37.200
 a network scan to determine the

10
00:00:37.200 --> 00:00:41.000
 IP address of our Target system, which is metasploitable, too.

11
00:00:42.200 --> 00:00:45.700
To perform the scan we'll perform a ping scan. So

12
00:00:45.700 --> 00:00:49.300
 we'll type and map space Dash

13
00:00:48.300 --> 00:00:51.500
 SN followed by the network ID

14
00:00:51.500 --> 00:00:54.500
 or for pen test Network like

15
00:00:54.500 --> 00:00:57.400
 so the sky will take a few seconds to complete

16
00:00:57.400 --> 00:01:00.300
 and it will provide us with the targets

17
00:01:00.300 --> 00:01:01.300
 machine IP address.

18
00:01:02.500 --> 00:01:07.800
Currently our Target system. It is 172 tt137.

19
00:01:08.500 --> 00:01:10.200
So I'm going to copy this IP address.

20
00:01:11.100 --> 00:01:13.500
And now let's start, Metasploit.

21
00:01:15.500 --> 00:01:18.000
We'll type msf console like so and hit enter.

22
00:01:21.300 --> 00:01:24.300
If you recall in the previous section, we had

23
00:01:24.300 --> 00:01:28.100
 found a FTP security flow within

24
00:01:27.100 --> 00:01:31.000
 all metasploitable 2 virtual machine. Therefore

25
00:01:30.400 --> 00:01:33.600
 will exploit that security flow. So

26
00:01:33.600 --> 00:01:36.800
 we'll gain access into that system. Once

27
00:01:36.800 --> 00:01:39.500
 we gain access then we'll try to extract the

28
00:01:39.500 --> 00:01:42.300
 passwords use accounts and then perform the password

29
00:01:42.300 --> 00:01:44.700
 cracking on those password hashes.

30
00:01:46.300 --> 00:01:50.400
To exploit the target system will switch for vs.

31
00:01:49.400 --> 00:01:52.500
 Ftpd for any sort

32
00:01:52.500 --> 00:01:55.900
 of exploit module like so create and

33
00:01:55.900 --> 00:01:59.500
 this time we will type use like

34
00:01:58.500 --> 00:01:59.800
 so

35
00:02:01.200 --> 00:02:03.600
exploit / Unix

36
00:02:04.300 --> 00:02:07.900
FTP slash

37
00:02:07.900 --> 00:02:10.300
 vs. Ftpd

38
00:02:10.900 --> 00:02:13.800
underscore two three, four underscore back

39
00:02:13.800 --> 00:02:15.700
 door and hit enter great.

40
00:02:16.500 --> 00:02:18.500
Now we'll type set.

41
00:02:19.700 --> 00:02:23.100
Our host like so followed by

42
00:02:22.100 --> 00:02:25.900
 the IP address of our Target system and

43
00:02:25.900 --> 00:02:26.300
 hit enter.

44
00:02:27.300 --> 00:02:31.000
Once you are ready to exploit a system simply type exploit

45
00:02:30.200 --> 00:02:33.100
 and press enter create.

46
00:02:37.300 --> 00:02:39.400
And we have successfully found a shell.

47
00:02:40.100 --> 00:02:41.800
But we don't see anything.

48
00:02:43.700 --> 00:02:44.400
Let's type.

49
00:02:45.300 --> 00:02:46.500
ifconfig

50
00:02:47.100 --> 00:02:50.400
Actually, let's type. Who am I under enter

51
00:02:50.400 --> 00:02:53.800
 we have sent who am I and we have gotten the

52
00:02:53.800 --> 00:02:54.700
 response that says root.

53
00:02:58.500 --> 00:03:01.300
We can simply piece in this python code like so

54
00:03:01.300 --> 00:03:04.500
 and hit enter and now we have gotten a shell

55
00:03:04.500 --> 00:03:07.500
 that is a bit more recognizable to us since we

56
00:03:07.500 --> 00:03:10.500
 have got any shell with root privileges. We can

57
00:03:10.500 --> 00:03:13.700
 access a shadow file the shadow file will contain

58
00:03:13.700 --> 00:03:16.900
 a list of usernames and passwords that

59
00:03:16.900 --> 00:03:18.600
 are stored on this target system.

60
00:03:19.500 --> 00:03:23.000
To find the shadow file we can simply type cut slash

61
00:03:22.500 --> 00:03:25.800
 Etc / Shadow like

62
00:03:25.800 --> 00:03:28.400
 Soo card will simply display the contents

63
00:03:28.400 --> 00:03:30.100
 of this file force on screen.

64
00:03:30.800 --> 00:03:31.700
Simply hit enter.

65
00:03:32.400 --> 00:03:35.700
And greet. We have a list of user accounts

66
00:03:35.700 --> 00:03:37.900
 together with their password hashes.

67
00:03:38.900 --> 00:03:41.200
Let's copy all of these user accounts.

68
00:03:49.900 --> 00:03:52.600
I'm going to open the text edit on

69
00:03:52.600 --> 00:03:53.500
 Kali Linux like so

70
00:03:57.100 --> 00:04:00.800
and I'm going to piece all of these contents within it.

71
00:04:05.300 --> 00:04:08.200
Next I'm going to save this file. I'm going to click on file.

72
00:04:09.600 --> 00:04:11.000
Going to click on save us.

73
00:04:11.800 --> 00:04:13.600
And let's see if this file.

74
00:04:14.700 --> 00:04:16.100
as user

75
00:04:16.800 --> 00:04:18.100
underscore

76
00:04:18.900 --> 00:04:22.000
harshes like so the txt.

77
00:04:23.300 --> 00:04:24.800
and simply click on see if

78
00:04:25.700 --> 00:04:28.300
and it seems as do I have this already so I'm

79
00:04:28.300 --> 00:04:29.200
 going to replace it.

80
00:04:29.900 --> 00:04:30.400
Great.

81
00:04:31.400 --> 00:04:34.500
So not you have extracted a list

82
00:04:34.500 --> 00:04:37.500
 of users and the Apostle caches. Let's open

83
00:04:37.500 --> 00:04:38.700
 a new terminal.

84
00:04:44.800 --> 00:04:47.300
We can use John the Ripper to perform

85
00:04:47.300 --> 00:04:50.500
 password cracking on these password hashes.

86
00:04:50.500 --> 00:04:53.600
 So therefore we can get a plain text password for

87
00:04:53.600 --> 00:04:56.300
 our Target system and we already have

88
00:04:56.300 --> 00:04:58.000
 the user accounts as well.

89
00:05:00.700 --> 00:05:03.700
to use John let's type John like so

90
00:05:05.600 --> 00:05:07.400
you can simply type user hashes.

91
00:05:11.400 --> 00:05:13.700
followed by Dash Dash woodlist

92
00:05:14.900 --> 00:05:17.900
followed by the rock you text

93
00:05:17.900 --> 00:05:21.700
 file. Remember we had extracted roku.txt

94
00:05:20.700 --> 00:05:23.200
 file a couple of

95
00:05:23.200 --> 00:05:23.900
 sections ago.

96
00:05:25.400 --> 00:05:27.800
Once you're ready simply hit enter.

97
00:05:28.900 --> 00:05:30.900
This will take a few minutes to complete.

98
00:05:36.300 --> 00:05:37.800
Great after a few minutes.

99
00:05:39.300 --> 00:05:40.400
John has finished.

100
00:05:41.200 --> 00:05:44.700
To view the passwords we can simply type John like so

101
00:05:44.500 --> 00:05:46.200
 - shoe.

102
00:05:46.600 --> 00:05:49.300
Followed by user hashes like

103
00:05:49.300 --> 00:05:52.400
 so on hit enter currently. It has Shooters

104
00:05:52.400 --> 00:05:54.600
 three password hashes were cracked.

105
00:05:55.400 --> 00:05:58.600
So for the user call just call Sis. The password

106
00:05:58.600 --> 00:05:59.300
 is Batman.

107
00:06:00.100 --> 00:06:03.300
For the user called which is key log. The password

108
00:06:03.300 --> 00:06:06.400
 is 1 2 3 4 5 6 7 8 9.

109
00:06:07.200 --> 00:06:10.600
For the user account, which is service. The password is

110
00:06:10.600 --> 00:06:11.300
 also service.

111
00:06:13.300 --> 00:06:16.200
Create you have learned how to use John to perform

112
00:06:16.200 --> 00:06:19.600
 offline password cracking of password hashes out

113
00:06:19.600 --> 00:06:21.900
 to extracted from a linux-b system.

114
00:06:22.800 --> 00:06:26.000
In this video you have learned how to extract usernames

115
00:06:25.400 --> 00:06:29.400
 and passwords from Linux B systems. Furthermore.

116
00:06:28.400 --> 00:06:31.700
 You have learned how to perform password cracking

117
00:06:31.700 --> 00:06:32.900
 using John the Ripper.

118
00:06:34.300 --> 00:06:37.400
In the next video, we'll discuss the importance on the

119
00:06:37.400 --> 00:06:40.200
 benefits of privilege escalation attacks. I hope

120
00:06:40.200 --> 00:06:43.300
 this video has been informative for you and thank you for viewing.
