THM Linux Fundamentals3 (Updated)

Rishika Agarwal
3 min readJun 15, 2021

This TryHackMe room is the third part of the Linux Fundamentals room designed to teach you various Linux concepts and built-in tools. Do check out the writeups of part 1 and part 2. Click here for the link of this room.

Task 1: Introduction
No answer needed.

Task 2: Deploy Your Linux Machine
No answer needed.

Task 3: Terminal Text Editors
No answer needed.
Q: Edit “task3” located in “tryhackme”’s home directory using Nano. What is the flag?
A: THM{TEXT_EDITORS}

Task 4: General/Useful Utilities
Q: Ensure you are connected to the deployed instance (MACHINE_IP)
A: No answer needed.
Q: Now, use Python 3’s “HTTPServer” module to start a web server in the home directory of the “tryhackme” user on the deployed instance.
A: No answer needed.
Q: Download the file http://MACHINE_IP:8000/.flag.txt onto the TryHackMe AttackBox. What are the contents?
A: THM{WGET_WEBSERVER}
Q: 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.
A: No answer needed.

Task 5: Processes 101
Q: Read me!
A: No answer needed.
Q: If we were to launch a process where the previous ID was “300”, what would the ID of this new process be?
A: 301
Q: If we wanted to cleanly kill a process, what signal would we send it?
A: SIGTERM
Q: Locate the process that is running on the deployed instance (MACHINE_IP). What flag is given?
A: THM{PROCESSES}
Q: What command would we use to stop the service “myservice”?
A: systemctl stop myservice
Q: What command would we use to start the same service on the boot-up of the system?
A: systemctl enable myservice
Q: What command would we use to bring a previously backgrounded process back to the foreground?
A: fg

Task 6: Maintaining Your System: Automation
Q: Ensure you are connected to the deployed instance and look at the running crontabs.
A: No answer needed.
Q: When will the crontab on the deployed instance (MACHINE_IP) run?
A: @reboot

Task 7: Maintaining Your System: Package Management
No answer needed.

Task 8: Maintaining Your System: Logs
Q: Look for the apache2 logs on the deployable Linux machine
A: No answer needed.
Q: What is the IP address of the user who visited the site?
A: 10.9.232.111
Q: What file did they access?
A: catsanddogs.jpg

Task 9: Conclusions & Summaries
No answers needed.

Congratulations! You have completed this room!

I hope you enjoyed this Writeup and will come back to see the many more Writeups that I will be writing. Happy Hacking!

--

--

Rishika Agarwal

Ethical Hacker| Bug Hunter | C++ Programmer | Web Developer