Skip to content

Commit

Permalink
include comment about title regex
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrichgolf committed Oct 7, 2024
1 parent 2cf1cf0 commit 6fcd424
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/exploits/linux/http/projectsend_unauth_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def check
'uri' => normalize_uri(datastore['TARGETURI'], 'index.php')
})

# The title will always contain "»" ("»") regardless of localization. For example: "Log in » ProjectSend"
title_regex = %r{<title>.*?&raquo;\s+(.*?)</title>}
original_title = res.body[title_regex, 1]

Expand Down

0 comments on commit 6fcd424

Please sign in to comment.