This commit is contained in:
Christian Mehlmauer
2015-05-01 22:15:58 +02:00
parent 04d50ebea5
commit b22550ea55

View File

@@ -87,20 +87,24 @@ def main
# Remote website has a redirection? # Remote website has a redirection?
if (redirection = wp_target.redirection) if (redirection = wp_target.redirection)
if wpscan_options.follow_redirection if redirection =~ /\/wp-admin\/install\.php$/
puts "Following redirection #{redirection}" puts "#{critical('[!]')} The Website is not fully configured and currently in install mode. Call it to create a new admin user."
else else
puts "#{notice('[i]')} The remote host tried to redirect to: #{redirection}" if wpscan_options.follow_redirection
print '[?] Do you want follow the redirection ? [Y]es [N]o [A]bort, default: [N]' puts "Following redirection #{redirection}"
end
if wpscan_options.follow_redirection || !wpscan_options.batch
if wpscan_options.follow_redirection || (input = Readline.readline) =~ /^y/i
wpscan_options.url = redirection
wp_target = WpTarget.new(redirection, wpscan_options.to_h)
else else
if input =~ /^a/i puts "#{notice('[i]')} The remote host tried to redirect to: #{redirection}"
puts 'Scan aborted' print '[?] Do you want follow the redirection ? [Y]es [N]o [A]bort, default: [N]'
exit(0) end
if wpscan_options.follow_redirection || !wpscan_options.batch
if wpscan_options.follow_redirection || (input = Readline.readline) =~ /^y/i
wpscan_options.url = redirection
wp_target = WpTarget.new(redirection, wpscan_options.to_h)
else
if input =~ /^a/i
puts 'Scan aborted'
exit(0)
end
end end
end end
end end