Real-Fruit-Snacks GitHub

pwn-playbooks 2026.11.2388 playbooks · pwn-broker 0.1.7CC BY 4.0

pwn-playbooks

Playbooks for pwn-broker, read into a box's note and filled in

A playbook is one job, such as enumerating SMB or escalating through a Windows service, written as the checks and commands I work through on a box. Every value I have to supply is a placeholder such as <TargetIP>, and the playbook carries the few lines of vim that fill each one in, throughout that playbook and nowhere else in the note.

  1. Get themAt the prompt
    tool install playbooks

    In pwn-broker 0.1.7 or later, from pwn-shop's package, checked and pinned like any tool. finish takes them off again, and a box reopened later gets the release it was worked with.

  2. Read one in:Pb smb
  3. Type the valuesca>
  4. Delete the restdd
  5. Copy the blockV} "qy
  6. Run it@q

Playbook filled

##########@@@@@@@@@@
Playbook: SMB enumeration   02-enum/smb   2026.11.23
my
/^\%>'yEND OF smb PLAYBOOK$
mz
:'y,'zs/<TargetIP>/10.10.10.17/ge
:'y,'zs/<Domain>/corp.local/ge
:'y,'zs/<Username>/svc_sql/ge
:'y,'zs/<Password>/<Replace>/ge
:'y,'zs/<Hash>/<Replace>/ge
:'y,'zs/<Share>/<Replace>/ge
'y

Fill in:  10.10.10.17  corp.local  svc_sql  <Password>  <Hash>  <Share>

## Shares without a credential
Null session first, then guest with an empty password.
nxc smb 10.10.10.17 -u '' -p '' --shares
nxc smb 10.10.10.17 -u 'guest' -p '' --shares
- [ ] Refused both ways: try every credential I find later, here first

## Shares with a credential
nxc smb 10.10.10.17 -d corp.local -u 'svc_sql' -p '<Password>' --shares
nxc smb 10.10.10.17 -d corp.local -u 'svc_sql' -H <Hash> --shares
...

END OF smb PLAYBOOK
@@@@@@@@@@##########

The SMB playbook, read into a note with :Pb smb and filled in: three values typed over <Replace>, the lines for the rest deleted with dd, then V}, "qy and @q. The lines are the ones build.py renders for playbooks/02-enum/smb.md, with most of its body left out; <Password>, <Hash> and <Share> wait to be filled in by hand.

Without pwn-broker

Download playbooks-<version>.zip from the latest release, check it against SHA256SUMS.txt, unzip it, and read a playbook into any vim. Its run block works the same way.

:r playbooks/02-enum/smb.md

Reading one in, and filling it in

  • By name:Pb <name>

    Reads the playbook with that file name into the note, below the cursor. Tab completes the name from any part of it, so :Pb kerbero finds 07-ad/kerberoasting.

  • From the list:Pb

    On its own, lists every playbook by folder, to pick one by number.

  • Where it landsBelow the cursor

    Never inside the box header: on the header it reads below it, and on a closed fold below the fold. It arrives as one open fold, with the cursor on its first line to fill in. Closed, the fold shows its Playbook: line: the title, the path and the release it came from.

  • The run blockmy to 'y

    @q marks the block's first line y, finds this playbook's END OF line and marks it z, replaces each placeholder between the two, and goes back to y.

  • The Fill in lineKeeps count

    It is inside the range, so afterwards it shows the values used, and any placeholder still on it is one not yet filled. A placeholder left out stays as it is in the body, to fill in by hand once I know it.

  • Two targetsOwn copy only

    The same playbook read in twice fills only the copy whose block ran: the search for its end looks only below the block. A copy whose END OF line I deleted changes nothing, unless another copy follows it.

  • Through a register"q

    Pasting the block from the terminal would only insert it as text. A value is typed into a vim replacement, so a /, &, \ or ~ in it needs a backslash in front, which matters mostly for passwords.

  • Search stays usefulsearch

    pwn-broker's search skips a playbook's run block, and any line that still holds a placeholder, so unfilled template text never floods the results. A line I have filled in is searched like any other.

The playbooks

88 playbooks in 10 folders, release 2026.11.23. The folders go by phase, with OS folders where they help. :Pb finds a playbook by its file name wherever it sits, so each name is used once in the whole tree.

Checklists 01-checklists/ 3

  • ad AD checklist
  • standalone Standalone checklist
  • web Web checklist

Enumeration 02-enum/ 21

  • dns DNS enumeration
  • ftp FTP enumeration
  • ike IKE and IPsec enumeration
  • ldap LDAP enumeration
  • mail Mail services
  • message-queues Message queue enumeration
  • mongodb MongoDB enumeration
  • mssql MSSQL enumeration
  • mysql MySQL enumeration
  • nfs NFS enumeration
  • oracle Oracle enumeration
  • ports Port scanning
  • postgresql PostgreSQL enumeration
  • redis Redis enumeration
  • remote-access Remote access: WinRM, RDP and VNC
  • smb SMB enumeration
  • smtp SMTP enumeration
  • snmp SNMP enumeration
  • ssh SSH enumeration
  • tftp TFTP enumeration
  • vuln-scan Vulnerability scanning

