This file contains 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 bash | |
set -x | |
NS="openvpn" | |
VETH="vethopenvpn" | |
VPEER="vpeeropenvpn" | |
#NS="ns1" | |
#VETH="veth1" | |
#VPEER="vpeer1" |
This file contains 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
""" | |
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: |
This file contains 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
<!-- 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> |
This file contains 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
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 |
This file contains 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
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); | |
}); |