Select Git revision
Forked from
tecnalia_robotics-public / templates
Source project has a limited visibility.
-
Prada Sarasola, Miguel authored
Upgrade some vscode deprecated extensions See merge request tecnalia_robotics-public/gitlab_templates!30
Prada Sarasola, Miguel authoredUpgrade some vscode deprecated extensions See merge request tecnalia_robotics-public/gitlab_templates!30
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