This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import subprocess | |
import os | |
import sys | |
fwd_map = {8080: {8081, 8082, 8083, 8084, 8085, 8086, 8087, 8088, 8089, 9090}, 443: {1443, 2443, 3443, 4443, 5443, 6443, 7443, 8443, 9443, 10443}} | |
ipt_template = 'iptables -t nat -A PREROUTING -p tcp --dport {} -j REDIRECT --to-port {}' | |
ipt_disable_template = 'iptables -t nat -D PREROUTING -p tcp --dport {} -j REDIRECT --to-port {}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import subprocess | |
import os | |
import sys | |
https_port_to_disable = [443, 1443, 2443, 3443, 4443, 5443, 6443, 7443, 8443, 9443, 10443] | |
ipt_template = 'iptables -t filter -A INPUT -p tcp --dport {} -j DROP' | |
ipt_disable_template = 'iptables -t filter -D INPUT -p tcp --dport {} -j DROP' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"log": { | |
"level": "warn", | |
"timestamp": true | |
}, | |
"dns": { | |
"servers": [ | |
{ | |
"tag": "dns_proxy", | |
"address": "tcp://1.1.1.1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anonymous_enable=NO | |
local_enable=YES | |
dirmessage_enable=YES | |
xferlog_enable=YES | |
connect_from_port_20=YES | |
listen=NO | |
listen_ipv6=YES | |
pam_service_name=vsftpd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pandas as pd | |
try: | |
sheet = pd.read_excel("test.xlsx", header=None) | |
except Exception as e: | |
print('read_excel failed') | |
exit(-1) | |
print(sheet.iloc[0,0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
server role = standalone server | |
workgroup = WORKGROUP | |
max log size = 1000 | |
logging = file | |
security = user | |
map to guest = bad user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# These settings were set by the catalyst build script that automatically | |
# built this stage. | |
# Please consult /usr/share/portage/config/make.conf.example for a more | |
# detailed example. | |
COMMON_FLAGS="-march=x86-64 -mtune=generic -O2 -pipe" | |
CFLAGS="${COMMON_FLAGS}" | |
CXXFLAGS="${COMMON_FLAGS}" | |
FCFLAGS="${COMMON_FLAGS}" | |
FFLAGS="${COMMON_FLAGS}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
port: 7890 # port of HTTP | |
socks-port: 7891 # port of SOCKS5 | |
allow-lan: false | |
mode: rule | |
proxies: | |
- name: "t1" | |
type: trojan | |
server: xx.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
INTERFACE_NAME='ens18' | |
REDIR_PORT='1088' | |
# 开启代理 | |
start() | |
{ | |
echo "start tproxy begin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file describes the network interfaces available on your system | |
# For more information, see netplan(5). | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp1s0: | |
dhcp4: no | |
addresses: [192.168.31.2/24] | |
gateway4: 192.168.31.1 |
NewerOlder