Skip to content

Instantly share code, notes, and snippets.

View seanthegeek's full-sized avatar

Sean Whalen seanthegeek

View GitHub Profile
@seanthegeek
seanthegeek / installpwshdeps.sh
Last active October 25, 2019 03:43
Installs missing dependencies from Debian 9 (stretch) for Powershell on Debian 10 (buster) and higher (including Kali Linux)
#!/bin/bash
# Installs missing dependencies from Debian 9 (stretch) for Powershell on Debian 10 (buster) and higher (including Kali Linux)
mkdir /tmp/pwshtmp
cd /tmp/pwshtmp
wget http://http.us.debian.org/debian/pool/main/i/icu/libicu57_57.1-6+deb9u3_amd64.deb
wget http://http.us.debian.org/debian/pool/main/i/icu/icu-devtools_57.1-6+deb9u3_amd64.deb
wget http://http.us.debian.org/debian/pool/main/u/ust/liblttng-ust0_2.9.0-2+deb9u1_amd64.deb
wget http://http.us.debian.org/debian/pool/main/libu/liburcu/liburcu4_0.9.3-1_amd64.deb
@seanthegeek
seanthegeek / fixgeoip.py
Created February 18, 2019 15:15
Fix missing GeoIP data
from elasticsearch_dsl import connections, Search, Q
from parsedmarc.elastic import _AggregateReportDoc, _ForensicReportDoc
from parsedmarc.utils import get_ip_address_country
# Replace with your Elasticsearch URLs
connections.create_connection(hosts=["127.0.0.1:9200"])
search = Search(index="dmarc_aggregate*")
@seanthegeek
seanthegeek / startroute.py
Created November 6, 2018 16:38
Sceipts to manually controll Cuckoo routing
#!/home/cuckoo/venv/bin/python
from cuckoo.misc import set_cwd
from cuckoo.core.rooter import rooter
vm_interface = "virbr0"
vpn_interface = "tun0"
vm_ip = "192.168.100.7"
rt_id = "tun0"
cwd = "/home/cuckoo/.cuckoo"
@seanthegeek
seanthegeek / cuckooboot.sh
Created October 27, 2018 00:27
Old cuckooboot.sh
#!/bin/bash
CUCKOO_USER="cuckoo"
CUCKOO_PATH="/opt/cuckoo"
VIRBR_IP="192.168.100.1"
INETSIM_DNS_PORT="5342"
VIRBR_DEV="virbr0"
su $CUCKOO_USER -c "pkill gunicorn" >/dev/null 2>&1
su $CUCKOO_USER -c "pkill python" > /dev/null 2>&1
@seanthegeek
seanthegeek / install-malhur.md
Last active October 26, 2018 08:58
Random install instructions
sudo apt-get install -y uthash-dev libconfig-dev libarchive-dev libtool autoconf automake checkinstall
git clone https://github.com/rieck/malheur.git
cd malheur
./bootstrap
./configure --prefix=/usr
make

Note: The version number checkinstall parses from Malhur doesn’t conform to Debian standard, so you'll have to specify the correct version number when prompted by checkinstall. Technically, sudo make install will work fine. checkinstall just makes it easier to upgrade and/or remove it just like any other Debian package.

@seanthegeek
seanthegeek / pip-update-all.sh
Created June 30, 2018 13:27
A script update all pip packages
sudo apt-get install -y curl python3 pkg-config libcurl4-nss-dev glib2.0-dev libcairo2-dev gobject-introspection libgirepository1.0-dev libasound2-dev
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
sudo -H pip install pip-review
sudo -H pip install -U --ignore-installed pycurl
sudo -H pip-review --auto

Keybase proof

I hereby claim:

  • I am seanthegeek on github.
  • I am seanthegeek (https://keybase.io/seanthegeek) on keybase.
  • I have a public key ASCPep8QtVmXfz3zUpCZLg2o26tfkWn_iEtTNTzidQmLlAo

To claim this, I am signing this object: