Knife attack path and techniques
By Daniel Dayan ยท Updated
Knife is an easy Linux machine on Hack The Box that I solved myself. It maps to the technique hubs Command Injection and RCE; Sudo Misconfiguration.
Overview
Knife is an easy Linux machine from Hack The Box.
| Platform | Hack The Box |
|---|---|
| Operating system | Linux |
| Difficulty | Easy |
| Walkthroughs | IppSec video walkthrough available |
Attack path summary
Knife is an easy difficulty Linux machine that features an application which is running on a backdoored version of PHP. This vulnerability is leveraged to obtain the foothold on the server.
Techniques explained
- Command Injection and RCE: Command injection occurs when an application passes input to a system shell. The catalog files Knife under it; 58 catalog machines practise it, 18 of them solved by me.
- Sudo Misconfiguration: The catalog files Knife under it; 23 catalog machines practise it, 8 of them solved by me.
Where it fits
- Knife is one of 169 easy Hack The Box machines in the catalog, 124 of them on Linux, and I solved 23 of the 169.
Related solved machines
Other machines I solved that share tags, a technique hub or a practice list with Knife.
- Shocker (HTB Linux Easy), both map to Command Injection and RCE
- Bashed (HTB Linux Easy), both map to Command Injection and RCE
- Pickle Rick (THM Linux Easy), both map to Command Injection and RCE
- Lame (HTB Linux Easy), both map to Command Injection and RCE
Related
- Technique: Command Injection and RCE (58 machines)
- Technique: Sudo Misconfiguration (23 machines)
- Guides: HTB vs TryHackMe, HTB progress tracker
- All machines: Hack The Box and TryHackMe directory
Track Knife in ZeroBox.
Log your Knife progress, notes and flags offline in your browser, and follow the pentest methodology checklist.
Knife belongs to Hack The Box; this page contains only my own notes.