当前位置:网站首页>CTFHub-Web-信息泄露-目錄遍曆
CTFHub-Web-信息泄露-目錄遍曆
2022-06-25 06:40: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
边栏推荐
- 2022 AI trend 8 forecast!
- In a single-page app, what is the right way to deal with wrong URLs (404 errors)?
- [short time energy] short time energy of speech signal based on MATLAB [including Matlab source code 1719]
- BigDecimal. Summary of setscale usage
- [speech discrimination] discrimination of speech signals based on MATLAB double threshold method [including Matlab source code 1720]
- joda.time获取日期总结
- Power representation in go language
- [core content and derivation] the mystery of human memory system may be just like this
- You can see the classification of SQL injection. SQL injection point /sql injection type /sql injection has several /sql injection point classifications
- Your local changes to the following files would be overwritten by merge: .vs/slnx.sqlite
猜你喜欢
Understand what ICMP Protocol is
Derivation of sin (a+b) =sina*cosb+sinb*cosa
We cannot activate inspection type for article master in transaction code MM41?
【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
Wan Yin revealed that he was rejected by MIT in this way: "the department doesn't like you". He confronted the principal and realized
At the age of 26, I was transferred to software testing with zero foundation. Now I have successfully entered the job with a monthly salary of 12K. However, no one understands my bitterness
Cannot activate inspection type when SAP retail uses transaction code mm41 to create commodity master data?
keil debug查看变量提示not in scope
JS dynamic table creation
Sophomores majoring in mechanics build a manipulator by hand -- full of compromise
随机推荐
聚类和分类的最基本区别。
JD 7 head search navigation layout
Brief introduction and use of JSON
Sophomores majoring in mechanics build a manipulator by hand -- full of compromise
Single lithium battery 3.7V power supply 2x12w stereo boost audio power amplifier IC combination solution
[ACNOI2022]王校长的构造
You can see the classification of SQL injection. SQL injection point /sql injection type /sql injection has several /sql injection point classifications
[200 opencv routines of youcans] 104 Motion blur degradation model
[short time average zero crossing rate] short time average zero crossing rate of speech signal based on MATLAB [including Matlab source code 1721]
燕京啤酒何以至此?
keil debug查看变量提示not in scope
fastadmin 联级清空数据
The "&" character will destroy the data stored in the web The "&" character breaks passwords that are stored in the web config
Kotlin reflection -- Notes
Streaming a large file using PHP
JD 8 fleet stores search history, deletes history, clears history (not finished)
Arm instructions and others
Acwing / 2004. Mauvaise écriture
From file system to distributed file system
ACWING/2004. 錯字