当前位置:网站首页>buuctf web
buuctf web
2022-06-25 04:48:00 【hercu1iz】
pentest
- [ Geek challenge 2019]EasySQL
- [HCTF 2018]WarmUp
- [ Geek challenge 2019]Havefun
- [ACTF2020 Freshman competition ]Include
- [ Strong net cup 2019] Note casually
- [SUCTF 2019]EasySQL
- [ACTF2020 Freshman competition ]Exec
- [ Geek challenge 2019]Secret File
- [ Geek challenge 2019]LoveSQL
- [GXYCTF2019]Ping Ping Ping
- [ Geek challenge 2019]Knife
- [ Geek challenge 2019]Http
- [ Geek challenge 2019]Upload
- [ACTF2020 Freshman competition ]Upload
- [RoarCTF 2019]Easy Calc
- [ Geek challenge 2019]BabySQL
- [ Geek challenge 2019]PHP
[ Geek challenge 2019]EasySQL
SQL Inject ( Universal password )
Single quote closure 
1' or 1=1 #
The first quotation mark closes the front quotation mark , # Closed quotation marks after comments
principle :
sql="select * from user where username=’ ‘and password=’ ’
sql="select * from user where username=’1'or 1=1 # ‘and password=’ ’
[HCTF 2018]WarmUp
PHP File contains
Verification can be bypassed by satisfying the following verification , The file contains the read file 
`
class emmm
{ public static function checkFile(&$page)
{
// White list list
$whitelist = ["source"=>"source.php","hint"=>"hint.php"];
//isset() Determine whether the variable is declared is_string() Determine whether the variable is a string && It uses logic and two values are true if The value of the inside
if (! isset($page) || !is_string($page)) {
echo "you can't see it A";
return false;
}
// Check whether the value passed in matches the white list $whitelist If so, execute true
if (in_array($page, $whitelist)) {
return true;
}
// Function to filter question marks ( If $page The value is ? From ? Extract the string before )
$_page = mb_substr(
$page,
0,
mb_strpos($page . '?', '?')// return $page.? Show off in ? The first place where the number appears
);
// Check whether the value passed in matches the white list for the second time $whitelist If so, execute true
if (in_array($_page, $whitelist)) {
return true;
}
//url Yes $page decode
$_page = urldecode($page);
// Function for filtering question marks for the second time ( If $page The value is ? From ? Extract the string before )
$_page = mb_substr(
$_page,
0,
mb_strpos($_page . '?', '?')
);
// Check whether the value passed in matches the white list for the third time $whitelist If so, execute true
if (in_array($_page, $whitelist)) {
return true;
}
echo "you can't see it";
return false;
}
}`
notes :
mb_strpos (haystack ,needle ) Returns the first occurrence of the string to find in another string
// haystack: The string to be checked .
// needle: String to search
mb_substr(str, start, length) Function returns part of a string .
//str It's necessary . From the string Extract substring from .
//start It's necessary . Specify where to start the string .
//length Optional . Specifies the length of the string to return . The default is until the end of the string .
/source.php?file=hint.php?../../../../../ffffllllaaaagggg
[ Geek challenge 2019]Havefun

