agentleFS
Wang200935Wang200935/security-agent-skills/skills/network-pentest/pentest-tool-setup/SKILL.md

pentest-tool-setup

Skill4 starsChanged 3 months agoMITView on GitHub

Guides the installation and troubleshooting of penetration testing tools,

  • Installs packages

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before attempting manual installation, check if the tool is available via your system's package manager (e.g., brew on macOS, apt on …

    line 27
  2. Distinctive:

    If the tool is not found via package manager, perform a web search for "how to install <tool-name>".

    line 31
  3. Very specific:

    If dependencies were installed to a local path (e.g., vendor/bundle), you often need to use bundle exec to ensure the tool runs with the …

    line 50
  4. Distinctive:

    When directing output to a file, ensure the target directory exists and the paths are correct relative to the current working directory.

    line 55
  5. Very specific:

    sudo requirements: Avoid sudo where possible by installing dependencies to user-specific paths (bundle install --path vendor/bundle, pip …

    line 60
  6. Very specific:

    After installation, run the tool with a simple command (e.g., --help or against a known-good target) to ensure it executes without errors.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pentest Tool Installation and Troubleshooting

This skill outlines a general workflow for installing and troubleshooting penetration testing tools, particularly focusing on Ruby-based tools and common dependency/permission issues.

Workflow

  1. Check for existing installation (package manager first):
    • Before attempting manual installation, check if the tool is available via your system's package manager (e.g., brew on macOS, apt on Ubuntu).
    • Example: brew install <tool-name>
  2. Web Search for Installation Instructions:
    • If the tool is not found via package manager, perform a web search for "how to install <tool-name>".
    • Prioritize official GitHub repositories or documentation.
  3. Clone the Repository (if applicable):
    • For tools distributed via source code, clone the GitHub repository: git clone <repo-url>
    • Navigate into the cloned directory: cd <tool-directory>
  4. Install Dependencies:
    • Identify the dependency management system (e.g., RubyGems with Bundler for Ruby, pip for Python, npm/yarn for Node.js).
    • Ruby/Bundler Specifics:
      • The bundle install command often fails due to sudo requirements or system Ruby versions.
      • Pitfall: bundle install without --path can attempt to write to system gem directories, requiring sudo. If sudo is not available or not desired (as in an automated agent context), this will fail.
      • Workaround: Install gems to a user-specific directory using bundle install --path vendor/bundle. This creates a vendor/bundle directory within the project, containing all dependencies.
      • Pitfall: Missing system libraries (e.g., libyaml for psych gem).
      • Workaround: Install the missing system library using brew (macOS) or apt (Ubuntu): brew install libyaml. After installing the library, retry bundle install --path vendor/bundle.
  5. Execute the Tool:
    • If dependencies were installed to a local path (e.g., vendor/bundle), you often need to use bundle exec to ensure the tool runs with the correct local dependencies.
    • Example: bundle exec ./<tool-executable> <arguments>
    • Pitfall: Running the tool without bundle exec might lead to "command not found" or missing dependency errors if system-wide gems are not configured correctly or are outdated.
  6. Manage Output:
    • When directing output to a file, ensure the target directory exists and the paths are correct relative to the current working directory.
    • Example: bundle exec ./whatweb -q <target> > ../output_directory/result.txt (if running from tool directory and output directory is one level up).

Pitfalls

  • sudo requirements: Avoid sudo where possible by installing dependencies to user-specific paths (bundle install --path vendor/bundle, pip install --user).
  • Missing system libraries: Error messages often indicate missing .h files or libraries. Use brew or apt to install these.
  • Incorrect execution context: For Ruby tools with local vendor/bundle installations, always use bundle exec to ensure the correct environment.
  • Relative paths: Be mindful of your current working directory when specifying input/output file paths.

Verification

  • After installation, run the tool with a simple command (e.g., --help or against a known-good target) to ensure it executes without errors.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.