user prompt on same line
This commit is contained in:
@@ -33,7 +33,7 @@ def main
|
|||||||
if wpscan_options.update
|
if wpscan_options.update
|
||||||
if !@updater.nil?
|
if !@updater.nil?
|
||||||
if @updater.has_local_changes?
|
if @updater.has_local_changes?
|
||||||
puts "#{red('[!]')} Local file changes detected, an update will override local changes, do you want to continue updating? [y/n]"
|
print "#{red('[!]')} Local file changes detected, an update will override local changes, do you want to continue updating? [y/n] "
|
||||||
Readline.readline =~ /^y/i ? @updater.reset_head : raise('Update aborted')
|
Readline.readline =~ /^y/i ? @updater.reset_head : raise('Update aborted')
|
||||||
end
|
end
|
||||||
puts @updater.update()
|
puts @updater.update()
|
||||||
@@ -66,7 +66,7 @@ def main
|
|||||||
puts
|
puts
|
||||||
else
|
else
|
||||||
puts "The remote host tried to redirect us to #{redirection}"
|
puts "The remote host tried to redirect us to #{redirection}"
|
||||||
puts 'Do you want follow the redirection ? [y/n]'
|
print 'Do you want follow the redirection ? [y/n] '
|
||||||
end
|
end
|
||||||
|
|
||||||
if wpscan_options.follow_redirection or Readline.readline =~ /^y/i
|
if wpscan_options.follow_redirection or Readline.readline =~ /^y/i
|
||||||
@@ -96,7 +96,7 @@ def main
|
|||||||
unless wp_target.wp_plugins_dir_exists?
|
unless wp_target.wp_plugins_dir_exists?
|
||||||
puts "The plugins directory '#{wp_target.wp_plugins_dir}' does not exist."
|
puts "The plugins directory '#{wp_target.wp_plugins_dir}' does not exist."
|
||||||
puts 'You can specify one per command line option (don\'t forget to include the wp-content directory if needed)'
|
puts 'You can specify one per command line option (don\'t forget to include the wp-content directory if needed)'
|
||||||
puts 'Continue? [y/n]'
|
print 'Continue? [y/n] '
|
||||||
unless Readline.readline =~ /^y/i
|
unless Readline.readline =~ /^y/i
|
||||||
exit(0)
|
exit(0)
|
||||||
end
|
end
|
||||||
@@ -309,7 +309,7 @@ def main
|
|||||||
|
|
||||||
puts
|
puts
|
||||||
puts "The plugin #{protection_plugin.name} has been detected. It might record the IP and timestamp of every failed login and/or prevent brute forcing altogether. Not a good idea for brute forcing !"
|
puts "The plugin #{protection_plugin.name} has been detected. It might record the IP and timestamp of every failed login and/or prevent brute forcing altogether. Not a good idea for brute forcing !"
|
||||||
puts '[?] Do you want to start the brute force anyway ? [y/n]'
|
print '[?] Do you want to start the brute force anyway ? [y/n] '
|
||||||
|
|
||||||
bruteforce = false if Readline.readline !~ /^y/i
|
bruteforce = false if Readline.readline !~ /^y/i
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user