当前位置:网站首页>CTFHub-信息泄露
CTFHub-信息泄露
2022-07-21 01:33:00 【柒海】
目录遍历
存在两层目录,且目录下的命名一致,容易误导,根据一层一层查看的方式去遍历每次开启环境时,flag文件的位置会有变动,只要根据目录遍历的思路去找就好了
PHPINFO
备份文件下载
网站源码
根据提示,下载网站源码压缩包
打开发现有一个文件为flag编号
直接查看文本没有flag,去访问试试
<补充>
常见的网站源码备份文件后缀:
- tar
- tar.gz
- zip
- rar
常见的网站源码备份文件名 - web
- website
- backup
- back
- www
- wwwroot
- temp
根据该提示,可以编写测试脚本,这是我在网上找的 仅供参考
import requests
url = "http://challenge-c3c711c8d7b491a2.sandbox.ctfhub.com:10800/"
back1 = ['web','website','backup','back','www','wwwroot','temp']
back2 = ['tar','tar.gz','zip','rar']
for i in back1:
for j in back2:
url_new = url + i + '.' + j
r = requests.get(url_new)
if (r.status_code == 200):
print (url_new)
bak文件
index.php回显中没有flag
下载index.php.bak
<补充>
可以使用dirsearch扫描目录文件
安装:
git clone https://github.com/maurosoria/dirsearch.git
扫描内部文件:
python3 dirsearch.py -u 'url' -e*
/**kali自带了python3所以不用再安装了**/
使用该扫描工具时,要管理员权限,不然会报错
VIM缓存
直接扫描一下
访问该目录,下载下来
二进制文件打开找到flag
.DS_Store
windows不行,下载下来的文件打开里面没有有效信息
换成linux(也可以直接把文件拖到linux里查看)
下载后打开
访问
<补充>
.DS_Store 是 Mac OS 保存文件夹的自定义属性的隐藏文件。通过.DS_Store可以知道这个目录里面所有文件的清单。
SVN泄露
参考:https://blog.csdn.net/tempulcc/article/details/108959901
参考:https://www.freesion.com/article/98721217183/
- 配置工具环境
git clone https://github.com/kost/dvcs-ripper
sudo apt-get install perl libio-socket-ssl-perl libdbd-sqlite3-perl libclass-dbi-perl libio-all-lwp-perl
2.恢复.svn
./rip-svn.pl -v -u http://challenge-a111d17ddfd2f7cb.sandbox.ctfhub.com:10800/.svn/
或者
perl rip-svn.pl -v -u http://challenge-a111d17ddfd2f7cb.sandbox.ctfhub.com:10800/.svn/
提示缺少SQLite
安装该模块
[执行需要root权限]
perl -MCPAN -e shell
install DBD::SQLite
exit
安装完毕,再恢复.svn
- 进入.svn目录查找flag
flag存在的位置可能不同,去依次寻找就好了
HG泄露
同样使用dvcs-ripper工具
./rip-hg.pl -v -u http://challenge-a111d17ddfd2f7cb.sandbox.ctfhub.com:10800/.hg/
Git泄露
这个有点点多,我提出来单独记录了
边栏推荐
- Mysql事务日志
- Page break before and page break after realize paging printing
- 复盘:智能座舱系列文五- 它的3种交互方式之隐式交互
- Double disk: intelligent cockpit series article 6 - its three interactive ways of explicit interaction (voice and display)
- PHP 给数组增加数据(array_unshift、array_push、array_splice、array_pad)
- Web3流量聚合平台Starfish OS,给玩家元宇宙新范式体验
- Compatibility problems of installing MySQL in centos7
- 二维码制作完成后,还能修改二维码的内容吗?
- On the differences and advantages of project compilation tools ninja, make and cmake
- Clwy permission management (V) -- user login
猜你喜欢
Clwy permission management (V) -- user login
Web3.0 + Dao is the general trend, and safe creates a new world
[wechat applet] component use and attribute reference
npm 设置下载源
物体识别桌的应用都具备哪些功能
CTF-合天WEB漏洞靶场
Mysql事务日志
Blocking and wakeup of a shell command
Using zdog to realize JS special effect of outlook lighthouse animation
excel通过sumproduct和countifs不重复计数(数据中包含空白单元)
随机推荐
Don't know how to learn MySQL? It's enough to finish the 50 questions of Niuke! (Part VII)
Answer: intelligent cockpit series article 1, what is it
MFC calculator
牛客-TOP101-BM34
Network simulators ENSP, Eve ng, GNS3, packet tracert
【微信小程序】组件使用及属性参考
四种网络的设计理念
Clwy permission management (V) -- user login
目标检测 | 基于统计自适应线性回归的目标尺寸预测
Creative paging style SVG animation JS special effects
19c搭建dg最后报错ORA-01275: Operation RENAME is not allowed if standby file management is automatic.
page-break-before和page-break-after 实现分页打印
19c build DG and finally report error ora-01275: operation Rename is not allowed if standby file management is automatic
Appium automated testing
不知道 MySQL 咋学?刷完牛客这 50 道题就够了!(第七篇)
[C] Language dynamic memory management
GDB usage details
npm 设置下载源
js图表蒸发量降水量平均温度关系图展示
Master the wonderful use of dowanward API and easily grasp kubernetes environment variables