Grandmaster rank emblem

Lvl 99

Level XP3,807/5,718

3807 of 5718
Grandmaster dreadnaught
Machine
ScriptKiddie
OS
Linux
Difficulty
Easy
Steps
3
Added
23 Mar 2023

An APK template injection gives a shell as kid; a writable log reaches pwn, and passwordless sudo msfconsole gives root.

0Reconnmap1FootholdAPK template2Lateralscanlosers.sh3Priv escsudo msfconsole
1Recon2Foothold3Lateral4Priv escnmap1APK template2scanlosers.sh3sudo msfconsole4

How it went

  1. 0
    nmap

    An nmap scan shows a custom web app on port 5000.

  2. 1
    APK template

    The msfvenom template feature is vulnerable to APK template command injection, giving a shell as kid and the user flag.

  3. 2
    scanlosers.sh

    pwn's scanlosers.sh processes a writable log file; injecting a command yields a shell as pwn.

  4. 3
    sudo msfconsole

    pwn has passwordless sudo on msfconsole, whose shell runs as root.