Skip to content

Instantly share code, notes, and snippets.

@hrimfaxi
hrimfaxi / OpenVPN-2.2.2-obfs.patch
Created January 21, 2016 15:24 — forked from greensea/OpenVPN-2.2.2-obfs.patch
The obfs patch obsfucate OpenVPN traffic, make it looks like random traffic. The obfs patch add two options for OpenVPN. --obfs-salt <string> is a secret to generate the input XOR stream. To enable the obfs patch, this options must be set. --obfs-padlen <num> is a positive integer max to 255. This option tells obfs patch to padding random conten…
--- openvpn-2.2.2.orig/options.c 2011-12-14 00:58:56.000000000 +0800
+++ openvpn-2.2.2/options.c 2012-12-21 10:44:57.683130505 +0800
@@ -54,6 +54,10 @@
#include "memdbg.h"
+extern char* _socket_obfs_salt;
+extern int _socket_obfs_salt_len;
+extern int _socket_obfs_padlen;
+
Microsoft (R) Windows Debugger Version 6.3.9600.17298 X86
Copyright (c) Microsoft Corporation. All rights reserved.
Loading Dump File [C:\Windows\MEMORY.DMP]
Kernel Bitmap Dump File: Only kernel address space is available
************* Symbol Path validation summary **************
@hrimfaxi
hrimfaxi / unpack.py
Last active May 11, 2017 03:02
unpack Chinese translation
#!/usr/bin/python3
import argparse, re, csv
class TransEntry():
def __init__(self, begin, end, string):
self.begin = begin
self.end = end
self.string = string