Skip to content

Instantly share code, notes, and snippets.

View Kikyo-chan's full-sized avatar
🏠
Working from home

kikyo Kikyo-chan

🏠
Working from home
  • Yamanashi
View GitHub Profile

TCP + TLS + Web

背景

  • 目前 Vmess + WebSocket + TLS (以下简称 wss)方式,因其特征如同 HTTPS 流量,可以隐藏 V2Ray 路径,主动侦测会得到正常 HTTP 网站响应,具有良好的伪装能力,目前被广泛用于反审查。

  • 但是如此强大的伪装能力,需要付出严重的性能代价:TLS 1.3 握手需要消耗 1-rtt,WS 握手也需要消耗 1-rtt,增大了握手延迟。V2Ray 增加了 mux 以减少握手的发生,然而实际使用中 mux 体验并不好,很多用户选择关闭。

  • 最近兴起了一个新的反审查工具——Trojan,这个工具将一个类似 Socks 的协议直接通过 TLS 传输,并将认证失败的流量交由 Web 服务器处理。降低 WS 延迟的同时,提供与 wss 方式一样的伪装能力。但是该工具较为年轻,没有路由功能,各平台图形化客户端也不完善。

@Kikyo-chan
Kikyo-chan / Uninstall-Pester.ps1
Created May 13, 2020 09:33 — forked from nohwnd/Uninstall-Pester.ps1
Remove built-in version of Pester 3 (or -All) from Windows 10 Program Files and Program Files (x86).
#Requires -RunAsAdministrator
function Uninstall-Pester ([switch]$All) {
if ([IntPtr]::Size * 8 -ne 64) { throw "Run this script from 64bit PowerShell." }
#Requires -RunAsAdministrator
$pesterPaths = foreach ($programFiles in ($env:ProgramFiles, ${env:ProgramFiles(x86)})) {
$path = "$programFiles\WindowsPowerShell\Modules\Pester"
if ($null -ne $programFiles -and (Test-Path $path)) {
if ($All) {
@Kikyo-chan
Kikyo-chan / Get-AzMetadataServiceScheduledMaintenance.ps1
Created May 13, 2020 09:31 — forked from PlagueHO/Get-AzMetadataServiceScheduledMaintenance.ps1
Get All Scheduled Maintenance Events for an Azure VM using the Azure Metadata Service
Invoke-RestMethod `
-Method GET `
-Uri 'http://169.254.169.254/metadata/scheduledevents?api-version=2017-11-01' `
-UseBasicParsing `
-Headers @{ 'Metadata' = 'true' }
@Kikyo-chan
Kikyo-chan / Restore-GitTagForDsc.ps1
Created May 13, 2020 09:30 — forked from PlagueHO/Restore-GitTagForDsc.ps1
Restores the Git Tags for DSC Community Resource modules that were backed up when running Convert-GetTagForDsc
<#
.SYNOPSIS
Restore a set of backed up Git tags from the backup file
created by Convert-GitTagForDsc.ps1 in the $ENV:Temp folder.
.PARAMETER BackupFile
The full path to the backup file created by Convert-GitTagForDsc.ps1.
.PARAMETER Remote
The name of the Git remote repository for your fork.
cls
# database Details
$dbServer = "xxxxxxx"
$dbDatabaseName = "xxxxxxxx"
$dbTable = "xxxxxxxx"
# loading modules
Import-Module SQLPs