Wpstools : update moved to the beginning (was at the end)
This commit is contained in:
18
wpstools.rb
18
wpstools.rb
@@ -91,6 +91,15 @@ begin
|
||||
end
|
||||
end
|
||||
|
||||
if @update
|
||||
unless @updater.nil?
|
||||
puts @updater.update()
|
||||
else
|
||||
puts "Svn / Git not installed, or wpscan has not been installed with one of them."
|
||||
puts "Update aborted"
|
||||
end
|
||||
end
|
||||
|
||||
if @generate_plugin_list
|
||||
puts "[+] Generating new most popular plugin list"
|
||||
puts
|
||||
@@ -170,15 +179,6 @@ begin
|
||||
end
|
||||
end
|
||||
|
||||
if @update
|
||||
unless @updater.nil?
|
||||
puts @updater.update()
|
||||
else
|
||||
puts "Svn / Git not installed, or wpscan has not been installed with one of them."
|
||||
puts "Update aborted"
|
||||
end
|
||||
end
|
||||
|
||||
rescue => e
|
||||
puts "[ERROR] #{e.message}"
|
||||
puts "Trace :"
|
||||
|
||||
Reference in New Issue
Block a user