mongodb有这样一个关键字 ne 就是not equal的意思
Syntax: {field: {$ne: value} }
$ne selects the documents where the value of the field is not equal (i.e. !=) to the specified value. This includes documents that do not contain the field.
like this

就是查询到了id不为1的数据
那在这里呢,我们就可以这样构造进行注入:
http://192.168.247.132/inj.php?id[$ne]=2

$ne 过滤

本文详细介绍了MongoDB中$ne运算符的使用方法及其语法,$ne用于选择字段值不等于指定值的文档,包括不含该字段的文档。通过实例演示了如何利用$id[$ne]构造进行数据查询。

1037

被折叠的 条评论
为什么被折叠?



