Skip to content

Instantly share code, notes, and snippets.

<manifest>
</manifest>
#!/usr/bin/python
import email
from google.appengine.ext import webapp
from google.appengine.ext.webapp.mail_handlers import InboundMailHandler
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import util
from google.appengine.ext import db
import uuid
import urllib, urllib2
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);
});
@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
@brandon15811
brandon15811 / packettest.js
Created January 13, 2013 17:59
MCPE Packet Examples
var packet = require('../packet').packet;
var dgram = require('dgram');
var client = dgram.createSocket("udp4");
client.bind(19135);
type = new Buffer(process.argv['2'], 'hex').readUInt8(0);
switch (type)
{
#!/usr/bin/python
import os
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
msg = MIMEMultipart('alternative')
msg['Subject'] = "Hello from Mandrill, Python style!"
@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:
@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 / client.js
Last active December 5, 2018 14:55
Pipe based program control for Pocketmine
var net = require('net');
var client = net.connect({path: '\\\\.\\pipe\\' + process.argv[2] + '-console'}, function()
{
client.write(process.argv[3] + '\n');
process.exit(0);
});
@brandon15811
brandon15811 / dumper.py
Created February 1, 2013 18:34
libminecraftpe.so dumper
#!/usr/bin/python
import subprocess
import sys
functions = subprocess.check_output(['./arm-eabi-nm', '-DCnS', 'libminecraftpe.so']).splitlines()
for functions_line in functions:
if "MobFactory::CreateMob" in functions_line:#if "Packet::write" in functions_line:
functions_line_split = functions_line.split(' ')
stop_address = hex(int(functions_line_split[0], 16) + int(functions_line_split[1], 16))
function = subprocess.check_output(['./arm-eabi-objdump',