Breakout

Gained access to a lockdown host and need to find way to escape the restrict shell?

Methodology

Gaining shell access

  1. Check what software's you can access

    1. Try common such as cmd, powershell, powershell_ise, ftp and etc

    2. Try to use alternatives to powershell and cmd such as PowerShdll and

    3. Try explorer bar commands

  2. Try to create a new file (Use the malicious HTA file) or a new shortcut and point it to a executable

  3. Windows 10 - try Cortana exploit

  4. Try and to copy powershell.exe or cmd.exe and change it to a different name and then run it

  5. Try and access \\127.0.0.1\c$

Once a shell was obtained

  1. Bypassing powershell restrictions

    1. If it's powershell try and download reverse shell and run it, if it's version 4 check if you can downgrade to powershell v2

    2. Try to use Powershell alternatives (nps, powershelld and etc)

  2. Test if you can execute commands via LOLBAS

  3. Attempt UAC Bypass to gain administrative privileges

Last updated