Web 03-web/ 18

  • api APIs and JWTs
  • cmdi Command injection
  • deserialization Deserialization
  • discovery Web discovery
  • jenkins Jenkins
  • joomla-drupal Joomla and Drupal
  • lfi File inclusion
  • login-forms Login forms
  • sqli SQL injection
  • sqlmap sqlmap
  • ssrf SSRF
  • ssti SSTI
  • tomcat Tomcat
  • upload File upload
  • web-cves Web CVEs: Log4Shell, Shellshock and others
  • wordpress WordPress
  • xss XSS
  • xxe XXE

Foothold 04-foothold/ 5

  • file-transfer File transfer
  • metasploit Metasploit
  • msfvenom msfvenom payloads
  • public-exploits Public exploits
  • shells Reverse shells and upgrades

Passwords 05-passwords/ 4

  • brute-force Brute force
  • hash-cracking Hash cracking
  • spraying Password spraying
  • wordlists Wordlists

Linux privesc 06-privesc/linux/ 11

  • cron Cron and timers
  • docker-lxd Docker and lxd
  • linux-creds Credential hunting
  • linux-enum Enumeration
  • linux-kernel Kernel exploits
  • mysql-udf MySQL UDF
  • path-hijack PATH and library hijacking
  • restricted-shell Restricted shell escape
  • sudo Sudo
  • suid SUID and capabilities
  • writable-files Writable system files

Windows privesc 06-privesc/windows/ 10

  • always-install-elevated AlwaysInstallElevated
  • potatoes SeImpersonate and potatoes
  • privileged-groups Privileged groups and rights
  • runas Running as another user
  • scheduled-tasks Scheduled tasks and autoruns
  • services Services
  • uac-bypass UAC bypass
  • windows-creds Credential hunting
  • windows-enum Enumeration
  • windows-kernel Kernel exploits

Active Directory 07-ad/ 10

  • acl-abuse AD ACL abuse
  • adcs ADCS
  • asrep AS-REP roasting
  • delegation AD delegation
  • domain-enum AD enumeration
  • golden-silver Forging Kerberos tickets
  • gpo-abuse GPO abuse
  • kerberoasting Kerberoasting
  • lateral-movement AD lateral movement
  • responder Responder and NTLM relay

Pivoting 08-pivoting/ 5

  • chisel Pivoting with chisel
  • ligolo Pivoting with ligolo-ng
  • port-forwarding Port forwarding on Windows
  • socat socat relays
  • ssh-tunnels SSH tunnels

Buffer overflow 09-bof/ 1

  • bof Buffer overflow

Placeholders

Every value a playbook asks for is one of these, written <Name>, one name per meaning. A value is typed into a vim replacement, so none stands for a URL or a path: a URL is split, as <Scheme>://<WebHost>, and a value to edit by hand is written in capitals, such as THE-PAGE. The list is placeholders.toml.

<TargetIP>
the target's IP address
<Domain>
the Active Directory domain, such as corp.local
<DCIP>
a domain controller's IP address
<BaseDN>
the domain's base DN, such as DC=corp,DC=local
<Username>
a username
<Password>
that user's password
<Hash>
that user's NT hash
<LHOST>
my IP address on the VPN, tun0
<LPORT>
a port on my machine: a listener, or the near end of a forward
<Scheme>
http or https
<WebHost>
a web service's host name or IP, with :port when it is not 80 or 443
<Share>
an SMB share's name
<Service>
a Windows service's name
<File>
a file's name, with no folder
<Port>
a port on the target
<Hostname>
the target's host name, such as dc01
<DCHost>
a domain controller's full host name, such as dc01.corp.local
<Community>
an SNMP community string
<Database>
a database's name
<PivotIP>
the IP address of the machine I pivot through
<InternalIP>
a host's IP address on the network beyond the pivot
<Subnet>
a network beyond the pivot, as its address with no prefix, such as 172.16.5.0
<CIDR>
that network's prefix length, such as 24
<TargetUser>
an account I attack or take over, other than my own
<Group>
a group's name
<Computer>
a computer account's name, with its $
<DomainSID>
the domain's SID
<CA>
an ADCS certificate authority's name
<Template>
an ADCS certificate template's name
<Param>
a web parameter's name
<Offset>
the offset to the saved return address, in bytes
<JmpAddress>
the address of a JMP ESP, as eight hex digits with no 0x
<PivotInternalIP>
the pivot's own IP address on the network beyond it
<Table>
a database table's name
<UserField>
the name of a login form's username field
<PassField>
the name of a login form's password field
<EdbID>
an Exploit-DB exploit's number

How a release is made