# tcp
nc -vzt google.com 443
# udp
nc -vzu dns.google 53
This file contains hidden or 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
| # Requires -RunAsAdministrator | |
| $PROGRAM_NAME = 'UnblockNeteaseMusic' | |
| # $AUTHOR_NAME = '1715173329' | |
| $PROJECT_NAME = 'UnblockNeteaseMusic' | |
| $REPO_NAME = 'server' | |
| $BRANCH_NAME = 'enhanced' | |
| $INSTALLATION_PATH = "$env:APPDATA\$PROGRAM_NAME" | |
| $BIN_PATH = "$INSTALLATION_PATH\bin" | |
| $TMP_PATH = "$INSTALLATION_PATH\tmp" |
This file contains hidden or 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
| $BASE_PATH = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Search' | |
| $RADIUS_PATH = "$BASE_PATH\Flighting\Override" | |
| function CustimizedNewItemProperty($Path, $Name, $Value) { | |
| $null = New-ItemProperty -Path $Path -Name $Name -PropertyType DWord -Value $Value | |
| } | |
| function ToCenter($Radius) { | |
| $null = ToDefault | |
| $null = New-Item -ItemType String -Path $RADIUS_PATH |
This file contains hidden or 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/env bash | |
| # NETWORK | |
| PROXY="$1" | |
| # COLOR SCHEMA | |
| COLOR_HINT=36m | |
| COLOR_WARNING=31m | |
| # DIRECTORY |
This file contains hidden or 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
| # https://classic.yarnpkg.com/en/docs/yarnrc/#toc-disable-self-update-check | |
| yarn config set disable-self-update-check true | |
| yarn config set registry https://registry.npm.taobao.org/ |
This file contains hidden or 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
| { | |
| "inbounds": [ | |
| { | |
| "port": 443, | |
| "listen": "0.0.0.0", | |
| "protocol": "vless", | |
| "settings": { | |
| "decryption": "none", | |
| "clients": [ | |
| { |
This file contains hidden or 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/env bash | |
| jq() { | |
| python3 -c "$( | |
| cat <<EOF | |
| import sys, json | |
| json.dump($1$2, sys.stdout, separators=(',', ':'), ensure_ascii=False) | |
| EOF | |
| )" |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet] | |
| "ActiveDnsProbeContent"="114.114.114.114" | |
| "ActiveDnsProbeContentV6"="2400:3200::1" | |
| "ActiveDnsProbeHost"="114.114.114.114" | |
| "ActiveDnsProbeHostV6"="2400:3200::1" | |
| "ActiveWebProbeContent"="ok" | |
| "ActiveWebProbeContentV6"="ok" | |
| "ActiveWebProbeHost"="data.bilibili.com" |
本教程是对 [1], [2], [3] 的复现,实现了 Android 11+ 开机解锁屏幕后自动开启 ADB WiFi 的 5555 端口,无需 ROOT 和电脑。如需无人值守,请将屏幕锁设置为 无。本文不解释是什么,为什么,只介绍怎么做。
注意:本方法只适用于 WIFI 不会变化的场景,如果要在多个 WIFI 下使用,每个都要设置一次。
This file contains hidden or 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 | |
| BASEDIR="$(dirname "$0")" | |
| ( | |
| cd "$BASEDIR" || exit 1 | |
| ./kill-xray | |
| sleep 3 | |
| ./start-xray | |
| ) |
OlderNewer