Skip to content

Instantly share code, notes, and snippets.

@xream
Last active August 1, 2023 13:03
Show Gist options
  • Save xream/9336b6fd853bdca52b3de092508afe9e to your computer and use it in GitHub Desktop.
Save xream/9336b6fd853bdca52b3de092508afe9e to your computer and use it in GitHub Desktop.
测试
console.log($response)
const newResp = {
status: 302,
headers: { location: 'https://google.com' },
// body: "文档说 body 的长度大于0,会自动计算headers中的content-length"
}
console.log(newResp)
$done(newResp)
#!name=failed MitM HTTP/2 测试 302 跳转
#!desc= 不要刷新 总是新建标签页 打开 https://t.cn/A6p1ANqR 测试
[Script]
http-response ^https:\/\/t\.cn\/ script-path=https://gist.githubusercontent.com/xream/9336b6fd853bdca52b3de092508afe9e/raw/failed.js, timeout=60 ,tag=failed
[MITM]
hostname = t.cn
console.log($response)
const newResp = {
status: 302,
headers: { location: 'https://baidu.com' },
body: "文档说 body 的长度大于0,会自动计算headers中的content-length"
}
console.log(newResp)
$done(newResp)
#!name=ok MitM HTTP/2 测试 302 跳转
#!desc= 不要刷新 总是新建标签页 打开 https://t.cn/A6p1ANqR 测试
[Script]
http-response ^https:\/\/t\.cn\/ script-path=https://gist.githubusercontent.com/xream/9336b6fd853bdca52b3de092508afe9e/raw/ok.js, timeout=60 ,tag=ok
[MITM]
hostname = t.cn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment