This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import argparse | |
| import subprocess | |
| import re | |
| import os | |
| TYPECODES = ['\-', 'r', 'd', 'b', 'l', 'p', 's', 'w', 'v'] | |
| DESCRIPTIONS = [ | |
| 'unknown type', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TARGET = test | |
| CC = gcc | |
| CFLAGS = -c -v | |
| VPATH = src | |
| SRC = test.c | |
| OBJ = $(SRC:.c=.o) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.class | |
| a.out | |
| fizzbuzz |