CHALLENGE INFORMATION
Platform: TryHackMe
Path: Pre Security
Module: Linux Fundamentals
Room: Linux Fundamentals Part 3
Description: Power-up your Linux skills and get hands-on with some common utilities that you are likely to use day-to-day!
Introduction
Question 1: Let’s proceed!
No answer needed
Deploy Your Linux Machine
Question 1: I’ve logged into the Linux Fundamentals Part 3 machine using SSH and have deployed the AttackBox successfully!
No answer needed
Terminal Text Editors
Question 1: Create a file using Nano.
No answer needed
Question 2: Edit task3 located in tryhackme’s home directory using Nano. What is the flag?
<redacted-flag>
General/Useful Utilities
Question 1: Ensure you are connected to the deployed instance <machine-ip>.
No answer needed
Question 2: Now, use Python 3’s HTTPServer module to start a web server in the home directory of the tryhackme user on the deployed instance.
No answer needed
Question 3: Download the file http://<machine-ip>:8000/.flag.txt onto the TryHackMe AttackBox. Remember, you will need to do this in a new terminal. What are the contents?
<redacted-flag>
Question 4: Create and download files to further apply your learning – see how you can read the documentation on Python3’s HTTPServer module. Use Ctrl+C to stop the Python3 HTTPServer module once you are finished.
No answer needed
Processes 101
Question 1: Read me!
No answer needed
Question 2: If we were to launch a process where the previous ID was 300, what would the ID of this new process be?
301
Question 3: If we wanted to cleanly kill a process, what signal would we send it?
SIGTERM
Question 4: Locate the process that is running on the deployed instance <machine-ip>. What flag is given?
<redacted-flag>
Question 5: What command would we use to stop the service myservice?
systemctl stop myservice
Question 6: What command would we use to start the same service on the boot-up of the system?
systemctl enable myservice
Question 7: What command would we use to bring a previously backgrounded process back to the foreground?
fg
Maintaining Your System: Automation
Question 1: Ensure you are connected to the deployed instance and look at the running crontabs.
No answer needed
Question 2: When will the crontab on the deployed instance <machine-ip> run?
@reboot
Maintaining Your System: Package Management
Question 1: Since TryHackMe instances do not have an internet connection…this task only requires you to read through the material.
No answer needed
Maintaining Your System: Logs
Question 1: Look for the apache2 logs on the deployable Linux machine
No answer needed
Question 2: What is the IP address of the user who visited the site?
10.9.232.111
Question 3: What file did they access?
catsanddogs.jpg
Conclusions & Summaries
Question 1: Terminate the machine deployed in this room from task 2.
No answer needed
Question 2: Continue your learning in other Linux-dedicated rooms
No answer needed