57.“help search”命令可查看search命令的详细用法。
常用:(1)cve:使用CVE编号进行搜索。
(2)date:使用发布日期进行搜索。
(3)name:使用名称进行搜索。
(4)platform:使用运行平台进行搜索。
(5)type:按模块类型进行搜索。
(6)-s:按所选字段升序排序,如不添加该参数,默认按name升序排序。
例子:
msf6 > search date:2022
以上命令用于查找2022年发布的模块。
msf6 > search name:http
以上命令用于查找所有HTTP相关模块。
search type:exploit
以上命令用于查找所有类型为exploit的模块。
msf6 > search cve:2022 type:exploit
以上命令用于查找所有CVE编号以2022开头的exploit模块。
msf6 > search cve:2022 type:exploit platform:linux
以上命令用于查找所有CVE编号以2022开头的针对Linux的exploit模块。
msf6 > search cve:2022 type:exploit platform:windows -s date
以上命令用于查找所有CVE编号以2022开头的针对Windows的exploit模块,并按发布时间升序排序。
此外,借助MSF提供的grep命令,还可以对search查找结果进行过滤。例如:
msf6 > grep manageengine search cve:2022 platform:windows
07-30
5913

01-22
389

01-31
4706

05-09