WEBVTT - This file was automatically generated by VIMEO

0
00:00:13.400 --> 00:00:16.100
Hello everyone and welcome to

1
00:00:16.100 --> 00:00:16.700
 this lesson.

2
00:00:17.900 --> 00:00:20.800
So here we are going to learn about how we

3
00:00:20.800 --> 00:00:22.400
 can break the root password.

4
00:00:23.100 --> 00:00:26.500
Or maybe you come across a situation in

5
00:00:26.500 --> 00:00:29.400
 which you just forgot the password for

6
00:00:29.400 --> 00:00:29.800
 your computer.

7
00:00:30.700 --> 00:00:31.700
And you need to log in.

8
00:00:32.500 --> 00:00:35.200
Or for some reasons you are locked

9
00:00:35.200 --> 00:00:35.800
 out of your computer.

10
00:00:36.600 --> 00:00:39.400
So in that case, how are you going to reset your

11
00:00:39.400 --> 00:00:42.800
 password or how you're going to break in and

12
00:00:42.800 --> 00:00:45.200
 reset the password and login into your computer?

13
00:00:45.200 --> 00:00:49.100
 So for that I'm just going to quickly restart my

14
00:00:48.100 --> 00:00:49.800
 Kali machine.

15
00:00:51.300 --> 00:00:55.000
So this is my machine which has successfully restarted. I'll

16
00:00:54.400 --> 00:00:57.400
 hit enter and then wait for

17
00:00:57.400 --> 00:00:57.700
 this to.

18
00:00:58.600 --> 00:00:59.000
start

19
00:01:01.400 --> 00:01:04.200
so this is my Linux machine,

20
00:01:04.200 --> 00:01:07.800
 which has restarted. I'll hit enter and I'll

21
00:01:07.800 --> 00:01:10.500
 wait for this to go on to the login screen.

22
00:01:11.700 --> 00:01:14.200
Alright, so I think now it is

23
00:01:14.200 --> 00:01:17.200
 going to boot up onto its login screen and I'm going

24
00:01:17.200 --> 00:01:20.400
 to show you that I will not log in with the

25
00:01:20.400 --> 00:01:23.400
 correct password, or maybe I've just forgot my

26
00:01:23.400 --> 00:01:24.400
 password for some reasons.

27
00:01:25.200 --> 00:01:28.000
My username is root, but the password is incorrect.

28
00:01:28.700 --> 00:01:31.800
So currently I'm typing in the password, which is ABCD

29
00:01:32.500 --> 00:01:36.100
That is obviously incorrect password. So I'll

30
00:01:35.100 --> 00:01:36.700
 just copy that.

31
00:01:37.600 --> 00:01:40.400
And I'll paste it over here and try to hit login

32
00:01:40.400 --> 00:01:41.000
 once more.

33
00:01:41.500 --> 00:01:44.700
And you can see the password is incorrect. Now, you

34
00:01:44.700 --> 00:01:47.800
 may come across these situations in

35
00:01:47.800 --> 00:01:50.100
 life wherein you now need to

36
00:01:50.100 --> 00:01:52.700
 go into your machine, but you don't know the password.

37
00:01:53.700 --> 00:01:56.900
So you're going to reset the password using a

38
00:01:56.900 --> 00:01:57.600
 technique?

39
00:01:58.500 --> 00:01:59.200
So let's do this.

40
00:02:00.300 --> 00:02:02.200
So for it you need to restart your computer.

41
00:02:03.100 --> 00:02:06.600
Before restarting here are some steps to reset

42
00:02:06.600 --> 00:02:07.300
 the root password.

43
00:02:08.200 --> 00:02:11.700
So the first is boot into the grub menu, so

44
00:02:11.700 --> 00:02:14.200
 this is basically nothing just do a restart.

45
00:02:15.200 --> 00:02:18.300
And it will automatically pop up a grub menu, which

46
00:02:18.300 --> 00:02:21.000
 is Grand unified bootloader, which is nothing

47
00:02:21.500 --> 00:02:24.200
 just the screen which says you that you need

48
00:02:24.200 --> 00:02:26.100
 to start the Kali machine.

49
00:02:27.100 --> 00:02:27.800
after that

50
00:02:28.900 --> 00:02:31.300
You have to select the second option and you

51
00:02:31.300 --> 00:02:35.000
 need to press e which is you need to edit in

52
00:02:34.300 --> 00:02:37.700
 order to edit the boot entry as shown

53
00:02:37.700 --> 00:02:40.400
 below. So first, let's do this two steps.

54
00:02:40.400 --> 00:02:43.400
 So I'm going to restart the machine and wait for

55
00:02:43.400 --> 00:02:46.200
 my machine to boot up and as soon as we

56
00:02:46.200 --> 00:02:47.200
 see the grub menu.

57
00:02:48.200 --> 00:02:51.800
We press e to edit the entry and

58
00:02:51.800 --> 00:02:55.000
 you can see clearly over here. It says gnu grub

59
00:02:54.100 --> 00:02:56.200
 version 2.04.

60
00:02:57.300 --> 00:03:00.800
Here and you can also see that here.

61
00:03:00.800 --> 00:03:03.500
 There are certain characters and string

