问题:
Just looking at: 只看:
(Source: https://xkcd.com/327/ ) (来源: https : //xkcd.com/327/ )
What does this SQL do: 此SQL的作用是:
Robert'); DROP TABLE STUDENTS; --
I know both '
and --
are for comments, but doesn't the word DROP
get commented as well since it is part of the same line? 我知道'
和--
都是注释,但是DROP
这个词不是同一行的一部分吗?
解决方案:
参考一: https://stackoom.com/question/1OSj/来自-Bobby-Tables-XKCD漫画的SQL注入如何工作参考二: https://oldbug.net/q/1OSj/How-does-the-SQL-injection-from-the-Bobby-Tables-XKCD-comic-work
来源:oschina
链接:https://my.oschina.net/stackoom/blog/4312696