Skip to content

Instantly share code, notes, and snippets.

View shekkbuilder's full-sized avatar

shekk shekkbuilder

View GitHub Profile
@shekkbuilder
shekkbuilder / nginx.sh
Created April 16, 2017 14:11 — forked from simonw/nginx.sh
Run nginx and serve the current directory contents (without needing a config file), logging to stdout/stderr
#!/bin/bash
if [ $# -ge 1 ]; then
PORT=$1
else
PORT=8000
fi
CONF_PATH=$(mktemp /tmp/nginx-tmp-config.XXXXXXXX) || { echo "Failed to create temp file"; exit 1; }
cat > $CONF_PATH <<- EOF
daemon off;
@shekkbuilder
shekkbuilder / ipv6-regex-test.sh
Created April 8, 2017 19:21 — forked from syzdek/ipv6-regex-test.sh
Simple script to test my IPv6 regular expression.
#!/bin/sh
#
# Use posixregex CLI tool from: https://github.com/syzdek/dmstools/blob/master/src/posixregex.c
RE_IPV4="((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])"
posixregex -r "^(${RE_IPV4})$" \
127.0.0.1 \
10.0.0.1 \
192.168.1.1 \
@shekkbuilder
shekkbuilder / ABOUT
Created April 6, 2017 11:00 — forked from anonymous/ABOUT
Ultimate-GPG-Settings
The Goals of this Gist are to:
[1] Increase the GnuPG key size limit beyond 4096 bits.
[2] Provide configuration files that maximize security and anonymity.
For now, the ideal configuration files have been provided.
The Debian_Linux_GnuPG_Compiler.bash script works to build GnuPG with the 4096 bit key size limit raised.
Please provide input. Feedback and changes welcome.
@shekkbuilder
shekkbuilder / ABOUT
Created April 6, 2017 11:00 — forked from anonymous/ABOUT
Ultimate-GPG-Settings
The Goals of this Gist are to:
[1] Increase the GnuPG key size limit beyond 4096 bits.
[2] Provide configuration files that maximize security and anonymity.
For now, the ideal configuration files have been provided.
The Debian_Linux_GnuPG_Compiler.bash script works to build GnuPG with the 4096 bit key size limit raised.
Please provide input. Feedback and changes welcome.
@shekkbuilder
shekkbuilder / skater.cpp
Created April 3, 2017 16:15 — forked from zachelko/skater.cpp
Basic C/C++ code obfuscator.
// Zach J. Elko
// 2010
// skater.cpp
//
// I've wanted to make one of these for a while now. I got bored and
// whipped this up in about 3 hours. There are a lot of improvements
// that can/should be made, but it's not bad for the short amount of
// time put into it.
//
// Basic C/C++ code obfuscator.

Python Cheat Sheets - Modules

by Victor Payno

struct

Format String

@shekkbuilder
shekkbuilder / netcat.py
Created March 28, 2017 03:53 — forked from leonjza/netcat.py
Python Netcat
import socket
class Netcat:
""" Python 'netcat like' module """
def __init__(self, ip, port):
self.buff = ""
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
@shekkbuilder
shekkbuilder / recover
Created March 25, 2017 15:30 — forked from alimuldal/recover
Python script for automated file recovery using SleuthKit
#!/usr/bin/env python
import argparse
import subprocess
import re
import os
TYPECODES = ['\-', 'r', 'd', 'b', 'l', 'p', 's', 'w', 'v']
DESCRIPTIONS = [
'unknown type',
@shekkbuilder
shekkbuilder / Makefile
Created March 22, 2017 04:13 — forked from america/Makefile
simple makefile for C
TARGET = test
CC = gcc
CFLAGS = -c -v
VPATH = src
SRC = test.c
OBJ = $(SRC:.c=.o)
@shekkbuilder
shekkbuilder / .gitignore
Created March 17, 2017 19:12 — forked from nickserv/.gitignore
FizzBuzz in various languages
*.class
a.out
fizzbuzz