62
00:03:03.500 --> 00:03:04.500
 which are being written.

63
00:03:05.400 --> 00:03:08.200
Alright, so now the next step

64
00:03:08.200 --> 00:03:11.200
 is to find the keyword, which is

65
00:03:11.200 --> 00:03:14.600
 Linux and search for r o

66
00:03:14.600 --> 00:03:17.400
 that is read only and replace that with

67
00:03:17.400 --> 00:03:19.000
 read and write.

68
00:03:20.200 --> 00:03:23.600
So, let's see. Where is Linux and here it is Linux and we

69
00:03:23.600 --> 00:03:27.100
 can also see that it is written as r o which

70
00:03:26.100 --> 00:03:29.300
 is read only we need to modify that

71
00:03:29.300 --> 00:03:32.300
 to read right. This is done. Next step

72
00:03:32.300 --> 00:03:36.200
 is find quiet and replace within

73
00:03:35.200 --> 00:03:38.500
 it bin bash. So

74
00:03:39.400 --> 00:03:42.100
Let's just do that. So here is quite

75
00:03:42.100 --> 00:03:45.600
 so let's just remove that and we're going to say in

76
00:03:45.600 --> 00:03:48.100
 it, which is initialize and we are

77
00:03:48.100 --> 00:03:48.400
 going to say

78
00:03:49.600 --> 00:03:52.300
Equals to bin bash but in the

79
00:03:52.300 --> 00:03:57.200
 new version of Kali it has implemented zsh,

80
00:03:56.200 --> 00:03:59.200
 so I will just say instead of

81
00:03:59.200 --> 00:04:00.100
 bash this time.

82
00:04:01.100 --> 00:04:04.400
bin slash zsh, which is the latest shell

83
00:04:05.300 --> 00:04:08.400
Done. Now you need to click F10 which will

84
00:04:08.400 --> 00:04:11.500
 save these changes and give a restart to

85
00:04:11.500 --> 00:04:12.000
 our machine.

86
00:04:13.300 --> 00:04:17.000
So let's wait for this to complete and now you

87
00:04:16.100 --> 00:04:19.600
 will come across screen on which

88
00:04:19.600 --> 00:04:23.000
 you need to see that do we

89
00:04:22.600 --> 00:04:25.600
 successfully have the read write

90
00:04:25.600 --> 00:04:28.600
 permissions or no? If we have that that

91
00:04:28.600 --> 00:04:31.300
 would be awesome and now we can reset the password

92
00:04:31.300 --> 00:04:33.500
 without logging in into the application.

93
00:04:34.600 --> 00:04:38.300
So now we can reset the password without knowing

94
00:04:37.300 --> 00:04:40.200
 the correct password. So this is

95
00:04:40.200 --> 00:04:43.800
 the screen and now here we need to type Mount

96
00:04:43.800 --> 00:04:46.700
 so we need to type Mount command

97
00:04:46.700 --> 00:04:49.700
 to check if we have the read/write permissions. It

98
00:04:49.700 --> 00:04:52.200
 is granted or no so quickly type

99
00:04:52.200 --> 00:04:56.200
 Mo UNT and you'll see yeah, we have RW. That

100
00:04:55.200 --> 00:04:56.900
 is awesome.

101
00:04:57.700 --> 00:05:00.500
Now we know we need to reset the password. So

102
00:05:00.500 --> 00:05:04.000
 the command would be passed WD and the

103
00:05:03.600 --> 00:05:06.200
 username that we want to reset for so it

104
00:05:06.200 --> 00:05:09.400
 is a root right now. So I'll choose a new password

105
00:05:09.400 --> 00:05:12.600
 which is root and again the same password which

106
00:05:12.600 --> 00:05:13.000
 is root.

107
00:05:14.100 --> 00:05:18.000
And hit enter and you can see the password is updated successfully now

108
00:05:17.400 --> 00:05:21.800
 I need to restart so I will say execute has

109
00:05:20.800 --> 00:05:24.000
 been and initialize the

110
00:05:23.300 --> 00:05:27.100
 unlevel so it will automatically restart my computer and

111
00:05:26.100 --> 00:05:29.500
 now I should be able to reset the

112
00:05:29.500 --> 00:05:29.800
 password.

113
00:05:30.800 --> 00:05:32.300
So I'll just copy ABCD.

114
00:05:33.200 --> 00:05:36.100
And paste it over here. So the new password that I

115
00:05:36.100 --> 00:05:39.600
 set was ABCD not root. So the username

116
00:05:39.600 --> 00:05:43.100
 is root. The password is ABCD, which was not working before but

117
00:05:42.100 --> 00:05:45.100
 it has worked now which means we have

118
00:05:45.100 --> 00:05:49.200
 successfully logged in into a machine with resetting

119
00:05:48.200 --> 00:05:51.800
 the password from the grub menu. You

120
00:05:51.800 --> 00:05:54.500
 can check I'm the root user currently and we

121
00:05:54.500 --> 00:05:57.600
 have used the password ABCD by resetting it

122
00:05:57.600 --> 00:05:59.100
 from the grub menu.

123
00:05:59.800 --> 00:06:02.000
I hope you guys understood this. Thank you.
