From 6fcd424b142fca6854c4404b794c8896ccf3fba2 Mon Sep 17 00:00:00 2001 From: ostrichgolf Date: Mon, 7 Oct 2024 22:32:37 +0200 Subject: [PATCH] include comment about title regex --- modules/exploits/linux/http/projectsend_unauth_rce.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/exploits/linux/http/projectsend_unauth_rce.rb b/modules/exploits/linux/http/projectsend_unauth_rce.rb index 962a6f4b271d..597f7cc402b6 100644 --- a/modules/exploits/linux/http/projectsend_unauth_rce.rb +++ b/modules/exploits/linux/http/projectsend_unauth_rce.rb @@ -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{.*?»\s+(.*?)} original_title = res.body[title_regex, 1]