Last active
August 1, 2023 13:03
-
-
Save xream/9336b6fd853bdca52b3de092508afe9e to your computer and use it in GitHub Desktop.
测试
This file contains 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
console.log($response) | |
const newResp = { | |
status: 302, | |
headers: { location: 'https://google.com' }, | |
// body: "文档说 body 的长度大于0,会自动计算headers中的content-length" | |
} | |
console.log(newResp) | |
$done(newResp) |
This file contains 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
#!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 |
This file contains 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
console.log($response) | |
const newResp = { | |
status: 302, | |
headers: { location: 'https://baidu.com' }, | |
body: "文档说 body 的长度大于0,会自动计算headers中的content-length" | |
} | |
console.log(newResp) | |
$done(newResp) |
This file contains 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
#!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