1 Star 0 Fork 0

无在无不在 / vim-swp-exp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

vim-swp-exp

介绍

vim-swp-exp 是一款swp文件泄漏利用工具。

原理

当用vim编辑器打开一个文件时候,vim会自动生成一个.swp文件做备份。如果vim程序正常退出,vim会删除该swp文件。如果vim程序非正常退出,vim自然没有能力删除掉该文件。下次打开vim时,vim会询问用户是否通过swp文件恢复未保存的文本。
在CTF比赛和真实的渗透测试中,运维人员可能会用vim在服务器上编辑站点的.php文件。只要用vim打开文件,就会有.swp文件生成。本程序每0.5s请求一次目标的url的swp文件,一旦检测到存在swp文件,就将该文件下载下来。使用者可以 vim 一个同名文件,然后按R键让vim根据swp文件恢复文件源码。从而将黑盒测试转变为白盒测试。
swp文件下载完成后,程序会继续监控,一旦线上的swp文件发生变化,程序也会更新本地的swp文件。

截图

avatar 批量监控:
avatar

特性

  1. -u 监控单个url
  2. -f 批量监控url

安装方法

go build
./vim-swp-exp
MIT License Copyright (c) 2021 无在无不在 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

vim swp文件泄漏利用工具 展开 收起
Go
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Go
1
https://gitee.com/nothing-is-nothing/vim-swp-exp.git
git@gitee.com:nothing-is-nothing/vim-swp-exp.git
nothing-is-nothing
vim-swp-exp
vim-swp-exp
master

搜索帮助