1
00:00:00,001 --> 00:00:05,002
(bouncy intro music)

2
00:00:05,002 --> 00:00:07,000
- [Instructor] So, I've interrupted GRUB.

3
00:00:07,000 --> 00:00:10,008
I'm in the menu here. Let's do an e for edit.

4
00:00:10,008 --> 00:00:15,009
Let's look for kernel line.

5
00:00:15,009 --> 00:00:17,009
Here we go, here's the first kernel line.

6
00:00:17,009 --> 00:00:31,003
Let's say CMD ARG, TRY ONE init = bin/bash.

7
00:00:31,003 --> 00:00:34,005
And then let's look for another one.

8
00:00:34,005 --> 00:00:36,007
Got another one here.

9
00:00:36,007 --> 00:00:42,005
Let's go CMD ARG TRY TWO

10
00:00:42,005 --> 00:00:47,002
init = bin/bash

11
00:00:47,002 --> 00:00:51,006
and let's try to boot that.

12
00:00:51,006 --> 00:00:54,006
Alright, looks like it booted and I got a shell prompt here.

13
00:00:54,006 --> 00:00:58,003
I don't have to log in.

14
00:00:58,003 --> 00:01:01,005
How many things have we got in /bin?

15
00:01:01,005 --> 00:01:03,006
1400. It's got a lot.

16
00:01:03,006 --> 00:01:05,007
Got any block devices?

17
00:01:05,007 --> 00:01:10,007
Yeah, it sees three discs, processes,

18
00:01:10,007 --> 00:01:12,002
yeah, there's a lot of kernel threads,

19
00:01:12,002 --> 00:01:18,001
all these kworkers.

20
00:01:18,001 --> 00:01:23,008
And all these /3 things are also kernel stuff.

21
00:01:23,008 --> 00:01:26,001
In fact, this is pretty much all kernel stuff

22
00:01:26,001 --> 00:01:27,007
except for the ps and the grip.

23
00:01:27,007 --> 00:01:31,004
If we do pstree, do we have that command?

24
00:01:31,004 --> 00:01:35,001
There's like no processes, right?

25
00:01:35,001 --> 00:01:39,004
All we have is the shell, but we have our discs.

26
00:01:39,004 --> 00:01:41,001
And this could be handy, for example,

27
00:01:41,001 --> 00:01:44,007
if you forgot your root password.

28
00:01:44,007 --> 00:01:48,008
This also could be handy if you were trying to be malicious.

29
00:01:48,008 --> 00:01:51,009
So be careful if someone can get to your console,

30
00:01:51,009 --> 00:01:54,003
they potentially can interrupt GRUB

31
00:01:54,003 --> 00:01:59,000
and get into a shell as root, right.

