【问题标题】:Bypass pg_scape_string in SQL INjection在 SQL INjection 中绕过 pg_scape_string
【发布时间】:2020-05-03 08:48:48
【问题描述】:

我可以绕过 pg_scape_string 来执行 SQl Inject 攻击吗?

【问题讨论】:

  • 您好,欢迎来到 StackOverflow!您需要更具体地说明您需要什么帮助。你想注入什么?

标签: php sql postgresql sql-injection


【解决方案1】:

我需要绕过 pg_scape_string,例如: 在带有 pg_scape_string 的代码中

$sql = pg_scape_string("select * from tableusers where username ='".$_POST['user']."'"); 

With the input: 0' or 0=0 --

数据库中的 SQL 将是“select * from tableusers where username = ''0 or 0=0 -- '” 引号被重复了,我需要绕过这个清理并处理不重复的引号。

【讨论】:

    猜你喜欢
    • 2019-03-14
    • 1970-01-01
    • 1970-01-01
    • 2020-09-16
    • 2011-08-18
    • 2013-05-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多