Summary: Create and manage custom shortcuts for longer pwnity commands.

Using Aliases

Aliases are custom shortcuts for longer pwnity commands. They are useful for frequently used command sequences.

Creating an Alias

You can create an alias using the alias create command. The value of the alias must be enclosed in single or double quotes.

Example:

alias create nmap-full 'pwn full-scan now'
alias create show-target 'target show $target.name'

Now, you can simply type nmap-full to execute the full nmap scan.

Managing Aliases

  • alias list: Shows all currently defined aliases.
  • alias delete <name>: Deletes a specific alias.

Automatic Saving

Aliases are automatically saved to the file specified in etc/config.json (by default, etc/aliases.txt) whenever you create, update, or delete one. They are loaded automatically when pwnity starts.