MongoDB数据查询中的关键字&ne

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
MongoDB数据查询中的关键字&ne
就是查询到了id不为1的数据

那在这里呢,我们就可以这样构造进行注入:

http://192.168.247.132/inj.php?id[$ne]=2
MongoDB数据查询中的关键字&ne

$ne 过滤
MongoDB数据查询中的关键字&ne