Skip to content

Instantly share code, notes, and snippets.

View kingtuna's full-sized avatar

Terrence Gareau kingtuna

  • Mirage Messaging
  • Miami, FL
View GitHub Profile
@kingtuna
kingtuna / run.py
Created August 1, 2017 18:05 — forked from pathcl/run.py
Bottle && selenium
from bottle import run, request, Bottle
from selenium import webdriver
from jinja2 import Environment, FileSystemLoader
import re
import os
app = Bottle()
path = os.getcwd()
urls = path + '/urls.txt'
git clone https://github.com/fireice-uk/xmr-stak-nvidia
sudo pacman -S opencl-headers
sudo pacman -S cuda
sudo pacman -S libmicrohttpd
cmake . -DCMAKE_CXX_COMPILER=/usr/bin/g++-5 -DCMAKE_C_COMPILER=/usr/bin/gcc-5 -DCUDA_HOST_COMPILER:FILEPATH=/usr/bin/gcc-5
cd
mkdir work
cd work
git clone https://github.com/zmap/zmap.git
apt-get install build-essential cmake libgmp3-dev gengetopt libpcap-dev flex byacc libjson-c-dev pkg-config libunistring-dev
cd zmap
cmake .
make -j4
make install
cd
@kingtuna
kingtuna / gist:6d5165537307e309c1018efeb64b1423
Created September 22, 2016 07:00
iptables rules for forwarding all ports except 22 tcp and udp to an ip
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 1:21 -j DNAT --to-destination 192.168.250.133:8080
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 23:65535 -j DNAT --to-destination 192.168.250.133:8080
iptables -A PREROUTING -t nat -i eth0 -p udp --dport 1:65535 -j DNAT --to-destination 192.168.250.133:1024
@kingtuna
kingtuna / openresty-ubuntu-install.sh
Last active July 24, 2020 01:07 — forked from alex-roman/openresty-ubuntu-install.sh
Easy install openresty (used and tested on Ubuntu 14.04, 15.10 and 16.04)
#!/bin/bash
apt-get -y update
apt-get -y install nginx-extras build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev
wget -c https://openresty.org/download/openresty-1.11.2.1.tar.gz
tar zxvf openresty-1.11.2.1.tar.gz
cd openresty-1.11.2.1
./configure \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
@kingtuna
kingtuna / DNS Dashboard
Created July 23, 2015 17:38
Kibana honeynet dashboard
{
"title": "DNS Attacks",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,