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.
- Get themAt the prompt
tool install playbooksIn pwn-broker 0.1.7 or later, from pwn-shop's package, checked and pinned like any tool.
finishtakes them off again, and a box reopened later gets the release it was worked with. - Read one in
:Pb smb - Type the values
ca> - Delete the rest
dd - Copy the block
V} "qy - 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.mdReading 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 kerberofinds07-ad/kerberoasting. - From the list
:PbOn 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 block
myto'y@qmarks the block's first liney, finds this playbook'sEND OFline and marks itz, replaces each placeholder between the two, and goes back toy.
- 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 OFline I deleted changes nothing, unless another copy follows it. - Through a register
"qPasting 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 useful
searchpwn-broker's
searchskips 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
adAD checkliststandaloneStandalone checklistwebWeb checklist
Enumeration 02-enum/ 21
dnsDNS enumerationftpFTP enumerationikeIKE and IPsec enumerationldapLDAP enumerationmailMail servicesmessage-queuesMessage queue enumerationmongodbMongoDB enumerationmssqlMSSQL enumerationmysqlMySQL enumerationnfsNFS enumerationoracleOracle enumerationportsPort scanningpostgresqlPostgreSQL enumerationredisRedis enumerationremote-accessRemote access: WinRM, RDP and VNCsmbSMB enumerationsmtpSMTP enumerationsnmpSNMP enumerationsshSSH enumerationtftpTFTP enumerationvuln-scanVulnerability scanning
Web 03-web/ 18
apiAPIs and JWTscmdiCommand injectiondeserializationDeserializationdiscoveryWeb discoveryjenkinsJenkinsjoomla-drupalJoomla and DrupallfiFile inclusionlogin-formsLogin formssqliSQL injectionsqlmapsqlmapssrfSSRFsstiSSTItomcatTomcatuploadFile uploadweb-cvesWeb CVEs: Log4Shell, Shellshock and otherswordpressWordPressxssXSSxxeXXE
Foothold 04-foothold/ 5
file-transferFile transfermetasploitMetasploitmsfvenommsfvenom payloadspublic-exploitsPublic exploitsshellsReverse shells and upgrades
Passwords 05-passwords/ 4
brute-forceBrute forcehash-crackingHash crackingsprayingPassword sprayingwordlistsWordlists
Linux privesc 06-privesc/linux/ 11
cronCron and timersdocker-lxdDocker and lxdlinux-credsCredential huntinglinux-enumEnumerationlinux-kernelKernel exploitsmysql-udfMySQL UDFpath-hijackPATH and library hijackingrestricted-shellRestricted shell escapesudoSudosuidSUID and capabilitieswritable-filesWritable system files
Windows privesc 06-privesc/windows/ 10
always-install-elevatedAlwaysInstallElevatedpotatoesSeImpersonate and potatoesprivileged-groupsPrivileged groups and rightsrunasRunning as another userscheduled-tasksScheduled tasks and autorunsservicesServicesuac-bypassUAC bypasswindows-credsCredential huntingwindows-enumEnumerationwindows-kernelKernel exploits
Active Directory 07-ad/ 10
acl-abuseAD ACL abuseadcsADCSasrepAS-REP roastingdelegationAD delegationdomain-enumAD enumerationgolden-silverForging Kerberos ticketsgpo-abuseGPO abusekerberoastingKerberoastinglateral-movementAD lateral movementresponderResponder and NTLM relay
Pivoting 08-pivoting/ 5
chiselPivoting with chiselligoloPivoting with ligolo-ngport-forwardingPort forwarding on Windowssocatsocat relaysssh-tunnelsSSH tunnels
Buffer overflow 09-bof/ 1
bofBuffer 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
- Each playbook is a markdown file in
playbooks/: a# titleline, then the body, with every value as a placeholder from the list. python build.py checkrefuses anything that would break the note: a file name used twice, a name that is not lowercase letters, digits and hyphens, a fold marker, a line the run block would stop at, a placeholder whose case is wrong, the reserved word<Replace>, and Obsidian's callouts, links and front matter. It names the file and line.python build.py build --version <version>wraps each playbook in its fold and run block and zips the tree. The same tree always gives the same bytes.- CI runs the check and the tests on every change. They include a real vim filling in every playbook, with a realistic value for every placeholder.
- A tag
v<YYYY.MM.DD>publishes the release, with.1,.2for a second one on the same day. pwn-shop then packages it, and installs it in the official Kali image with the network off before publishing it. - A published release is never changed: a fix is a new release. CONTRIBUTING.md has how to write a playbook and how a release is cut.