Skip to content

Code Snippets

Four snippet libraries for penetration testing workflows, available in Markdown files.

Usage

Type the snippet prefix in a Markdown file, then press Tab or Enter to expand.

Libraries

Weapon Snippets

Common pentest templates:

PrefixDescription
find suidFind files with SUID permission
pty pythonPython PTY console
psqlPostgreSQL login/RCE
```yaml credentialsUser credentials YAML template
```yaml hostHost info YAML template
```shShell code block

GTFOBins Snippets

Linux binary privilege escalation techniques from GTFOBins. Covers file read, file write, SUID exploitation, shell acquisition, and more.

LOLBAS Snippets

Windows Living Off The Land Binaries and Scripts from LOLBAS.

BloodHound Snippets

Active Directory relationship query snippets for BloodHound analysis.

Key Files

  • src/snippets/source/weapon/weapon.json
  • src/snippets/source/gtfobins/gtfobins.json
  • src/snippets/source/lolbas/lolbas.json
  • src/snippets/source/blood/blood.json