Removes the source code updaters

This commit is contained in:
erwanlr
2014-09-17 16:01:41 +02:00
parent ea36c79c26
commit c31a06e255
12 changed files with 6 additions and 364 deletions

View File

@@ -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