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
color_prompt=yes | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
PROMPT_COMMAND='echo -ne "\033]0;root@${HOSTNAME}: ${PWD}\007"' | |
export LS_OPTIONS='--color=auto' | |
eval "$(dircolors)" | |
alias ls='ls $LS_OPTIONS' | |
alias ll='ls $LS_OPTIONS -l' | |
alias l='ls $LS_OPTIONS -lA' |
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 | |
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi | |
REMOTE_SERVER="x.x.x.x" | |
INBOUND_ADDR="127.0.0.1" | |
INBOUND_PORT="10808" | |
TPROXY_CHAIN="XRAY_TPROXY" | |
GATEWAY_CHAIN="XRAY_GATEWAY" |
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/sh | |
REMOTE_SERVER="x.x.x.x" | |
INBOUND_ADDR="127.0.0.1" | |
INBOUND_PORT="10888" | |
TPROXY_CHAIN="XRAY_TPROXY" | |
GATEWAY_CHAIN="XRAY_GATEWAY" | |
EXCLUDE_MARK="5" |
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 | |
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi | |
GATEWAY=$(ip route | awk '/default/ {print $3}') | |
GATEWAY_V6=$(ip -6 route | awk '/default/ {print $3}') | |
INTERFACE=$(ip route | awk '/default/ {print $5}') | |
XRAY_EXE="/opt/xray/xray" | |
XRAY_CONFIG="/path/to/config.json" |
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
# Guide ref | |
# https://www.if-not-true-then-false.com/2021/debian-ubuntu-linux-mint-nvidia-guide | |
# This is not a real script !! | |
# Do not run it !! | |
# Check if secure boot disabled | |
mokutil --sb-state | |
# Get GPU model | |
lspci | grep "VGA" |
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 | |
XRAY="/usr/local/bin/xray" | |
SERVER="/usr/local/etc/xray/config.json" | |
BUFFER=$(mktemp) | |
UUID=$($XRAY uuid) | |
KEYS=$($XRAY x25519) | |
SHORT=$(openssl rand -hex 8) |
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
listen l1 | |
bind 0.0.0.0:443 | |
mode tcp | |
timeout connect 4000 | |
timeout client 180000 | |
timeout server 180000 | |
server srv1 host.example.com:9443 |
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
@echo off | |
SET "SCRIPT=%0" | |
SET "ARG=%1" | |
SET "GATEWAY=192.168.1.1" | |
SET "SERVER_ADDRESS=x.x.x.x" | |
SET "SOCKS_SCHEME=socks5" | |
SET "SOCKS_ADDRESS=127.0.0.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
#!/bin/bash | |
FROM="1024" | |
TO="443" | |
DEST="x.x.x.x" | |
# Flush nat rules | |
iptables -t nat --flush | |
# Exclude localhost |
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 | |
if [ "$EUID" -ne 0 ]; then echo "Please run as root"; exit; fi | |
GATEWAY=$(ip route | awk '/default/ {print $3}') | |
INTERFACE=$(ip route | awk '/default/ {print $5}') | |
RESOLVE_CONF=$(cat /etc/resolv.conf) | |
SOCKS_SCHEME="socks5" | |
SOCKS_ADDRESS="127.0.0.1" |