Invoker : Penetration Testing Utility

Invoker is a penetration testing utility. The goal is to use this tool when access to some Windows OS features through GUI is restricted.

Some features require administrative privileges.

Capabilities

  • invoke the Command Prompt and PowerShell,
  • download a file,
  • add a registry key,
  • schedule a task,
  • connect to a remote host,
  • terminate a running process,
  • run a new process,
  • inject bytecode into a running process,
  • inject DLL into a running process,
  • enable access token privileges,
  • duplicate access token of a running process,
  • list unquoted service paths and restart a running service,
  • replace Sticky Keys.

Built with Dev-C++ IDE v5.11 (64 bit), compiled with TDM-GCC v4.9.2 (64 bit) and tested on Windows 10 Enterprise OS (64 bit). Download Dev-C++ from here.

Made for educational purposes. I hope it will help!

Invoker Library

Check all the capabilities here. Feel free to use the library.

PowerShell Scripts

Check all the PowerShell scripts used in the main C++ program here.

How to Run?

Run ‘\exec\Invoker.exe’.

Bytecode Injection

Elevate privileges by injecting bytecode into a higher-privileged process.

This tool can parse an HTTP response and extract the payload from a custom element, i.e. from <img class="bc" src="data:image/gif;base64,payload" alt="bc" hidden="hidden"> where payload is a binary code/file encoded in Base64.

This might be useful if antivirus is constantly deleting your local payloads.

You can also specify your own custom element but you will have to modify the program source code and recompile it.

Check an example at pastebin.com/raw/Nd1tCBv6.

Bytecode provided will most certainly not work for you.

Generate a Reverse Shell Payload

Find out how to generate a reverse shell payload from my other project.

Get the LocalSystem Account (NT AUTHORITY\SYSTEM)

  • Run the Invoker.exe as administrator.
  • Enable all access token privileges.
  • Duplicate the access token from e.g. Windows Logon Application (winlogon.exe) and run a new instance of Invoker.exe.
  • Within the new Invoker.exe instance, open the Command Prompt and run whoami, you should now see nt authority\system.
  • Enable all access token privileges once again.
  • Close the old instance of Invoker.exe.
  • P.S. You get more access token privileges from Local Security Authority Subsystem Service (lsass.exe).

Images

R K

Recent Posts

Shadow-rs : Harnessing Rust’s Power For Kernel-Level Security Research

shadow-rs is a Windows kernel rootkit written in Rust, demonstrating advanced techniques for kernel manipulation…

1 week ago

ExecutePeFromPngViaLNK – Advanced Execution Of Embedded PE Files via PNG And LNK

Extract and execute a PE embedded within a PNG file using an LNK file. The…

2 weeks ago

Red Team Certification – A Comprehensive Guide To Advancing In Cybersecurity Operations

Embark on the journey of becoming a certified Red Team professional with our definitive guide.…

3 weeks ago

CVE-2024-5836 / CVE-2024-6778 : Chromium Sandbox Escape via Extension Exploits

This repository contains proof of concept exploits for CVE-2024-5836 and CVE-2024-6778, which are vulnerabilities within…

3 weeks ago

Rust BOFs – Unlocking New Potentials In Cobalt Strike

This took me like 4 days (+2 days for an update), but I got it…

3 weeks ago

MaLDAPtive – Pioneering LDAP SearchFilter Parsing And Security Framework

MaLDAPtive is a framework for LDAP SearchFilter parsing, obfuscation, deobfuscation and detection. Its foundation is…

3 weeks ago