Skip to content
Security
Command

/pwned

Post-exploitation workflow after getting shell access — privesc, credential harvest, lateral movement

From plugin
threatswarm
976 skills27 agents6 commands
> /plugin marketplace add mukul975/Threatswarm
> /plugin install threatswarm@threatswarm

Command definition

pwned.md
description: Post-exploitation workflow after getting shell access — privesc, credential harvest, lateral movement
allowed-tools: Bash, Read, Write

Run full post-exploitation workflow on: $ARGUMENTS

Parse $ARGUMENTS: first word is TARGET, second word (optional) is SESSION_ID or access level (user/www-data/root/SYSTEM).

1. **Scope Check**: Verify TARGET is in scope.txt. Stop if not found.

2. **Document Current Access**:

   ═══════════════════════════════════════════
   POST-EXPLOITATION START
   Target:       TARGET
   Session ID:   SESSION_ID (if provided)
   Timestamp:    $(date -u +%Y-%m-%dT%H:%M:%SZ)
   ═══════════════════════════════════════════

3. **Invoke `post-ex` Agent** for automated privilege escalation:

  • Detect OS type (Linux vs Windows)
  • Run LinPEAS/WinPEAS automated enumeration
  • Check SUID binaries, cron, sudo, capabilities (Linux)
  • Check SeImpersonatePrivilege, unquoted paths, AlwaysInstallElevated (Windows)
  • Document escalation path with ATT&CK TTPs
  • Target evidence dir: `evidence/$(date +%Y%m%d)/TARGET/post_ex/`

4. **Credential Harvesting**: After any privilege escalation:

  • Linux: read /etc/shadow if root, find config files with credentials
  • Windows: invoke `impacket-secretsdump` locally, or mimikatz via Meterpreter
  • Pass any discovered hashes to `password-attacks` agent for cracking
  • Store: location reference only (NOT plaintext passwords)

5. **Domain Check**: If target appears domain-joined:

  • Check for domain membership: `realm list` (Linux) or `systeminfo | findstr /i domain` (Windows)
  • If domain-joined: invoke `active-directory` agent for full domain compromise path
  • Run BloodHound collection from compromised host

6. **Lateral Movement Mapping**:

   # SMB sweep for reachable hosts (from compromised machine)
   crackmapexec smb $INTERNAL_SUBNET/24 \
     -u $COMPROMISED_USER -H $NTLM_HASH \
     --continue-on-success 2>&1 | \
     tee evidence/$(date +%Y%m%d)/$TARGET/lateral/smb_sweep.txt

7. **Update Findings**: Append to `evidence/$(date +%Y%m%d)/TARGET/findings.md`:

   ## Post-Exploitation — $(date -u +%Y-%m-%dT%H:%M:%SZ)

   | Step | Method | ATT&CK | Result |
   |------|--------|--------|--------|
   | Privesc | [technique] | [TTP] | [user → root/SYSTEM] |
   | Lateral | [technique] | T1021 | [hosts reached] |

8. **Print Summary**:

   ═══ POST-EX RESULTS ════════════════
   Privilege Level: [user → root/SYSTEM]
   Hosts Reached:   X
   Credentials:     X hashes (see evidence/)
   Domain Admin:    [YES/NO]
   ════════════════════════════════════
Read more
@mukul975
Ships withthreatswarm

27 scope-enforced AI agents that run the full pentest kill-chain (recon → exploit → post-ex → DFIR → report) as a one-command Claude Code plugin. Backed by 754 MITRE-mapped skills.

975 skills27 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
97
Star history of mukul975/Threatswarm on GitHub, a chart by star-history.com

Other commands on threatswarm.

attack

attack

Command

Route an attack vector to the appropriate specialist agent — usage: /project:attack <target> <vector>

@mukul975@mukul975Install Command
engage

engage

Command

Start a new engagement for a target — verifies scope, creates evidence directories, and launches recon agent

@mukul975@mukul975Install Command
ir

ir

Command

Incident response workflow — triage, evidence collection, timeline, and IOC extraction

@mukul975@mukul975Install Command

More commands from other plugins.

deslop-reborn

deslop-reborn

Command

One iteration of the IronClaw Reborn de-slop loop — take ONE Reborn crate, fan out parallel review sub-agents (thermo-nuclear…

ironclaw12d13k
@nearai@nearaiInstall Command
audit

audit

Command

Audit a file, directory, or whole repo for insecure default configuration: fallback secrets, default credentials, fail-open…

@trailofbits@trailofbitsInstall Command
arsenal

arsenal

Command

Show which external bug-bounty tools are installed on this machine and print install hints for the missing ones. Curated from…

@awarexone@awarexoneInstall Command