Skip to content

Commit 6766616

Browse files
author
HD Moore
committed
Add patched server detection
1 parent 25e0f88 commit 6766616

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/auxiliary/scanner/http/accellion_fta_statecode_file_read.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ def run_host(ip)
5757
return
5858
end
5959

60-
contents = res.body
60+
contents = res.body.to_s
61+
62+
# Check for patched versions of the FTA
63+
if contents =~ / Missing session ID.*Accellion, Inc/m
64+
print_error("#{peer} Appears to be a patched Accellion FTA")
65+
return
66+
end
67+
6168
fname = ::File.basename(datastore['FILEPATH'])
6269

6370
expected_server = "Apache"

0 commit comments

Comments
 (0)