Skip to content

Installation

h00dy edited this page Nov 12, 2023 · 9 revisions

Setup via docker

  1. Pull and run the docker image

    sudo docker pull hoodietramp/capncook:latest
    sudo docker run -p 5000:5000 hoodietramp/capncook:latest

Setup on localhost

  1. Install the necessities:

    sudo apt update && sudo apt upgrade -y ; sudo apt install python3 python3-pip tor chromium jq whois proxychains4 unzip
  2. Clone the repo:

    git clone https://github.com/hoodietramp/capNcook; cd capNcook
  3. Install the required dependencies using:

    pip3 install -r requirements.txt
  4. Install AquaTone:

    wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
    unzip aquatone_linux_amd64_1.7.0.zip
    sudo mv aquatone /usr/bin/
    sudo chmod +x /usr/bin/aquatone
    rm LICENSE.txt README.md aquatone_linux_amd64_1.7.0.zip

    OR

    sudo cp ./aquatone /usr/bin/
  5. Install FeroxBuster:

    wget https://github.com/epi052/feroxbuster/releases/download/v2.10.0/x86_64-linux-feroxbuster.zip
    unzip x86_64-linux-feroxbuster.zip
    sudo mv feroxbuster /usr/bin/
    sudo chmod +x /usr/bin/feroxbuster
    rm x86_64-linux-feroxbuster.zip
  6. Start Tor service:

    sudo cp ./torrc /etc/tor/torrc
    sudo systemctl start tor
    sudo chmod 644 /run/tor/control.authcookie
  7. Run the application:

    flask run

    OR

    python3 app.py
  8. Access the tool in your web browser at http://localhost:5000/.


Setup on Tor

  1. Install the necessities:

    sudo apt update && sudo apt upgrade -y ; sudo apt install python3 python3-pip tor chromium jq whois proxychains4 unzip
  2. Clone the repo:

    git clone https://github.com/hoodietramp/capNcook; cd capNcook
  3. Install the required dependencies using:

    pip3 install -r requirements.txt
  4. Install AquaTone:

    wget https://github.com/michenriksen/aquatone/releases/download/v1.7.0/aquatone_linux_amd64_1.7.0.zip
    unzip aquatone_linux_amd64_1.7.0.zip
    sudo mv aquatone /usr/bin/
    sudo chmod +x /usr/bin/aquatone
    rm LICENSE.txt README.md aquatone_linux_amd64_1.7.0.zip

    OR

    sudo cp ./aquatone /usr/bin/
  5. Install FeroxBuster:

    wget https://github.com/epi052/feroxbuster/releases/download/v2.10.0/x86_64-linux-feroxbuster.zip
    unzip x86_64-linux-feroxbuster.zip
    sudo mv feroxbuster /usr/bin/
    sudo chmod +x /usr/bin/feroxbuster
    rm x86_64-linux-feroxbuster.zip
  6. Uncomment these lines in the torrc file provided with this repo:

    HiddenServiceDir /var/lib/tor/capNcook/ 
    HiddenServicePort 80 127.0.0.1:5000 
    HiddenServiceVersion 3 
    HiddenServiceMaxStreams 100 
    CircuitBuildTimeout 10 
    KeepalivePeriod 60 seconds
  7. Copy this torrc in /etc/tor/ folder and start tor service:

    sudo cp ./torrc /etc/tor/torrc
    sudo systemctl start tor
    sudo chmod 644 /run/tor/control.authcookie
  8. Run the application:

    flask run

    OR

    python3 app.py
  9. Access the hidden service in tor browser (h00dy*****************************.onion) in your case it'd be random.

P.S if you want to generate a vanity onion address, kindly refer to this repo - github.com/cathugger/mkp224o

Clone this wiki locally