Skip to content

Commit

Permalink
Added comments in Byp4.vbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrwcube committed Aug 19, 2024
1 parent 5fce042 commit b5f5758
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions Byp4.vbs
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"

0 comments on commit b5f5758

Please sign in to comment.