Shell & Stabilization

Reverse Shell

Linux

Windows

nc64.exe

Shell Stabilization (Linux)

When?

Note:

[ctrl + c] only work if machine has bash as the default shell

use "clear" instead.

Keyboart Shortcut: [Ctrl + Z] (Backgroud Process.)

Persistence Reverse Shell

Important to run persistence shell before execute anything.

Linux

Windows

need to upload nc.exe

Web Shell

PHP

cmd --> shell.php

$URL/shell.php?cmd=id

note: the simple way is using burp suite repeater to do a command.

change GET request to POST request to get a better input experience.

IIS

ASPX run Shellcode

Dig deeper

https://github.com/tennc/webshell

Windows NT Authority shell from Administrator

Shell to another user in Active Directory

note: powershell

Convert credentials

Command

after login, run powerview.

Shell with silver ticket

If the domain user has constrained delegation privileges you can use the -impersonate flag to request a ticket on behalf of another user

for example:

Request ticket

result from request ticket

Save ticket to env

Login with ticket

Login using Impacket (need local admin creds)

need creds login, try the next command below if you failed on the one command.

Last updated