Testing db stuff

This commit is contained in:
erwanlr
2014-09-10 17:08:12 +02:00
parent 99837127a6
commit 1b377dd674
5 changed files with 6 additions and 8 deletions

2
.gitignore vendored
View File

@@ -1,6 +1,6 @@
cache cache
coverage coverage
#data/*_vulns.json data/*_vulns.json
.bundle .bundle
.DS_Store .DS_Store
.DS_Store? .DS_Store?

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -39,10 +39,6 @@ def main
# Check for updates # Check for updates
if wpscan_options.update if wpscan_options.update
puts 'Updating the DB ...'
DbUpdater.new(DATA_DIR).update
puts 'Done.'
if !@updater.nil? if !@updater.nil?
if @updater.has_local_changes? 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] " print "#{red('[!]')} Local file changes detected, an update will override local changes, do you want to continue updating? [y/n] "
@@ -53,6 +49,11 @@ def main
puts '[i] Svn / Git not installed, or wpscan has not been installed with one of them.' puts '[i] Svn / Git not installed, or wpscan has not been installed with one of them.'
puts "#{red('[!]')} Update aborted" puts "#{red('[!]')} Update aborted"
end end
puts 'Updating the DB ...'
DbUpdater.new(DATA_DIR).update
puts 'Done.'
exit(0) exit(0)
end end