User Tools

Site Tools


blog:htb_linux_fundamentals

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
blog:htb_linux_fundamentals [2024/06/14 08:24] – created hacktheplanetblog:htb_linux_fundamentals [2024/09/04 18:47] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== [HTB] Linux Fundamentals ====== ====== [HTB] Linux Fundamentals ======
 +====== ======
 **Find out the machine hardware name and submit it as the answer. **\\ **Find out the machine hardware name and submit it as the answer. **\\
 ''htb-student@nixfund:~$ uname -m'' ''htb-student@nixfund:~$ uname -m''
Line 63: Line 63:
 ''man usermod'' This command will display the manual page for the usermod command, providing detailed information about its various options, syntax, and usage. ''man usermod'' This command will display the manual page for the usermod command, providing detailed information about its various options, syntax, and usage.
  
- +**Use the "systemctl" command to list all units of services and submit the unit name with the description "Load AppArmor profiles managed internally by snapd" as the answer.**\\ 
 +''systemctl list-units | grep Load'' 
 + 
 +**What is the type of the service of the "syslog.service"?** \\ 
 +''systemctl show syslog.service -p Type'' 
 + 
 +**Find a way to start a simple HTTP server inside Pwnbox or your local VM using “npm”. Submit the command that starts the web server on port 8080 (use the short argument to specify the port number).**\\ 
 +''http-server -p 8080'' 
 + 
 +**Find a way to start a simple HTTP server inside Pwnbox or your local VM using “php”. Submit the command that starts the web server on the localhost (127.0.0.1) on port 8080.**\\ 
 +''php -s 127.0.0.1:8080'' 
 + 
 +**How many partitions exist in our Pwnbox? (Format: 0)**\\ 
 +''3'' 
 + 
blog/htb_linux_fundamentals.1718353492.txt.gz · Last modified: 2024/09/04 18:43 (external edit)