Skip to content

Instantly share code, notes, and snippets.

@nezlooy
nezlooy / bgrep.c
Last active October 31, 2019 18:14
Binary Grep
#define _XOPEN_SOURCE 1 /* Required under GLIBC for nftw() */
#define _XOPEN_SOURCE_EXTENDED 1 /* Same */
/*
sudo gcc -O2 -x c -o /usr/bin/bgrep bgrep.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@nezlooy
nezlooy / iodine_client_traf_forward.sh
Created February 13, 2016 00:01
Automatic traffic redirection to iodine server
#!/bin/bash
#
# Recursive resolver check
#
# dig +short test.openresolver.com TXT @8.8.8.8
# dig +short test.openresolver.com TXT @208.67.222.222
# dig +short test.openresolver.com TXT @198.153.192.1
#