当前位置:网站首页>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
边栏推荐
- 30岁了开始自学编程,家里比较困难还来得及吗?
- Gbase 8s parallel operation problem scenario description
- Multithreading structure of gbase 8s
- Php7.2 add JPEG extension
- Successfully solved: selenium common. exceptions. TimeoutException: Message: timeout: Timed out receiving message from
- js的sort()函数
- leetcode1221. 分割平衡字符串
- XML (VIII)
- WPF uses Maui's self drawing logic
- After the newly assigned variable of the applet is modified, the original variable will also be modified
猜你喜欢
Web3 DApp用户体验最佳实践
Kotlin Compose 监听软键盘 点击enter提交事件
js中的concat()
本轮压力测试下,DeFi协议们表现如何?
Vscode 设置clang-format
leetcode1221. 分割平衡字符串
Upgrade PHP to php7 The impact of X (2), the obsolescence of mcrypt decryption
My IC journey - the growth of senior chip design verification engineers - "Hu" said that IC engineers are perfect and advanced
WPF 使用 MAUI 的自绘制逻辑
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)
随机推荐
Method of opening data recovery of solid state disk
Use of deferred environment variable in gbase 8s
Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
Construction scheme of distributed websocket
魔法猪系统重装大师怎么使用
OOP 向量加减(友元+拷贝构造)
Gbase 8s index R tree
初识 Flutter 的绘图组件 — CustomPaint
[image fusion] image fusion based on MATLAB directional discrete cosine transform and principal component analysis [including Matlab source code 1907]
两小时带你进入软件测试行业风口(附全套软件测试学习路线)
Php7.2 add JPEG extension
OOP stack class template (template +ds)
【无标题】
Codeforces Round #802 (Div. 2) C D
Upgrade PHP to php7 The impact of X (I). The problem of session retention. Keep login
leetcode1221. Split balance string
Le chemin de l'apprentissage immutable - - Adieu à la copie traditionnelle
Response (XI)
为什么TCP握手刚刚好是3次呢?
Solution of gbase 8s livelock and deadlock