nikto_apacheusers.plugin

来自「一个用perl写的功能强大的cgi漏洞检测程序」· PLUGIN 代码 · 共 33 行

PLUGIN
33
字号
#VERSION,1.02#LASTMOD,05.23.2003# Apache user enumeration# This software is distributed under the terms of the GPL, which should have been received# with a copy of this software in the "LICENSE.txt" file.# this checks Apache user enumeration. Do this is a plugin so we can do a test of a bogus# user to see if we're getting bad data or not. Thanks to Jericho for pointing out the FPs# The original Nikto check looked like:# check,apache,/,~root,"Forbidden",GET,"Enumeration of users is possible by requesting ~username (responds with Forbidden for real users, not found for non-existent users)."sub nikto_apacheusers{ (my $RES , $CONTENT) = fetch("/~root","GET"); if ($CONTENT =~ /forbidden/i) # good on "root"  {   (my $RES , $CONTENT) = fetch("/~abcdef993454","GET");   $CONTENT=char_escape($CONTENT);   if ($CONTENT !~ /forbidden/i) # Good, it gave an error instead of forbidden    {     $VULS++;     nprint("+ /~root - Enumeration of users is possible by requesting ~username (responds with Forbidden for real users, not found for non-existent users) (GET).");    }  }}1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?