Nikto详细使用教程

Nikto简介

基于perl语言开发的web页面扫描器。其特点扫描全面,速度快。

nikto常用命令

-upodate                         升级,更新插件

-host                               扫描目标URl

-id username:password  http认证接口

-list-plugins                     列出所有可用的插件

-evasion                          IDS/IPS逃避技术(实例演示里有详细信息)

-port                                指定端口(默认80)

 -ssl                                 使用SSL

-useproxy                       使用http代理

-vhost  域名                    当一个IP拥有多个网站时 使用

nikto交互参数(扫描过程中使用)

空格        报告当前扫描状态

v             显示详细信息

d             显示调试信息

e             显示http错误信息

p             显示扫描进度

r              显示重定向信息

c             显示cookie

a             显示身份认证过程

q             退出程序

N            扫描下一个目标

P            暂停扫描

实例演示

1.扫描单个地址时

nikto   -host  http://192.168.3

       

2.扫描多个地址时

nikto  -host   url.txt

3.扫描https网站

nikto   -host   www.baidu.com   -ssl   -port 443

4.使用代理进行扫描

nikto   -host  https://www.baidu.com -ssl   -useproxy  http;//127.0.0.1:8080(没有无法演示,若以后有条件补上)。

5.使用LibWhisker绕过IDS的检测(10个参数 1-8、A、B)

              1 随机URI编码(非utf-8)

              2 自选择路径(/. /)

              3 过早结束的URL

              4 使用长随机字符串

              5 使用假参数

              6 使用tab作为命令的分隔符

              7 更改URL的大小写

              8 使用windows的命令分隔符"\"

              A 使用回车0x0d作为请请求分隔符

              B 使用二进制0x0b作为请请求分隔符      

niketo -host www.baidu.com -ssl  -port 443    -evasion 1358

修改配置信息

1.将user-agent:nikto改为其他浏览器标识,避免被识别出来。

 vi /etc/nikto.conf

2.如果是基于表单的认证,必须要使用cookie,将原来的cookie注释,按照原来的格式写入你的cookie。

STATIC-COOKIE = "cooke1=cookie value1"; "cookie2=value2"; 

到这里就介绍完nikto,如果想了解更多的Kali工具,请关注我!

 

 

 

             

  • 16
    点赞
  • 118
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Nikto是一款Web安全扫描工具,可以扫描指定主机的web类型,主机名,特定目录,cookie,特定CGI漏洞,XSS漏洞,SQL注入漏洞等,非常强大滴说。。。 [email protected]:~# cd /pentest/web/nikto/ [email protected]:/pentest/web/nikto# ls docs nikto.conf nikto.pl plugins templates [email protected]:/pentest/web/nikto# ./nikto.pl -h Option host requires an argument -config+ Use this config file -Cgidirs+ scan these CGI dirs: ‘none’, ‘all’, or values like “/cgi/ /cgi-a/” -dbcheck check database and other key files for syntax errors -Display+ Turn on/off display outputs -evasion+ ids evasion technique -Format+ save file (-o) format -host+ target host -Help Extended help information -id+ Host authentication to use, format is id:pass or id:pass:realm -list-plugins List all available plugins -mutate+ Guess additional file names -mutate-options+ Provide extra information for mutations -output+ Write output to this file -nocache Disables the URI cache -nossl Disables using SSL -no404 Disables 404 checks -port+ Port to use (default 80) -Plugins+ List of plugins to run (default: ALL) -root+ Prepend root value to all requests, format is /directory -ssl Force ssl mode on port -Single Single request mode -timeout+ Timeout (default 2 seconds) -Tuning+ Scan tuning -update Update databases and plugins from CIRT.net -vhost+ Virtual host (for Host header) -Version Print plugin and database versions + requires a value Note: This is the short help output. Use -H for full help. 升级插件 [email protected]:/pentest/web/nikto# ./nikto.pl -update -h 指定扫描的目标 –p 端口 [email protected]:/pentest/web/nikto# ./nikto.pl -h www.91ri.org -p 80 -C 指定CGI目录 –all表示猜解CGI目录 [email protected]:/pentest/web/nikto# ./nikto.pl -h www.91ri.org -C all -T选项包含很多小选项 –T 9表示扫描SQL注入漏洞 [email protected]:/pentest/web/nikto# ./nikto.pl -h www.91ri.org -T 9 -D指定输出显示 2显示cookies [email protected]:/pentest/web/nikto# ./nikto.pl -h www.91ri.org -D 2 -T选项包含的小选项解释: 0 检查文件上传页面 1 检查web日志 2 检查错误配置或默认文件 3检查信息泄露问题 4 检查XSS/Script/HTML问题 5 从根目录检查是否存在可访问的文件 6 检查拒绝服务问题 7 从任意文件检索是否存在可访问文件 8 检查是否存在系统命令执行漏洞 9 检查SQL注入漏洞 a 检查认证绕过问题 b 识别安装的软件版本 c 检查源代码泄露问题 x 反向链接选项

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值