Removes the source code updaters
This commit is contained in:
18
wpscan.rb
18
wpscan.rb
@@ -33,7 +33,7 @@ def main
|
||||
end
|
||||
|
||||
if wpscan_options.version
|
||||
puts "Current version: #{version}"
|
||||
puts "Current version: #{WPSCAN_VERSION}"
|
||||
exit(0)
|
||||
end
|
||||
|
||||
@@ -49,22 +49,6 @@ def main
|
||||
puts 'Done.'
|
||||
end
|
||||
|
||||
# Check for updates
|
||||
if wpscan_options.update
|
||||
if !@updater.nil?
|
||||
if @updater.has_local_changes?
|
||||
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')
|
||||
end
|
||||
puts @updater.update()
|
||||
else
|
||||
puts '[i] Svn / Git not installed, or wpscan has not been installed with one of them.'
|
||||
puts "#{red('[!]')} Update aborted"
|
||||
end
|
||||
|
||||
exit(0)
|
||||
end
|
||||
|
||||
unless wpscan_options.url
|
||||
raise 'The URL is mandatory, please supply it with --url or -u'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user