Skip to content
Snippets Groups Projects
Select Git revision
  • a11c79ef9b7f57e8e2c2ca538876af17f096a370
  • master default
  • include-tests
  • remove-yaml-quotes
  • configurable-ci-setup-lookup-path
  • dev-image-test-bak
  • dev-images
  • tmp/deploy-image-build
  • fast-ci
  • modular-templates
10 results

Dockerfile

Blame
  • Forked from tecnalia_robotics-public / templates
    Source project has a limited visibility.
    cscan.sh 834 B
    #!/bin/bash
    # SPDX-License-Identifier: Apache-2.0
    
    set -e
    
    cd /tmp
    
    apt install -y libpq-dev libjpeg-dev zlib1g-dev
    
    #rust (needed for cryptography)
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
    source $HOME/.cargo/env
    export CRYPTOGRAPHY_DONT_BUILD_RUST=1
    pip3 install setuptools_rust
    
    pip3 install faradaysec psutil python-owasp-zap-v2.4
    
    wget -nv https://github.com/infobyte/faraday/archive/464bb0c979ea6821085a4390446bd038a62ac500.zip
    unzip -q 464bb0c979ea6821085a4390446bd038a62ac500.zip
    mv faraday-464bb0c979ea6821085a4390446bd038a62ac500/scripts/cscan /service/cscan
    patch /service/cscan/plugin/zap.py /tmp/zap-plugin.patch
    patch /service/cscan/plugin/w3af.py /tmp/w3af-plugin.patch
    patch /service/cscan/cscan.py /tmp/cscan.patch
    echo "" > /service/cscan/ips.txt
    echo "" > /service/cscan/websites.txt