Skip to content

Instantly share code, notes, and snippets.

View secfigo's full-sized avatar

Mohammed A Imran secfigo

View GitHub Profile
@secfigo
secfigo / install_imagemagic_with_heic.sh
Created June 22, 2023 12:15 — forked from hurricup/install_imagemagic_with_heic.sh
How to install ImageMagick 7.1.0-54 with HEIC and WEBP support on Ubuntu 20.04
# 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 \
@secfigo
secfigo / z-automator.png
Created July 24, 2021 00:44 — forked from lrytz/z-automator.png
Shortcut for Syntax Highlighting in Keynote
@secfigo
secfigo / gist:2c2ec882c5b8d6054ed2bd3bf940edb1
Created July 24, 2021 00:42 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

#!/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"

Keybase proof

I hereby claim:

  • I am secfigo on github.
  • I am secfigo (https://keybase.io/secfigo) on keybase.
  • I have a public key whose fingerprint is 33AE 36C7 7126 886E 7315 83F7 FF03 89C3 6CB6 BA5C

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 \
@secfigo
secfigo / setup-vault.sh
Last active July 26, 2018 03:48
setup vault on DevSecOps Box
#!/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