[ACTF2020 Freshman competition ]Include
Reference resources :https://blog.csdn.net/destiny1507/article/details/82347371
[ Strong net cup 2019] Note casually
https://www.cnblogs.com/wjw-zm/p/12359735.html
[SUCTF 2019]EasySQL
sql The stack *,1
https://blog.csdn.net/weixin_44866139/article/details/105857487
[ACTF2020 Freshman competition ]Exec
Improper filtration
https://blog.csdn.net/vanarrow/article/details/108181645
[ Geek challenge 2019]Secret File
php For the agreement php://fileter ?file=php://filter/convert.base64-encode/resource=
File contains
https://www.cnblogs.com/g0udan/p/12244878.html
[ Geek challenge 2019]LoveSQL
Standard explosion library , surface , Field
https://blog.csdn.net/qq_45521281/article/details/105533626
[GXYCTF2019]Ping Ping Ping
ping;cmd Command connection , The difficulty lies in filtering the strings .
notes :
stay linux Of shell in IFS Express Internal Field Separator ( Internal field separator )
https://blog.csdn.net/sinat_34761046/article/details/114698231
[ Geek challenge 2019]Knife
Connect the kitchen knife ok
[ Geek challenge 2019]Http
View source code
Or use burp This file can also be detected by scanning
Then add... According to the prompt http The request header field is OK .
https://blog.csdn.net/qq_45163122/article/details/105905864
[ Geek challenge 2019]Upload
notes :
phtml Generally, it refers to embedding php Code html file , But it will also act as php analysis
GIF89a Picture header file spoofing (https://www.cnblogs.com/hcflyy/p/3568839.html?utm_source=tuicool&utm_medium=referral)
https://blog.csdn.net/qq_45163122/article/details/105907554
[ACTF2020 Freshman competition ]Upload
Keep up with the topic . The only difference is that there is one more front end JS verification , direct F12 Verify JS Time is deleted .
[RoarCTF 2019]Easy Calc
get request , adopt php The string parsing feature bypasses , Realize information disclosure view .
https://blog.csdn.net/weixin_44077544/article/details/102630714
[ Geek challenge 2019]BabySQL
Keywords are filtered , Double writing bypasses
https://www.cnblogs.com/h3zh1/p/12548753.html
[ Geek challenge 2019]PHP
url+?select=O:4:"Name":3:{s:14:"%00Name%00username";s:5:"admin";s:14:"%00Name%00password";i:100;}
php Deserialization learning :https://blog.csdn.net/weixin_42751456/article/details/88758908
Bypass reference :https://blog.csdn.net/weixin_44077544/article/details/103542260
边栏推荐
- At the age of 30, I began to learn programming by myself. Is it still time for me to have difficulties at home?
- 领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!
- 哪个编程语言实现hello world最烦琐?
- Gbase 8s memory management
- JS, BOM, DOM (VI)
- Bingbing's learning notes: implementation of circular queue
- 【图像融合】基于matlab方向离散余弦变换和主成分分析图像融合【含Matlab源码 1907期】
- [untitled]
- 我的IC之旅——资深芯片设计验证工程师成长——“胡”说IC工程师完美进阶
- Sleep more, you can lose weight. According to the latest research from the University of Chicago, sleeping more than 1 hour a day is equivalent to eating less than one fried chicken leg
猜你喜欢

LabVIEW development gas regulator

《QDebug 2022年6月》

以太网是什么要怎么连接电脑

Vscode 设置clang-format

MySQL concept and operation (III)

电脑的dwg文件怎么打开

Cnpm: unable to load file c:\users\administrator\appdata\roaming\npm\cnpm PS1 because running scripts is prohibited on this system.

Unity Quad culls shaders with back faces and transparent parts

Which programming language is the most cumbersome to implement Hello world?

Xiaobai learns MySQL - Statistical 'opportunism'
随机推荐
分布式websocket搭建方案
parallel recovery slave next change & parallel recovery push change
OOP vector addition and subtraction (friend + copy construction)
Unity Quad culls shaders with back faces and transparent parts
What if the desktop computer is not connected to WiFi
JS' sort() function
Kotlin Compose 监听软键盘 点击enter提交事件
CTF_ Web: Changan cup-2021 old but a little new & asuka
Google Earth Engine(GEE)——全球JRC/GSW1_1/YearlyHistory数据集的批量下载(中国区域)
【FLink】access closed classloader classloader. check-leaked-classloader
Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
《牛客刷verilog》Part I Verilog快速入门
ASEMI三相整流桥的工作原理
Data view for gbase 8s
Why PHP is not safe
Cannot import name 'escape' from 'jinja2' [solved successfully]
在 .NET 6 中使用 dotnet format 格式化代码
Solution of gbase 8s livelock and deadlock
Vscode 设置clang-format
Basic introduction of gbase 8s blocking technology