【发布时间】:2012-07-15 05:27:30
【问题描述】:
我正在尝试将xp_cmdshell 的结果与选择查询结合起来。
我已经尝试过联合并阅读了有关创建临时表的信息,但我的结果将只有 1 列。更准确地说,我需要一个较小的查询来将xp_cmdshell 的结果与选择查询结合起来,因为我试图在基于联合的 sql 注入中使用它
例如:
Select name from employee
union
exec xp_cmdshell 'whoami'
我知道这行不通,但有点类似会很棒:)
【问题讨论】:
标签: sql stored-procedures sql-injection xp-cmdshell