老师,这个用户名注入sql语法会出现报错..
来源:9-1 开始和sql注入

沧海的雨季
2020-03-04
‘zhangsan’ – 老师, 用户名这样输入我这里会出现报错。。
code: 'ER_PARSE_ERROR',
errno: 1064,
sqlMessage:
'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 \'zhangsan\' --\' and password=\'123213213\'\' at line 1',
sqlState: '42000',
index: 0,
sql:
'\n select username, realname from users where username=\'\'zhangsan\' --\' and password=\'123213213\'\n ' }
直接说sql语法有误了, 是不是最新版本的mysql自动帮我们解决这个问题了啊?
写回答
1回答
-
沧海的雨季
提问者
2020-03-04
老师, 问题解决了, 不用再回答了
122020-03-12
相似问题