Is there a way to demonstrate SQL injection with mysqli?

后端 未结 2 1385
醉梦人生
醉梦人生 2021-01-27 16:50

I want to make a quick and easy demonstration about how SQL injection work. And I\'ve solved some of my problems. I have a table with random usernames, passwords and emails in,

2条回答
  •  后悔当初
    2021-01-27 17:15

    Did you try something like this ?

    '(here put something);
    

    in this way you are going to close the query with ' and add other stuff to it, when you add ; everything else is going to be discarded

提交回复
热议问题