This blog is a walkthrough for the machine in tryhackme on Linux Fundamentals Part 2 .
The machine contains 18 Tasks. Let's discuss and find the solutions for each one of them.
If you have not done Linux Fundamentals Part 1, please attempt it. You can check its walkthrough here.
Note: Before reading the solution/walkthrough, please try your best with the machine once.
Task - 1: Introduction
This task contains the introduction of the machine and a welcome note.
It also contains username and password of the machine that we are about to connect.
You should press on the "start machine" button to initiate your instance of the machine.
This section does not contain any question to be answered.
Task - 2: SSH - Intro
SSH is the act of remotely accessing a machine. SSH allows you to run commands interactively on the remote machine.
While the most common usage of a regular operating system is graphical (allowing you to see pictures, web browsers, file managers etc.), SSH works through a command line, meaning anything done on the target machine will be done through a command prompt.
This section does not contain any questions to be answered.
Task - 3: Putty and SSH
This section instructs us how to connect to the machine with Putty and SSH.
We are going to use SSH to connect with the machine, assuming we are using Linux as our base machine.
Username: shiba2
Password: pinguftw
Note: Before using SSH
Download the ovpn file that tryhackme provides you. For every user, an ovpn file is given. Download it and run the ovpn file.
Example: openvpn NAPV123.ovpn.
Here, NAPV123 is my username, the command is "ovpn <username>.ovpn".
Now, use SSH and connect to the given machine with its IP, username and password.
My given IP is: 10.10.56.181.
Type "ssh [email protected]", and the type in the password (pinguftw).
Tasks 4 and 5:
There are no questions to be answered.
Task - 6: $ operator
The export command is used to set values for environment variables.
Answer is "export nootnoot=1111"
Tasks 7 and 8:
There are no questions to be answered.
Task - 9: > operator
> is the operator for output redirection
Answer is "echo twenty > test".
echo will output twenty, > will redirect output to test.
Tasks 10:
There is no question to be answered.
Task - 11: > operator
Answer is "happynootnoises".
Use export command to set the value of the environment variable test1234 to $USER.
Tasks 12 and 13:
There are no questions to be answered.
Task - 14: chown
Answer is chown paradox file
Answer is chown paradox:paradox file.
Answer is -R.
Task - 15: chmod
Answer is 460.
4 - file can be read
6-That file can be written to and read
0- cant read, write or execute.
Answer is 777.
It is given in the reading information.
Task - 16: rm(remove)
Answer is -r.
Answer is -f.
Task - 17: mv(move)
Answer is "mv file /tmp".
Task - 18: Linux Fundamentals 3
It is just a concluding note.
0 Comments