FearTight
发表于 2025-1-25 08:07:44
novsunyc 发表于 2025-1-24 16:39
用的苹果好像没你这软件现在还无法链接国内
没有苹果手机研究不了
mask
发表于 2025-1-25 08:54:46
FearTight 发表于 2025-1-25 08:07
没有苹果手机研究不了
小火箭的百度直连Lua脚本改一改有可能可以吗
jaycola
发表于 2025-1-25 10:18:14
牛呀
FearTight
发表于 2025-1-25 11:12:11
mask 发表于 2025-1-25 08:54
小火箭的百度直连Lua脚本改一改有可能可以吗
发我一下代码或者给我看配置截图
weking
发表于 2025-1-26 10:48:49
FearTight 发表于 2025-1-25 11:12
发我一下代码或者给我看配置截图
-- file: lua/backend-baidu.lua
local http = require 'http'
local backend = require 'backend'
local char = string.char
local byte = string.byte
local find = string.find
local sub = string.sub
local ADDRESS = backend.ADDRESS
local PROXY = backend.PROXY
local DIRECT_WRITE = backend.SUPPORT.DIRECT_WRITE
local SUCCESS = backend.RESULT.SUCCESS
local HANDSHAKE = backend.RESULT.HANDSHAKE
local DIRECT = backend.RESULT.DIRECT
local ctx_uuid = backend.get_uuid
local ctx_proxy_type = backend.get_proxy_type
local ctx_address_type = backend.get_address_type
local ctx_address_host = backend.get_address_host
local ctx_address_bytes = backend.get_address_bytes
local ctx_address_port = backend.get_address_port
local ctx_write = backend.write
local ctx_free = backend.free
local ctx_debug = backend.debug
local flags = {}
local kHttpHeaderSent = 1
local kHttpHeaderRecived = 2
function wa_lua_on_flags_cb(ctx)
return DIRECT_WRITE
end
function wa_lua_on_handshake_cb(ctx)
local uuid = ctx_uuid(ctx)
if flags == kHttpHeaderRecived then
return true
end
if flags ~= kHttpHeaderSent then
local host = ctx_address_host(ctx)
local port = ctx_address_port(ctx)
local res = 'CONNECT ' .. host .. ':' .. port .. 'HTTP/1.1\r\n' ..
'Host: 180.101.50.208:443\r\n' ..
'Proxy-Connection: Keep-Alive\r\n'
ctx_write(ctx, res)
flags = kHttpHeaderSent
end
return false
end
function wa_lua_on_read_cb(ctx, buf)
ctx_debug('wa_lua_on_read_cb')
local uuid = ctx_uuid(ctx)
if flags == kHttpHeaderSent then
flags = kHttpHeaderRecived
return HANDSHAKE, nil
end
return DIRECT, buf
end
function wa_lua_on_write_cb(ctx, buf)
ctx_debug('wa_lua_on_write_cb')
return DIRECT, buf
end
function wa_lua_on_close_cb(ctx)
ctx_debug('wa_lua_on_close_cb')
local uuid = ctx_uuid(ctx)
flags = nil
ctx_free(ctx)
return SUCCESS
end
850757554
发表于 2025-1-26 13:09:11
结果怎么样
FearTight
发表于 2025-1-27 18:19:39
在'Host: 180.101.50.208:443\r\n'下一行加入一句
'With-At: sdeweb.hkcsl.com' 试试
addoil
发表于 昨天 08:23
FearTight 发表于 2025-1-22 15:23
因为我用的不是ws的混淆方式,而是用的ss的obfs-local模式的节点作为前置,然后套的百度直连,软件是用的tp ...
大佬这是百度的吗钉钉的咋设置啊?