From b5f5758cef9a2189b98395d754e3a77d516730d0 Mon Sep 17 00:00:00 2001 From: Andrew <150041284+ndrwcube@users.noreply.github.com> Date: Mon, 19 Aug 2024 13:20:34 +0800 Subject: [PATCH] Added comments in Byp4.vbs --- Byp4.vbs | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/Byp4.vbs b/Byp4.vbs index 8213800..0a26500 100644 --- a/Byp4.vbs +++ b/Byp4.vbs @@ -1,36 +1,47 @@ +' Create an instance of the WScript.Shell object Set objShell = CreateObject("WScript.Shell") -' Get the user's profile directory + +' Get the current user's profile directory userProfile = objShell.ExpandEnvironmentStrings("%USERPROFILE%") -' Navigate to Chrome Program Files folder +' Get the path to the Google Chrome installation directory chromePath = objShell.ExpandEnvironmentStrings("%ProgramFiles%\Google\Chrome\Application\") +' Create an instance of the FileSystemObject Set fso = CreateObject("Scripting.FileSystemObject") -fso.CreateFolder(userprofile & "\Downloads\Byp4") -' Copy everything in Chrome application folder to the Bypass directory +' Create a new directory in the user's Downloads folder named "Byp4" +fso.CreateFolder(userProfile & "\Downloads\Byp4") + +' Copy all files from the Chrome installation directory to the new "Byp4" directory objShell.Run "xcopy /s /y """ & chromePath & "*.*"" """ & userProfile & "\Downloads\Byp4\""", 0, True -' Rename chrome.exe to policytick.exe in the Bypass directory +' Define paths for the new locations of the Chrome executable and the renamed executable Set objFSO = CreateObject("Scripting.FileSystemObject") -chromeExePath = userprofile & "\Downloads\Byp4\chrome.exe" -bypExePath = userprofile & "\Downloads\Byp4\policytick.exe" +chromeExePath = userProfile & "\Downloads\Byp4\chrome.exe" +bypExePath = userProfile & "\Downloads\Byp4\policytick.exe" + +' Rename the Chrome executable to "policytick.exe" objFSO.MoveFile chromeExePath, bypExePath -' Create a shortcut for the copied Chrome executable with the flag --disable-extensions +' Create a shortcut on the desktop for the renamed Chrome executable Set objShortcut = objShell.CreateShortcut(objShell.SpecialFolders("Desktop") & "\Google Chrome.lnk") -' Construct the path to the Downloads folder +' Set the path to the new "Byp4" directory downloadsPath = userProfile & "\Downloads\Byp4" -' Set the TargetPath of the shortcut to the Downloads folder +' Set the target path of the shortcut to the renamed executable objShortcut.TargetPath = downloadsPath & "\policytick.exe" +' Add command line arguments to disable extensions objShortcut.Arguments = " --disable-extensions" objShortcut.Save -' Close all Chrome tabs +' Kill any running instances of Chrome objShell.Run "taskkill /f /im chrome.exe", 0, True -MsgBox "All Chrome tabs has been closed" -MsgBox "A Chrome shortcut has been created in your Desktop. Launch the new shortcut for the Blocksi Enterprise Edition bypass" \ No newline at end of file +' Display a message box indicating all Chrome tabs have been closed +MsgBox "All Chrome tabs have been closed" + +' Display a message box indicating the shortcut creation and usage +MsgBox "A Chrome shortcut has been created on your Desktop. Launch the new shortcut for the Blocksi Enterprise Edition bypass"