Skip to content

Instantly share code, notes, and snippets.

View caizixian's full-sized avatar

Zixian Cai caizixian

View GitHub Profile
redis = require 'redis'
client = redis.createClient()
SS_PREFIX = 'ss:'
#
# user
# name: shadowsocks 的用户名
# password: shadowsocks 的密码
# method: shadowsocks 的加密方法
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select