Skip to content

Instantly share code, notes, and snippets.

@brandon15811
brandon15811 / ns-inet.sh
Last active November 18, 2016 04:56 — forked from dpino/ns-inet.sh
Setup a network namespace with Internet access
#!/usr/bin/env bash
set -x
NS="openvpn"
VETH="vethopenvpn"
VPEER="vpeeropenvpn"
#NS="ns1"
#VETH="veth1"
#VPEER="vpeer1"
@brandon15811
brandon15811 / dump.py
Last active August 12, 2016 09:50 — forked from Intyre/bytes.js
MCPE 0.15 Packet dumper
"""
Setup (requires root on Android device):
pip install frida #(may require root on host machine)
curl -O https://build.frida.re/frida/android/arm/bin/frida-server
adb push frida-server /data/local/tmp/
adb shell "chmod 755 /data/local/tmp/frida-server"
adb shell "/data/local/tmp/frida-server &"
Usage:
<!-- https://gist.github.com/mahemoff/443933
This is a Node+WebSocket powered demo to sync videos
across different browsers. This file is the client,
the other one is the Node server. Powered by Node and
https://github.com/einaros/ws -->
<style>
.inactive { display: none; }
.active { display: block; }
</style>
@brandon15811
brandon15811 / gist:4323539
Last active December 9, 2015 20:28 — forked from anonymous/gist:4323526
Wireshark capture filter for Minecraft PE sniffing
udp and port not 53 and udp port not 631 and udp port not 1900 and udp port not 5353 and udp port not 17500 and not ip6 and udp port not 137 and udp port not 138 and udp port not 5355 and udp port not 68 and udp port not 67 and udp port not 161
var dgram = require('dgram')
var client = dgram.createSocket("udp4");
var serverip = process.argv[2];
var serverPort = 19132;
client.bind(19132);
client.on("message", function (msg, rinfo)
{
console.log("Received packet " + msg + " from " + rinfo.ip);
});