We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c41c7a1 commit 005c36bCopy full SHA for 005c36b
modules/auxiliary/scanner/http/influxdb_enum.rb
@@ -54,12 +54,16 @@ def run
54
print_error("#{peer} - Failed to authenticate. Invalid username/password.")
55
return
56
elsif res.code == 200 && res.headers.include?('X-Influxdb-Version') && res.body.length > 0
57
- print_status('Enumerating...')
+ print_status("#{peer} - Enumerating...")
58
begin
59
temp = JSON.parse(res.body)
60
+ if temp.blank?
61
+ print_status("#{peer} - Json data is empty")
62
+ return
63
+ end
64
results = JSON.pretty_generate(temp)
65
rescue JSON::ParserError
- print_error('Unable to parse JSON data.')
66
+ print_error("#{peer} - Unable to parse JSON data.")
67
68
end
69
print_good("Found:\n\n#{results}\n")
0 commit comments