Clean up wording
This commit is contained in:
@@ -9,7 +9,7 @@ class WpUsers < WpItems
|
|||||||
# @return [ void ]
|
# @return [ void ]
|
||||||
def output(options = {})
|
def output(options = {})
|
||||||
rows = []
|
rows = []
|
||||||
headings = ['Id', 'Login', 'Name']
|
headings = ['ID', 'Login', 'Name']
|
||||||
headings << 'Password' if options[:show_password]
|
headings << 'Password' if options[:show_password]
|
||||||
|
|
||||||
remove_junk_from_display_names
|
remove_junk_from_display_names
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class DbUpdater
|
|||||||
def update(verbose = false)
|
def update(verbose = false)
|
||||||
FILES.each do |filename|
|
FILES.each do |filename|
|
||||||
begin
|
begin
|
||||||
puts "[+] Checking #{filename}" if verbose
|
puts "[+] Checking: #{filename}" if verbose
|
||||||
db_checksum = remote_file_checksum(filename)
|
db_checksum = remote_file_checksum(filename)
|
||||||
|
|
||||||
# Checking if the file needs to be updated
|
# Checking if the file needs to be updated
|
||||||
|
|||||||
@@ -116,10 +116,9 @@ def main
|
|||||||
# Check for data.zip
|
# Check for data.zip
|
||||||
if has_db_zip?
|
if has_db_zip?
|
||||||
# User prompt
|
# User prompt
|
||||||
print '[?] Use the latest on-line database? Or use the off-line version? [O]n-line O[f]f-line [A]bort, default: [O] > '
|
print '[?] Use the latest on-line database? Or use the off-line copy? [O]n-line O[f]f-line [A]bort update, default: [O] > '
|
||||||
if (input = Readline.readline) =~ /^a/i
|
if (input = Readline.readline) =~ /^a/i
|
||||||
puts 'Scan aborted'
|
puts 'Update aborted'
|
||||||
exit(1)
|
|
||||||
elsif input =~ /^f/i
|
elsif input =~ /^f/i
|
||||||
online_update = false
|
online_update = false
|
||||||
end
|
end
|
||||||
@@ -310,9 +309,11 @@ def main
|
|||||||
spacer()
|
spacer()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Test to see if MAIN API URL gives anything back
|
||||||
if wp_target.has_api?(wp_target.json_url)
|
if wp_target.has_api?(wp_target.json_url)
|
||||||
puts info("API exposed: #{wp_target.json_url}")
|
puts info("API exposed: #{wp_target.json_url}")
|
||||||
|
|
||||||
|
# Test to see if USER API URL gives anything back
|
||||||
if wp_target.has_api?(wp_target.json_users_url)
|
if wp_target.has_api?(wp_target.json_users_url)
|
||||||
puts warning("Users exposed via API: #{wp_target.json_users_url}")
|
puts warning("Users exposed via API: #{wp_target.json_users_url}")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user