Skip to content

Instantly share code, notes, and snippets.

@liberal-boy
liberal-boy / Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装.md
Last active October 18, 2024 15:18
Vmess + TCP + TLS 方式的 HTTP 分流和网站伪装

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 方式一样的伪装能力。但是该工具较为年轻,没有路由功能,各平台图形化客户端也不完善。

@Juanito99
Juanito99 / Get-SharesWithShareAndNTFSPermissions
Last active January 12, 2025 22:48
List File-Shares with Share and NTFS Permissions in PowerShell
<#
License terms
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
#>
#get all Shares
@natemccurdy
natemccurdy / Install-CCM-Agent.ps1.epp
Last active February 17, 2022 04:41
Puppet code to install SCCM Agent on Windows
<%- | String $client_source,
String $argument_list
| -%>
$ClientSource = "<%= $client_source %>"
$TempDir = Join-Path "C:\Windows\Temp" "ccm_client"
$CCMSetup = Join-Path $TempDir "ccmsetup.exe"
if (-not (Test-Path $CCMSetup)) {
Try {
Write-Output "Copying $ClientSource to $TempDir"
@jhochwald
jhochwald / Get-ADFSCertificate-Token-Signing.ps1
Created April 26, 2017 16:49
ADFS Authentication with Exchange troubleshooting
Get-ADFSCertificate Token-Signing | Select-Object Thumbprint
@shiningdragon
shiningdragon / List-AllAzureResources.ps1
Last active July 6, 2022 23:28
Lists all resources (classic and ARM) in the given subscriptions and outputs the results to a csv file
<#
.SYNOPSIS
Lists all resources (classic and ARM) in the given subscriptions and outputs the results to a csv file
.DESCRIPTION
Lists all resources (classic and ARM) in the given subscriptions and outputs the results to a csv file
Requires powershell 5 or higher
You must authenticate to Azure for both classic and ARM in order to run this script
e.g.
Add-AzureAccount