Skip to content

Installation

Dave Yesland edited this page Jan 4, 2024 · 16 revisions

Prerequisites

Tools for running Pacu

Pacu is a relatively simple program that requires Python 3 and pip to handle any module dependencies.

Installation

PyPi Installation (Recommended)

  1. Make sure pip is up to date.
    • pip install -U pip
  2. [Optional] Create a Python virtual environment to install Pacu in.
    • mkdir pacu && cd pacu
    • python3 -m venv venv && source venv/bin/activate
  3. Install Pacu from PyPi
    • pip install -U pacu

Notes:

  • When running ZSH you may need to run rehash before the pacu command is made available.
  • If you create a virtual environment for pacu you'll need to run source venv/bin/activate in the Pacu directory whenever you want to use it. Alternatively if you want to make Pacu available all the time you can simply skip this step, however you'll eitherneed to run the following pip command as root or ensure the pip user bin directory is included in your path (pip will have more instructions in the output if you install it this way and it isn't set up)

Installation from Git.

  1. Enter directory where you want to install Pacu.
  2. Run git clone https://github.com/RhinoSecurityLabs/pacu.git
  3. Install pip dependencies.
    • cd pacu && pip install -r requirements.txt
  4. You should be able to run ./cli.py to start pacu.

Installation without Git

  1. Download the source as a zip file from https://github.com/RhinoSecurityLabs/pacu, and extract to ./pacu.
    • curl "$(curl https://api.github.com/repos/RhinoSecurityLabs/pacu/releases/latest|grep zipball_url|awk '{print $2}'|tr -d '",') > pacu.zip
    • mv RhinoSecurityLabs-pacu-7676225 pacu && cd pacu
  2. Install pip dependencies.
    • cd pacu && pip install -r requirements.txt
  3. You should be able to run ./cli.py to start pacu.