Skip to content

Instantly share code, notes, and snippets.

@syxoasis
syxoasis / novpn.sh
Created December 28, 2016 12:56 — forked from kriswebdev/novpn.sh
Bypass VPN for specific apps [Linux / OpenVPN]
#!/bin/bash
# === INFO ===
# NoVPN
# Description: Bypass VPN tunnel for applications run through this tool.
VERSION="1.0.2"
# Author: KrisWebDev
# Requirements: Linux with kernel > 2.6.4 (released in 2008).
# Only tested on Ubuntu 15 with bash.
# Main dependencies are automatically installed.
@syxoasis
syxoasis / ss-libev-2.5.4_att.py
Created November 29, 2016 01:55
Shadowsocks-libev attack
#!/usr/bin/env python
#-*- coding: utf-8 -*-
'''
Copyleft (c) 2016 breakwa11
https://github.com/breakwa11/shadowsocks-rss
'''
import logging
import socket
@syxoasis
syxoasis / ss-go_att.py
Created November 29, 2016 01:55
Shadowsocks-go attack
#!/usr/bin/env python
#-*- coding: utf-8 -*-
'''
Copyleft (c) 2016 breakwa11
https://github.com/breakwa11/shadowsocks-rss
'''
import socket
import traceback
@syxoasis
syxoasis / ss_att2.py
Created November 29, 2016 01:55
Shadowsocks attack
#!/usr/bin/env python
#-*- coding: utf-8 -*-
'''
Copyleft (c) 2015 breakwa11
https://github.com/breakwa11/shadowsocks-rss
'''
import logging
import socket
@syxoasis
syxoasis / gist:b2f8e2f98874c90c811d
Created December 7, 2015 12:21 — forked from OkamiSupport/gist:4892f251e837ee708131
Cisco IPsec和ToughRadius对接记录
假设你Toughradius和CiscoIPSEC VPN都调试好了,请将目录定位到/usr/local/etc
编辑 strongswan.d/charon/eap-radius.conf
eap-radius {
accounting = yes
load = yes
dae {
enable = yes
listen = 0.0.0.0
port = 3799
@syxoasis
syxoasis / gist:38e8f0ce4bf694d3e413
Created December 3, 2015 11:25 — forked from orlp/gist:4487500
Kademlia security protocol

Kademlia security protocol

In this little description we use the following notation:

+ concatenation
hash(x) the SHA-1 hash of x
sign(x, sk) the Ed25519 signature generated by signing x using signing key sk
verify(signature, x, vk) verifying the Ed25519 signature of x using veryfing key vk

There is a central identity server everyone trusts. The server has an Ed25519 keypair, the master keypair. Everyone possesses the master verification key (MVK), the signing key is kept secret (MSK).

@syxoasis
syxoasis / centos7.sh
Created November 5, 2015 02:54 — forked from yyang/centos7.sh
centos 7 pptpd firewalld
#!/bin/sh
#
# pptpd installation script on my own CentOS 7 box.
# inspired by: https://www.digitalocean.com/community/questions/how-to-install-pptp-vpn-on-centos-7
# and http://unix.stackexchange.com/questions/150837/redhat-centos-7-firewalld-best-practice-for-pptp-or-l2tp-ipsec-rules
#
# Author: 2015 Steve Yang <me@iyyang.com>
# The script comes with ABSOLUTELY NO WARRANTY.