This file contains hidden or 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 hidden or 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 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) | |
| { |
This file contains hidden or 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/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!" |
This file contains hidden or 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/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', |
This file contains hidden or 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 net = require('net'); | |
| var client = net.connect({path: '\\\\.\\pipe\\' + process.argv[2] + '-console'}, function() | |
| { | |
| client.write(process.argv[3] + '\n'); | |
| process.exit(0); | |
| }); |
This file contains hidden or 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
| #!/bin/bash -xe | |
| nc_running() | |
| { | |
| NC_RUN=$(adb shell busybox ps -w | grep "NCRUN='1'" > /dev/null 2>&1; echo $?) | |
| } | |
| tcpdump_running() | |
| { | |
| TCP_RUN=$(adb shell busybox ps -w | grep -v "NCRUN='1'" | grep 'TCPRUN="1"' > /dev/null 2>&1; echo $?) | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| MAGIC='fefd' | |
| SESSIONTYPE='09' | |
| SESSION='01020304' | |
| LONG="0" | |
| while getopts ":l" opt; do | |
| case $opt in |
This file contains hidden or 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
| local html = | |
| [[ | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.css"> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/mode/xml/xml.js"></script> |
This file contains hidden or 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 hidden or 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
| #!/bin/bash | |
| #Based off of http://code.activestate.com/recipes/491264/ | |
| if [ "$1" == "startserver" ]; then | |
| ncat -u -l 5355 -c $(readlink -f $0) -k | |
| exit | |
| fi | |
| timeout 1s cat /dev/stdin > input | |
| req=$(cat input | xxd -p) | |
| #Functions from http://ubuntuforums.org/showthread.php?t=735140&p=4584216#post4584216 |