Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
dig @208.67.222.222 -p 5353 edns-client-sub.net TXT +short +subnet=7.7.7.0/24 | |
"{'ecs_payload':{'family':'1','optcode':'0x08','cc':'CN','ip':'223.73.56.0','mask':'24','scope':'0'},'ecs':'True','ts':'1582082486.7','recursive':{'cc':'US','srcip':'67.215.82.65','sport':'49532'}}" | |
dig @120.196.165.24 edns-client-sub.net TXT +short +subnet=7.7.7.0/24 | |
"{'ecs':'False','ts':'1582083081.84','recursive':{'cc':'CN','srcip':'120.198.227.97','sport':'60108'}}" |
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"net/http/httputil" |
# Block Torrent algo string using Boyer-Moore (bm) | |
iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "BitTorrent protocol" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "peer_id=" -j DROP | |
iptables -A FORWARD -m string --algo bm --string ".torrent" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "announce.php?passkey=" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "torrent" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "announce" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "info_hash" -j DROP | |
iptables -A FORWARD -m string --algo bm --string "/default.ida?" -j DROP |
#!/bin/bash | |
number=$1 | |
method=$2 | |
ss-tunnel -k test -m $method -l 8387 -L 127.0.0.1:8388 -s 127.0.0.1 -p 8389 & | |
ss_tunnel_pid=$! | |
ss-server -k test -m $method -s 127.0.0.1 -p 8389 & | |
ss_server_pid=$! |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/bin/bash | |
echo ". {" > Corefile | |
echo " forward . 208.67.222.222:443 208.67.222.222:5353 208.67.220.220:443 208.67.220.220:5353 127.0.0.1:5301 127.0.0.1:5302 127.0.0.1:5303 {" >> Corefile | |
china=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/accelerated-domains.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
apple=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/apple.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
google=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/google.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
echo " except $china $apple $google" >> Corefile | |
echo " }" >> Corefile | |
echo " proxy . 116.228.111.118 180.168.255.18" >> Corefile | |
echo " log" >> Corefile |
Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimental-<cipher> ...]
[-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw]
[[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm]
[no-dso] [no-krb5] [sctp] [386] [--prefix=DIR]
#!/bin/bash | |
apt-get install -y distcc distcc-pump ccache | |
sed -ie 's/STARTDISTCC="false"/STARTDISTCC="true"/' /etc/default/distcc | |
sed -ie 's/ALLOWEDNETS="127.0.0.1"/ALLOWEDNETS="192.168.0.0\/16 172.16.0.0\/12 10.0.0.0\/8"/' /etc/default/distcc | |
sed -ie 's/LISTENER="127.0.0.1"/LISTENER="0.0.0.0"/' /etc/default/distcc | |
sed -ie "s/JOBS=\"\"/JOBS=\"`grep processor /proc/cpuinfo | wc -l`\"/" /etc/default/distcc | |
sed -ie 's/ZEROCONF="false"/ZEROCONF="true"/' /etc/default/distcc | |
#PATH here? https://midnightyell.wordpress.com/2012/10/14/a-good-compromise-cross-compiling-with-distcc/ |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo apt-get install build-essential haveged -y
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install curl -y
sudo apt-get install shadowsocks-libev -y
sudo apt-get install cron -y
sudo apt-get install screen -y
Install ss-server: https://github.com/shadowsocks/shadowsocks-libev
Download v2ray-plugin: https://github.com/shadowsocks/v2ray-plugin/releases
Download v2ray: https://github.com/v2ray/v2ray-core/releases
> ss-server -c server_config.json --plugin v2ray-plugin_linux_amd64 --plugin-opts "server;mode=websocket;path=/;loglevel=info"