Skip to content

Instantly share code, notes, and snippets.

View fffonion's full-sized avatar

Wangchong Zhou fffonion

View GitHub Profile
@fffonion
fffonion / channel.py
Created April 23, 2014 10:40
SAE internal apis
#!/usr/bin/env python
# -*-coding: utf8 -*-
"""Channel API
"""
import time
import json
import urllib
import urllib2
@fffonion
fffonion / app.js
Created April 30, 2014 15:56
比机机(bijiji.net)测试js
/**
* bijiji.net v2.0.504
* dev:Mr.Wong
* create date:2013.11.14
* **/
//业务逻辑
;
(function ($, W, D) {
var TK = W.Toolkit,
@fffonion
fffonion / check_ssl.py
Last active August 8, 2021 23:22
hosts - A mix of working google, twitter, wikipedia ips and no-ads
from socket import socket, error, setdefaulttimeout
import ssl
import re
import time
import sys
import os
from hashlib import md5
import json
os.chdir(os.path.split(sys.argv[0])[0])
@fffonion
fffonion / qqvote_makedie.py
Created July 22, 2014 14:43
为什么腾讯的投票不检查ip和session的
from httplib2 import Http
import random
import time
from threading import Thread
from Queue import Queue, Empty
print_queue = Queue()
rnd = lambda :'0.'+''.join([random.choice('0123456789') for i in range(18)])
cnt = 0
class wo(Thread):
def __init__(self, name):
from subprocess import Popen, PIPE
import struct
import os
fuckfile = r'z:\libGame.so'
total = os.stat(fuckfile).st_size
print('totle file size is 0x%x' % total)
f = open(fuckfile, 'rb')
l1 = f.read(16)
l2 = f.read(16)
l3 = f.read(16)
@fffonion
fffonion / Debug.smali
Last active October 23, 2016 15:26
wlanchang smali auto inject
.class public Lcom/test/Debug;
.super Ljava/lang/Object;
# static fields
.field public static final DEBUG_BILLING_DUMMY:Z = false
.field public static final DEBUG_CHECK_MD5:Z = false
.field public static final DEBUG_DISABLE_EVIDENCE:Z = false
@fffonion
fffonion / youku-kux.py
Last active October 11, 2019 10:57
youku kux -> mkv
#coding:utf-8
from __future__ import print_function
import os
import sys
import struct
import math
TAG_TYPE = {
18:'SCRIPT',
9:'VIDEO',
@fffonion
fffonion / goo-proxy.conf
Last active August 29, 2015 14:07
Google service redirect @apache2 ver
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ErrorLog ${APACHE_LOG_DIR}/google-proxy-android-err.log
CustomLog ${APACHE_LOG_DIR}/google-proxy-android-access.log combined
DocumentRoot "/var/www/google-proxy"
ProxyPreserveHost On
ProxyRequests Off
ProxyRequests Off
ProxyPassReverseCookiePath /var/www/google-proxy /
@fffonion
fffonion / YoukuAntiADs+.js
Last active August 29, 2015 14:07
antiads, f*ck crossdomain, f8ck swf loader
// ==UserScript==
// @name YoukuAntiADs@res
// @author Harv.c, fffonion
// @description 你猜猜
// @version 0.2.6
// @namespace http://userscripts.org:8080/users/Harv
// @updateURL http://userscripts.org:8080/scripts/source/119622.meta.js
// @downloadURL http://userscripts.org:8080/scripts/source/119622.user.js
// @include http://*/*
// @include https://*/*
@fffonion
fffonion / artemis.py
Last active August 1, 2022 06:03
artemis resource unpack
# coding:utf-8
import struct
import os
import os.path as opth
import sys
__version__ = 1.0
getPATH0 = lambda: sys.path[0].decode(sys.getfilesystemencoding())
# 命令行处理