> For the complete documentation index, see [llms.txt](https://infra.newerasec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infra.newerasec.com/infrastructure-testing/breakout.md).

# Breakout

## Methodology

### Gaining shell access

1. Check what software's you can access&#x20;
   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&#x20;
   3. Try explorer bar commands&#x20;
   4. [Check if you can access internet explorer, paint, excel, file explorer and etc ](/infrastructure-testing/breakout/windows-utilities.md)
2. [Check keyboard shortcuts ](/infrastructure-testing/breakout/windows-utilities.md#shortcuts)
3. Try to create a new file (Use the malicious[ HTA file](/infrastructure-testing/breakout/alternatives-to-command-prompt.md#hta-shell)) or a new shortcut and point it to a executable&#x20;
4. [Load files via a SMB share and execute them](/infrastructure-testing/enumeration/ipv6/transfering-files.md)
5. Windows 10 - try[ Cortana exploit ](/infrastructure-testing/breakout/windows-utilities.md#cortana)
6. Try and to copy powershell.exe or cmd.exe and change it to a different name and then run it&#x20;
7. Try and access \\\127.0.0.1\c$

### Once a shell was obtained

1. [Bypassing powershell restrictions](/infrastructure-testing/breakout/powershell-constrained-language-byass.md)
   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&#x20;
   2. Try to use Powershell alternatives (nps, powershelld and etc)&#x20;
2. Test if you can execute commands via[ LOLBAS](/infrastructure-testing/breakout/lolbas.md)&#x20;
3. Attempt [UAC Bypass](/infrastructure-testing/privilege-esclation/windows/uac-bypass.md) to gain administrative privileges&#x20;
