Skip to content

Instantly share code, notes, and snippets.

View fffonion's full-sized avatar

Wangchong Zhou fffonion

View GitHub Profile
@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 / 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
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 / 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):
@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 / 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 / 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 / KHimekuri.py
Created April 18, 2014 07:52
download K Project everyday wallpaper
from __future__ import print_function
from Crypto.Cipher import AES
import os, os.path as opath
import binascii
import time
from datetime import datetime, timedelta
from httplib2 import Http
pad = lambda s: s + (16 - len(s) % 16) * chr(16 - len(s) % 16)
unpad = lambda s : s[0:-ord(s[-1])]
@fffonion
fffonion / .htaccess
Last active September 20, 2023 00:40
Google镜像 恢复背景图片,代理谷歌快照,去除了url跳转,关闭安全搜索 http://g.yooooo.ushttp://gc.yooooo.us
#Redirect 301 ^/$ /search.htm
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !^/index\.htm
#RewriteCond %{REQUEST_URI} !^/image\.htm
#RewriteCond %{REQUEST_URI} !^/m\.htm
#RewriteCond %{REQUEST_URI} !^/mi\.htm
@fffonion
fffonion / query_4px.py
Last active August 29, 2015 13:57
四方转运怨念累积每日查询用脚本【摔
#coding:utf-8
from httplib2 import Http
import re
import time
today = time.strftime('%Y-%m-%d 00:00:00',time.localtime(time.time()))
ticket = "xxxxxxxxxxxxxxxxxx"
a,b = Http("Z:\TEMP").request("http://www.transrush.com/Transport/LogisticsTransferTrace.aspx?code=%s" % ticket,
headers = {"Referer":"http://tr.4px.com/Transport/TransportInfo.aspx",
"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Encoding":"gzip,deflate",