Skip to content
Permalink
Browse files

Land #12792, Fix #12791, check for nil response on connection failure…

… in efs_fmws_userid_bof
  • Loading branch information
timwr committed Jan 10, 2020
2 parents 8b18f86 + 326fd26 commit 2ea5bd139af94e1bc3bfb21d13a48dab99ed62cd
Showing with 7 additions and 1 deletion.
  1. +7 −1 modules/exploits/windows/http/efs_fmws_userid_bof.rb
@@ -75,7 +75,13 @@ def get_version

version = nil
res = send_request_raw({'uri' => '/whatsnew.txt'})
if res && res.body =~ /What's new in Easy File Management Web Server V(\d\.\d)/

unless res
vprint_error 'Connection failed'
return nil
end

if res.body =~ /What's new in Easy File Management Web Server V(\d\.\d)/
version = $1
vprint_status "Found version: #{version}"
elsif res.headers['server'] =~ /Easy File Management Web Server v(4\.0)/

0 comments on commit 2ea5bd1

Please sign in to comment.
You can’t perform that action at this time.