Skip to content

Commit aea0379

Browse files
committed
Fix typos
1 parent 3a3d038 commit aea0379

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

modules/auxiliary/scanner/elasticsearch/indeces_enum.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ class Metasploit3 < Msf::Auxiliary
1313

1414
def initialize(info = {})
1515
super(update_info(info,
16-
'Name' => 'ElasticSearch Indeces Enumeration Utility',
16+
'Name' => 'ElasticSearch Indices Enumeration Utility',
1717
'Description' => %q{
18-
This module enumerates ElasticSearch Indeces. It uses the REST API
18+
This module enumerates ElasticSearch Indices. It uses the REST API
1919
in order to make it.
2020
},
2121
'Author' =>
@@ -36,7 +36,7 @@ def peer
3636
end
3737

3838
def run_host(ip)
39-
vprint_status("#{peer} - Querying indeces...")
39+
vprint_status("#{peer} - Querying indices...")
4040
begin
4141
res = send_request_raw({
4242
'uri' => '/_aliases',
@@ -66,10 +66,10 @@ def run_host(ip)
6666
:name => 'elasticsearch'
6767
)
6868

69-
indeces = []
69+
indices = []
7070

7171
json_body.each do |index|
72-
indeces.push(index[0])
72+
indices.push(index[0])
7373
report_note(
7474
:host => rhost,
7575
:port => rport,
@@ -80,8 +80,8 @@ def run_host(ip)
8080
)
8181
end
8282

83-
if indeces.length > 0
84-
print_good("#{peer} - ElasticSearch Indeces found: #{indeces.join(", ")}")
83+
if indices.length > 0
84+
print_good("#{peer} - ElasticSearch Indices found: #{indices.join(", ")}")
8585
end
8686

8787
end

0 commit comments

Comments
 (0)