The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
# inspired by https://gist.github.com/rjnienaber/af47fccb8410926ba7ea35f96c3b87fd | |
# remove bundled ImageMagick | |
sudo apt remove imagemagick -y | |
# install base dependencies | |
sudo apt-get install -y \ | |
build-essential \ | |
git \ | |
libde265-dev \ |
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
#!/bin/bash | |
# use this in vagrant config.vm.provision "shell", path: "https://gist.githubusercontent.com/secfigo/4e36b8e3e782da6a6cba67e8320c327b/raw/f1e9f6c718b764b33d8fbe9719f3f9b88231bb77/install-docker-ubuntu.sh" | |
### This file should be run in SUDO mode | |
### The script file needs to be executable, i.e. | |
# chmod +x script.sh | |
# Update package index | |
apt-get update |
FROM openjdk:8-jre-alpine | |
RUN apk --update add openssl ca-certificates ttf-dejavu && echo "Success" | |
RUN apk add git && echo "Success" | |
RUN apk add --no-cache python3 && \ | |
python3 -m ensurepip && \ | |
rm -r /usr/lib/python*/ensurepip && \ | |
pip3 install --upgrade pip setuptools && \ | |
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \ | |
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ | |
rm -r /root/.cache && echo "Success" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
import time | |
from pprint import pprint | |
from zapv2 import ZAPv2 as ZAP | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.firefox.options import Options | |
from selenium.webdriver.common.proxy import Proxy, ProxyType |
#!/bin/bash | |
#running the zap in the background | |
bash -c "zap.sh -daemon -host 0.0.0.0 -port 8080 -config api.disablekey=true -config api.addrs.addr.name=.* -config api.addrs.addr.regex=true 2>&1 &" && sleep 5 | |
#running the zapscan in the backgroun | |
echo "************** Running ZAP python script********************" | |
python3 -u /zapcode/zap-scan.py |
FROM owasp/zap2docker-weekly | |
USER root | |
ARG FIREFOX_VERSION=latest | |
RUN FIREFOX_DOWNLOAD_URL=$(if [ $FIREFOX_VERSION = "latest" ] || [ $FIREFOX_VERSION = "nightly-latest" ] || [ $FIREFOX_VERSION = "devedition-latest" ]; then echo "https://download.mozilla.org/?product=firefox-$FIREFOX_VERSION-ssl&os=linux64&lang=en-US"; else echo "https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2"; fi) \ | |
&& apt-get update -qqy \ | |
&& apt-get -qqy --no-install-recommends install firefox \ | |
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* \ | |
&& wget --no-verbose -O /tmp/firefox.tar.bz2 $FIREFOX_DOWNLOAD_URL \ | |
&& apt-get -y purge firefox \ | |
&& rm -rf /opt/firefox \ |
#!/bin/bash | |
sudo rm -rf django.nv/ && rm -rf django.nV | |
git clone https://github.com/secfigo/django.nv.git && cd django.nv | |
git checkout vault-5-secrets-in-vault | |
# Change the IP address of LOCAL_IP Variable | |
sed -i -e 's/LOCAL_IP=10.0.1.22/LOCAL_IP=10.0.1.10/g' .env | |
# stop if the containers are already running. | |
docker-compose -f docker-compose-vault.yml down |