当前位置:网站首页>CTFHub-Web-信息泄露-目录遍历
CTFHub-Web-信息泄露-目录遍历
2022-06-25 06:33:00 【长街395】

这里我们有两种方法:
1.手动的一个个去打开文件寻找
2.使用python代码爬取网站文件
我使用第二种方式:
import requests
url = "http://challenge-011f662b1a24880f.sandbox.ctfhub.com:10800/flag_in_here"
for i in range(5):
for j in range(5):
url_final = url + "/" + str(i) + "/" + str(j)
r = requests.get(url_final)
r.encoding = "utf-8"
get_file = r.text
if "flag.txt" in get_file:
print(url_final)
这样输出含有flag.txt的链接

点击链接,即可获得flag


flag为:
ctfhub{9313b9e3a2b2169610bc4ec4}Tips:requests.get可以获得网页的信息
r.text是网页的HTML代码
最后判断flag.txt是否在某个链接中
这里参考链接为:http://Admiralll https://www.bilibili.com/read/cv15764985 出处:bilibili
边栏推荐
- [speech discrimination] discrimination of speech signals based on MATLAB double threshold method [including Matlab source code 1720]
- mysql 表查询json数据
- Drosophila played VR and entered nature. It was found that there were attention mechanisms and working memory. The insect brain was no worse than that of mammals
- Understand what MTU is
- Why study discrete mathematics
- 'how do I create an enumeration with constant values in rust?'- How can I create enums with constant values in Rust?
- [short time energy] short time energy of speech signal based on MATLAB [including Matlab source code 1719]
- Zero foundation wants to learn web security, how to get started?
- 【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
- Is it safe to open a stock account on the Internet in Beijing?
猜你喜欢

Cs5092 5V USB input boost two section lithium battery charging management IC, SOT23-6 miniature package

sin(a+b)=sina*cosb+sinb*cosa的推导过程

Cve-2022-23131 - bypass SAML SSO authentication

In depth inventory: 23 vscode plug-in artifacts that improve development efficiency and aesthetics

Navicat防止新建查询误删

アルマ / 炼金妹

Derivation of COS (a+b) =cosa*cosb-sina*sinb

After unplugging the network cable, does the original TCP connection still exist?

Derivation of sin (a-b) =sina*cosb-sinb*cosa

DataX tutorial (10) - hot plug principle of dataX plug-in
随机推荐
Zero foundation wants to learn web security, how to get started?
ARM processor operating mode
MSG_ OOB MSG_ PEEK
R & D thinking 07 - embedded intelligent product safety certification required
@Principle of preauthorize permission control
Cs8126t 3.1w mono ultra low EMI unfiltered class D audio power amplifier IC
How to realize hierarchical management of application and hardware in embedded projects
mysql 表查询json数据
Can TCP syn handshake messages transmit data
[轻松学会shell编程]-5、计划任务
Navicat防止新建查询误删
Arm instructions and others
ACWING/2004. 錯字
DataX tutorial (09) - how does dataX achieve speed limit?
Guess the size of the number
BGP - basic concept
Understand what ICMP Protocol is
China rehabilitation hospital industry operation benefit analysis and operation situation investigation report 2022
使用OpenGL绘制shp文件
[core content and derivation] the mystery of human memory system may be just like this