Summary: Generate pwnity commands to back up, share, or version-control your configurations.

Exporting Objects

The export command (aliased as reverse) is a powerful feature for backing up, sharing, or version-controlling your configurations. It generates a series of pwnity commands that can be used to perfectly reconstruct an object.

Use Cases

  • Backup: Save the output to a script file for easy restoration.
  • Sharing: Send the output to a teammate so they can quickly replicate your setup.
  • Version Control: Commit the exported scripts to a Git repository to track changes to your tools and targets over time.

How it Works

The export command is context-aware and intelligent. For a target, it will prioritize using the url and gather commands to reconstruct derived data, rather than setting each field manually.

Available on:

  • target (exports technical data like IP, domain, etc.)
  • tool
  • wordlist
  • preset
  • report
  • session

Example:

target export my-server
# The commands to recreate the target will be printed to the console.
# You can copy this output and save it to a file (e.g., 'my-backup.pwn').

You can then run this script in a new pwnity instance to recreate the my-server target.

run_script my-backup.pwn