-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
' 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" |