当前位置:网站首页>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
边栏推荐
- Data import and export for gbase 8s
- Calculate student grade (virtual function and polymorphism)
- Vscode 设置clang-format
- Structure syntaxique des procédures stockées gbase 8S
- Record of the 25th week
- Gbase 8s stored procedure execution and deletion
- js的call()和apply()
- Gbase 8s index R tree
- 固态硬盘开盘数据恢复的方法
- Opensea PHP development kit
猜你喜欢

【FLink】access closed classloader classloader.check-leaked-classloader

领导:谁再用 Redis 过期监听实现关闭订单,立马滚蛋!

我的IC之旅——资深芯片设计验证工程师成长——“胡”说IC工程师完美进阶

Join() in JSZ

「 每日一练,快乐水题 」1108. IP 地址无效化

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

Paper notes: multi label learning ESMC (I don't understand it, but I haven't written it yet, so I'll put it here for a place temporarily)

In Net 6 using dotnet format formatting code

Deep learning - several types of learning

js中的concat()
随机推荐
执行SQL响应比较慢,你有哪些排查思路?
Vscade setting clang format
ROS2/DDS/QoS/主题的记录
STM32的DMA双缓冲模式详解
写shell脚本报错总结
Immutable learning road -- farewell to traditional copy
CTF_ Web: Changan cup-2021 old but a little new & asuka
Wechat likes to pay attention to the solution of invalid automatic reply
Web3 DAPP user experience best practices
SOC验证环境的启动方式
Immutable学习之路----告别传统拷贝
Immutable學習之路----告別傳統拷貝
js的arguments
【FLink】access closed classloader classloader.check-leaked-classloader
机器学习深度学习——向量化
电脑的dwg文件怎么打开
Code scanning payment flow chart of Alipay payment function developed by PHP
Kotlin compose listens to the soft keyboard and clicks enter to submit the event
Xiaobai learns MySQL - Statistical 'opportunism'
高效的NoSQL数据库服务Amozon DynamoDB体验分享