
Operating System Security
This guide contains the answer and steps necessary to get to them for the Operating System Security room.
Table of contents
- Introduction to Operating System Security
- Common Examples of OS Security
- Practical Example of OS Security
Introduction to Operating System Security
-
Which of the following is not an operating system?
- AIX
- Android
- Chrome OS
- Solaris
- Thunderbird
Thunderbird is a type of email client.
Click for answer
Thunderbird
Common Examples of OS Security
-
Which of the following is a strong password, in your opinion?
- iloveyou
- 1q2w3e4r5t
- LearnM00r
- qwertyuiop
The first one is a simple phrase which can be easily guessed. The second and fourth ones are all simple passwords when looking at the layout of a standard qwerty keyboard.
Click for answer
LearnM00r
Practical Example of OS Security
In this task we will attempt to get into the system and see if we can find password information for other users. After a quick scan we see that SSH is running on its default port.
nmap -sV 10.10.55.195

With the information we found on the notes we can try logging into sammie's account through SSH.
ssh sammie@10.10.55.195

Next we use the mentioned commands to get some more info on the system

We also look at the terminal history with history.

They mentioned others users. We can check this by looking at the home folder.
ls -lh /home/

-
Based on the top 7 passwords, let’s try to find Johnny’s password. What is the password for the user johnny?
I looked a different websites and the top 7 of the rockyou.txt file, but couldn't find the correct password.
cmdsed -n 1,7p /usr/share/wordlists/rockyou.txt
I then decided to cheat a little and use hydra to crack it using the rockyou list.
cmdhydra -l sammie -P /usr/share/wordlists/rockyou.txt ssh://10.10.55.195 -t 4

Click for answer
abc123 -
Once you are logged in as Johnny, use the command history to check the commands that Johnny has typed. We expect Johnny to have mistakenly typed the root password instead of a command. What is the root password?
Looking through the
historyfile we can see a password.
Click for answer
happyHack!NG -
While logged in as Johnny, use the command su - root to switch to the root account. Display the contents of the file flag.txt in the root directory. What is the content of the file?
We use
su - rootto switch to the root user with our found password and look for the flag on the system.
Click for answer
THM{YouGotRoot}