Skip to content

Commit 96fe693

Browse files
committed
update drupal regex
1 parent 01daadc commit 96fe693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/multi/http/drupal_drupageddon.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def sql_make_user_admin(user)
126126
end
127127

128128
def extract_form_ids(content)
129-
form_build_id = $1 if content =~ /name="form_build_id" value="(.+)" \/>/
130-
form_token = $1 if content =~ /name="form_token" value="(.+)" \/>/
129+
form_build_id = $1 if content =~ /name="form_build_id" value="(.+?)"/
130+
form_token = $1 if content =~ /name="form_token" value="(.+?)"/
131131

132132
vprint_debug("#{peer} - form_build_id: #{form_build_id}")
133133
vprint_debug("#{peer} - form_token: #{form_token}")

0 commit comments

Comments
 (0)