File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
modules/auxiliary/scanner/elasticsearch Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ class Metasploit3 < Msf::Auxiliary
13
13
14
14
def initialize ( info = { } )
15
15
super ( update_info ( info ,
16
- 'Name' => 'ElasticSearch Indeces Enumeration Utility' ,
16
+ 'Name' => 'ElasticSearch Indices Enumeration Utility' ,
17
17
'Description' => %q{
18
- This module enumerates ElasticSearch Indeces . It uses the REST API
18
+ This module enumerates ElasticSearch Indices . It uses the REST API
19
19
in order to make it.
20
20
} ,
21
21
'Author' =>
@@ -36,7 +36,7 @@ def peer
36
36
end
37
37
38
38
def run_host ( ip )
39
- vprint_status ( "#{ peer } - Querying indeces ..." )
39
+ vprint_status ( "#{ peer } - Querying indices ..." )
40
40
begin
41
41
res = send_request_raw ( {
42
42
'uri' => '/_aliases' ,
@@ -66,10 +66,10 @@ def run_host(ip)
66
66
:name => 'elasticsearch'
67
67
)
68
68
69
- indeces = [ ]
69
+ indices = [ ]
70
70
71
71
json_body . each do |index |
72
- indeces . push ( index [ 0 ] )
72
+ indices . push ( index [ 0 ] )
73
73
report_note (
74
74
:host => rhost ,
75
75
:port => rport ,
@@ -80,8 +80,8 @@ def run_host(ip)
80
80
)
81
81
end
82
82
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 ( ", " ) } " )
85
85
end
86
86
87
87
end
You can’t perform that action at this time.
0 commit comments