Skip to content

PostExploitTool — Post-Exploitation

PostExploitTool executes post-exploitation operations based on the access type achieved during exploitation. It automates privilege escalation, lateral movement, persistence, credential harvesting, and container escape.

Actions

ActionPurpose
runExecute post-exploitation scripts based on access type
list-scriptsShow available scripts for a given access type
statusShow current post-exploitation status

Access Types

Access TypeDescriptionTypical Post-Exploitation
webapp-adminAdmin access to web applicationCredential harvesting, persistence, lateral movement
webapp-userUser-level access to web applicationPrivilege escalation, credential harvesting
shellCommand execution on hostFull post-exploitation — privesc, harvest, move, persist
databaseDatabase accessData exfiltration, credential harvesting from DB
containerContainer accessContainer escape, credential harvesting, lateral movement
cloud-metadataCloud metadata API accessIAM role enumeration, credential harvesting, cloud pivoting

Scripts by Access Type

shell access

ScriptPurpose
privesc_linuxLinux privilege escalation (SUID, capabilities, kernel exploits)
credential_harvesterDump credentials from memory, files, and processes
persistence_finderIdentify and exploit persistence mechanisms
lateral_movementPivot to other hosts on the network

webapp-admin access

ScriptPurpose
credential_harvesterExtract credentials from the web application
persistence_finderFind admin backdoor opportunities
lateral_movementPivot to connected systems

container access

ScriptPurpose
container_escapeBreak out of container to host
credential_harvesterHarvest credentials from container and host
lateral_movementPivot to other containers or hosts

5-Phase Post-Exploitation Workflow

  1. Stabilize — Establish reliable access, deploy persistence
  2. Escalate — Elevate privileges (user → root / admin)
  3. Move — Lateral movement to high-value targets
  4. Persist — Deploy durable persistence mechanisms
  5. Exfiltrate — Collect and extract sensitive data

Usage

Running post-exploitation scripts

PostExploitTool(
  action="run",
  accessType="shell",
  accessDetails='{"host":"10.0.0.5","user":"www-data","method":"webshell"}',
  target="http://target.com"
)

Running specific scripts

PostExploitTool(
  action="run",
  accessType="shell",
  accessDetails="...",
  target="http://target.com",
  scripts=["privesc_linux", "credential_harvester"]
)

Listing available scripts

PostExploitTool(
  action="list-scripts",
  accessType="shell"
)

Released under the MIT License.