Skip to content

Installation

Ryan Gerstenkorn edited this page May 4, 2021 · 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
    • If you do this 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 either need 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).
  3. Install Pacu from PyPi
    • pip install -U pacu
  4. You should be able to run the pacu command now.
    • If you are using ZSH you may need to run rehash first.

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.

More Info

For further instructions, refer to the Quick Start Guide