4

使用 Vim 查看 Fiddler 生成的 saz 格式 session 包

 2 years ago
source link: https://hiberabyss.github.io/2020/05/06/vim-open-saz-file/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用 Vim 查看 Fiddler 生成的 saz 格式 session 包

0 条评论

Fiddler 是 Windows 下很流行的 Http 抓包工具,它可以把抓到的 Http 请求保存为 saz 格式。 在工作中调试后台服务时,同事经常会发过来一个 saz 格式的文件,但我是用的 macOS 系统, 而 Fiddler 没有 macOS 的版本,就没法直接查看 saz 格式文件。

后来通过 Google 发现 Fiddler 其实是一个 zip 包,Http 的请求和回包都保存在特定的文件里:

  • sessionid#_c.txt 客户端请求
  • sessionid#_s.txt 服务端回包

而最新版本的 Vim 是可以直接识别 zip 包并打开对应的文件的,这样我们就可以直接用 Vim 查看 saz 格式的文件了。 先在 vimrc 里加上如下的配置:

autocmd BufReadCmd *.saz call zip#Browse(expand("<amatch>"))

然后就可以直接用 Vim 打开 saz 文件了:

如果想要可以直接双击打开 saz 文件,可以安装 GUI 版本的 VimR


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK