检查特定选项的语法
在本步骤中,你将练习使用帮助菜单查找特定选项的语法。扩展帮助 (-H) 是你的参考手册。当你想要了解如何使用某个特定功能时,可以在此帮助输出中进行搜索。
假设你想使用 -Tuning 选项来控制运行哪些类型的测试,但不确定哪些值是有效的。你可以将 nikto -H 命令与 grep 结合使用,以快速找到相关信息。
运行以下命令查找关于 -Tuning 选项的详细信息:
nikto -H | grep 'Tuning'
管道符号 | 将 nikto -H 的输出发送到 grep 命令,然后 grep 会过滤输出,只显示包含单词 "Tuning" 的行。
-Tuning+ (1234567890ab) Tuning 选项控制 Nikto 将针对目标使用的测试。
使用参考编号或字母来指定类型。
可以同时使用多个。
1 - Interesting File / Seen in logs (有趣文件 / 日志中可见)
2 - Misconfiguration / Default File (配置错误 / 默认文件)
3 - Information Disclosure (信息泄露)
4 - Injection (XSS/Script/HTML) (注入 (XSS/脚本/HTML))
5 - Remote File Retrieval - Inside Web Root (远程文件检索 - Web 根目录内)
6 - Denial of Service (拒绝服务)
7 - Remote File Retrieval - Server Wide (远程文件检索 - 服务器范围)
8 - Command Execution / Remote Shell (命令执行 / 远程 Shell)
9 - SQL Injection (SQL 注入)
0 - File Upload (文件上传)
a - Authentication Bypass (身份验证绕过)
b - Software Identification (软件识别)
x - Reverse Tuning Options (i.e., include (反向 Tuning 选项 (即,包含
all except specified) 除指定项外的所有项))
此输出清楚地解释了 -Tuning 选项的作用,并列出了你可以与之一起使用的所有有效值。