Library Manager

The library command is used to manage a personal collection of useful links and resources, like cheat sheets, online tools, or documentation pages. It acts as a simple bookmark manager within pwnity.

Concepts

  • Library Entry: A single item in your library, identified by a unique name (e.g., gtfobins).
  • URL: The web address for the resource.
  • Fields: Each entry is a collection of key-value pairs. The url field is special, but you can add any other fields you find useful.

Common Workflow

  1. Add a new entry:
library add gtfobins
  1. Add a URL and other details:
library update gtfobins url https://gtfobins.github.io/
library update gtfobins comment "Curated list of Unix binaries for living off the land."
  1. List all entries:
library list
  1. View details of an entry:
library show gtfobins
  1. Open the URL in a browser:
library open gtfobins

Subcommands

  • add <name>: Creates a new, empty library entry.
  • list: Lists the names of all saved library entries.
  • show <name>: Displays all details for a specific entry.
  • update <name> <field> <value>: Adds or changes a field for an entry.
  • open <name>: Opens the entry's URL in your default web browser.
  • rename <old_name> <new_name>: Renames an entry.
  • delete <name> [field]: Deletes a specific field or the entire entry.
  • destroy <name>: Permanently deletes an entry and its file.
  • export <name>: Generates the library commands needed to recreate an entry.