实验吧 登陆一下好吗??

打开连接,看源代码,抓包,扫面,发现:什么也没有发现。硬着头皮用sql注入,让后第一反应是用or,但是发现被过滤了,用||,发现也被过滤了。没办法,看了别人的博客,发现它的语句可能是:

$sql=“select * from uers where username=’$_POST[‘username’]’ and password=’$_POST[‘password’]’”

让后构造payload,让username=1’=‘0 再让password=1‘=’0。因为这样一来,语句就变成了:

$sql=“select * from uers where username=‘1=‘0’ and password=‘1’=‘0’”

解释一下,表里肯定没有username=1这个东西,所以username=1为假,然后假=0,就返回真了,password同理。
实验吧 登陆一下好吗??

相关文章:

  • 2021-09-06
  • 2021-12-28
  • 2021-08-10
  • 2021-12-04
  • 2021-08-18
  • 2021-08-07
  • 2021-05-28
猜你喜欢
  • 2021-11-20
  • 2021-10-25
  • 2021-12-03
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案