我在使用最低安全设置的DVWA (非盲)上进行SQL注入。我想列出当前数据库中的表。为此,我尝试输入0';显示表;--在用户ID字段中,如下所示

我希望这将向MySQL发出以下声明
SELECT * FROM users WHERE user_id = '0'; show tables;--'但是,当我点击submit时,我会得到这个错误。
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'show tables;--'' at line 1我怀疑这是简单的东西,我错过了,并希望任何帮助学习正确的方法来做到这一点。谢谢!
发布于 2016-02-28 03:25:03

您可以查看下面的源代码以获得完整的场景。
来源:https://computersecuritystudent.com/SECURITY_工具/DVWA/DVWA 107/lesson6 6/index.html
https://security.stackexchange.com/questions/115943
复制相似问题