From 2eb2d332ac71e602f80cb2c94635432984f03a33 Mon Sep 17 00:00:00 2001 From: yourworstnightmare_ <134671973+yourworstnightmare1@users.noreply.github.com> Date: Sun, 19 May 2024 01:31:06 -0500 Subject: [PATCH] ReBlock v1.0w Source Code --- .../appunblocker/v2.0w/appunblocker.ps1 | 100 +++++++++ .../appunblocker/v2.0w/scripts/script.bat | 72 +++++++ reblockmain.ps1 | 189 ++++++++++++++++++ 3 files changed, 361 insertions(+) create mode 100644 plugins/reblock/appunblocker/v2.0w/appunblocker.ps1 create mode 100644 plugins/reblock/appunblocker/v2.0w/scripts/script.bat create mode 100644 reblockmain.ps1 diff --git a/plugins/reblock/appunblocker/v2.0w/appunblocker.ps1 b/plugins/reblock/appunblocker/v2.0w/appunblocker.ps1 new file mode 100644 index 0000000..4c7363c --- /dev/null +++ b/plugins/reblock/appunblocker/v2.0w/appunblocker.ps1 @@ -0,0 +1,100 @@ +# appUnblocker created by yourworstnightmare1 +# GitHub: https://github.com/yourworstnightmare1/appunblocker + +Write-Host "Loading..." -ForegroundColor Yellow +Write-Host "Setting variables..." + +$iconappUnblocker = " + ============================== + ==================================== + ====================================== + ======================================== + ===================-::-=================== + ================:....... :================ + =============:...:======:...:============= + ===========. .============. .-========== + =========- .-================-. :========= + =========- .-================-. :========= + ==========-.. :============:...-========== + ============-. .:======-.. .-============ + +=========-.. :-: ........-: ..-=========+ + +++++++++: .-+++++=:..:-+++++-. -+++++++++ + +++++++++: .-=++++++++++++++=-. -+++++++++ + ++++++++++=...:=++++++++++=.. .=++++++++++ + ++++++++++++=:. .-=++++=:...:=++++++++++++ + +++++++++++++++=: ...... :=+++++++++++++++ + ++++++++++++++++++=-::-=++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++ +" + +$iconError = " + ####* *#### + +#######- =#######+ + ###########. .###########. + ############ ############ + ############ ############ + .############ ############ + =###########* *###########- + ######################## + #################### + ################ + -############: + ################ + #################### + =######################= + .############ ############. + ############ ############ + ############ ############ + ############. .############ + ###########= =###########. + ########+ *######## + ##### ##### +" + +Write-Host "Getting version info..." + +# appUnblocker Info +$appname = "appUnblocker" +Write-Host "Application name: $appname" +$packagename = "com.reblockprojections.appunblocker.01" +Write-Host "Package name: $packagename" +$version = "v2.0w-dev" +Write-Host "Application version: $version" +$build = "2" +Write-Host "Build: $build" +$compilationdate = "2024/5/14 @ 11:40:34 PM CDT" +Write-Host "Compilation date: $compilationdate" +$interface = "CLI" +Write-Host "UI: $interface" +$shell = "powershell (ps)" +Write-Host "Shell: $shell" + +Write-Host "Completed loading. Beam me up, console!" -ForegroundColor green +Clear-Host + +Write-Host "$iconappUnblocker" -ForegroundColor Red +Write-Host "Welcome to appUnblocker!" -ForegroundColor Red +Write-Host "Version: $version | Build: $build" -ForegroundColor Yellow +Write-Host "Created & Programmed by yourworstnightmare1" +Write-Host "___________________________________________" +Write-Host "Press any key to continue with the exploit..." +Write-Host "`n" +Pause +Clear-Host +Write-Host "[SUCCESS] Started appUnblocker" -ForegroundColor Green +Write-Host "[INFO] Changing directory of PowerShell terminal to current terminal's directory..." +Set-Location .\plugins\reblock\appunblocker\v2.0w\ +$CurrentLocation = Get-Location +Write-Host "[SUCCESS] Successfully changed directory of PowerShell terminal to $CurrentLocation" -ForegroundColor Green +Write-Host "[INFO] Changing directory of PowerShell terminal to $CurrentLocation\scripts..." +Set-Location scripts +$CurrentLocation = Get-Location +Write-Host "[SUCCESS] Successfully changed directory of PowerShell terminal to $CurrentLocation" -ForegroundColor Green +Write-Host "[INFO] Starting new process "script.exe" inside $CurrentLocation\script.bat..." +Start-Process "script.exe" +Write-Host "[SUCCESS] Successfully started new process "script.exe" with Command Prompt" -ForegroundColor Green +Write-Host "[INFO] Exiting current PowerShell session..." -ForegroundColor Red +Exit-PSSession \ No newline at end of file diff --git a/plugins/reblock/appunblocker/v2.0w/scripts/script.bat b/plugins/reblock/appunblocker/v2.0w/scripts/script.bat new file mode 100644 index 0000000..a762b60 --- /dev/null +++ b/plugins/reblock/appunblocker/v2.0w/scripts/script.bat @@ -0,0 +1,72 @@ +: This is the script for appUnblocker which unblocks the application. This cannot be run properly without its prerequisite appunblocker-main.ps1. +: This is a development build / raw compilation of this file. The final application is an executable and not a batch file. +@echo off +title script.bat - appUnblocker for Windows by yourworstnightmare1 +color 4 +cls + +echo ============================== +echo ==================================== +echo ====================================== +echo ======================================== +echo ===================-::-=================== +echo ================:....... :================ +echo =============:...:======:...:============= +echo ===========. .============. .-========== +echo =========- .-================-. :========= +echo =========- .-================-. :========= +echo ==========-.. :============:...-========== +echo ============-. .:======-.. .-============ +echo +=========-.. :-: ........-: ..-=========+ +echo +++++++++: .-+++++=:..:-+++++-. -+++++++++ +echo +++++++++: .-=++++++++++++++=-. -+++++++++ +echo ++++++++++=...:=++++++++++=.. .=++++++++++ +echo ++++++++++++=:. .-=++++=:...:=++++++++++++ +echo +++++++++++++++=: ...... :=+++++++++++++++ +echo ++++++++++++++++++=-::-=++++++++++++++++++ +echo ++++++++++++++++++++++++++++++++++++++++ +echo ++++++++++++++++++++++++++++++++++++++ +echo ++++++++++++++++++++++++++++++++++++ +echo ++++++++++++++++++++++++++++++ +echo ______________________________________________ +echo Before we begin, we need to know some things in order to continue. +echo: +echo Please type in the directory of your application, or simply drag it in. If the directory has spaces, add a quotation to the beginning and end of the directory (example: C:\Users\joe\Downloads\VisualStudioSetup). +set /p application= +echo [%time% ^| INFO] Running compatability layer script... +set __COMPAT_LAYER=RunAsInvoker +start %application% +if errorlevel ==1 ( + color 4 + cls + echo ####* *#### + echo +#######- =#######+ + echo ###########. .###########. + echo ############ ############ + echo ############ ############ + echo .############ ############ + echo =###########* *###########- + echo ######################## + echo #################### + echo ################ + echo -############: + echo ################ + echo #################### + echo =######################= + echo .############ ############. + echo ############ ############ + echo ############ ############ + echo ############. .############ + echo ###########= =###########. + echo ########+ *######## + echo ##### ##### + echo A critical error has occurred. + echo ______________________________ + echo Failed to execute application with path %application% as invoker using compatability layer script. The file may be missing or corrupt. + echo Consider reinstalling your application. + echo Press any key to exit appUnblocker. + pause > nul: + exit +) +echo [%time% ^| SUCCESS] Executed application successfully! +exit \ No newline at end of file diff --git a/reblockmain.ps1 b/reblockmain.ps1 new file mode 100644 index 0000000..8408f40 --- /dev/null +++ b/reblockmain.ps1 @@ -0,0 +1,189 @@ +# ReBlock created by yourworstnightmare1 +# GitHub: https://github.com/yourworstnightmare1/ReBlock + +Write-Host "Loading..." -ForegroundColor yellow +Write-Host "Setting variables..." + +# CLI Icons +$iconReBlock = " + ============================= + ================================== + ====================================== + ======================================== + ===========================--============= + =======================:........-========= + ======================..-======:.:======== + =====================:.-=======+..-======= + =====================..=========: -======= + =====================..=========: -======= + =========::::..........:=========:======== + =======-. .=======+++======+ + =====++- =====+++++======+ + +++++++- =++++++++++++++++ + +++++++- =++++++++++++++++ + +++++++- =++++++++++++++++ + +++++++- =++++++++++++++++ + +++++++=. .=++++++++++++++++ + +++++++++--------------=++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++++++++ + ++++++++++++++++++++++++++++ +" + +$iconLoading = " + KGV + MAADTZ + ZLAAAAARZ + ZODAAAAAAAAACY + YIAAAABFAAAAANZ ZOX + ZNAAAAJZ SAAAHX QAAALZ + ZFAAAIZ TADV ZFAAAEZ + ZIAAAO VR OAAAHZ + UAAAK KAAAT + HAAC BAAH + CAAG HAAB + DAAG GAAC + LAAAX YAAAK + XBAACZ FAABV + ZOAAAG YGR JAAAMZ + RAAAAQZ ZMAAQ TCAAAO + VCABV TCAAAPZRBAAABU + ZYZ WEAAAAAAAAAAASZ + YHAAAAAAAADNWZ + YJAAAAM + NBAK +" + +$iconWarning = " + ... + ..... + ........ + .... .... + .... .... + ...... ...... + ....... ....... + ........ ........ + ......... ......... + .......... .......... + ........... ........... + ............ ............ + .............. .............. + ............................... + ............... ............... + ................ ................ + ..................................... + ....................................... +" + +$iconError = " + ####* *#### + +#######- =#######+ + ###########. .###########. + ############ ############ + ############ ############ + .############ ############ + =###########* *###########- + ######################## + #################### + ################ + -############: + ################ + #################### + =######################= + .############ ############. + ############ ############ + ############ ############ + ############. .############ + ###########= =###########. + ########+ *######## + ##### ##### +" + +$iconSuccess = " + === + ======= + =========== + ============ + =========== + =========== + =========== + ==== ============ + ======== ============ + ============ ============ + ============= ============ + ======================= + =================== + =============== + =========== + ======== + ==== +" + +Write-Host "Getting version info..." + +# ReBlock Info +$appname = "ReBlock" +$packagename = "com.reblockprojections.main.01" +$version = "v1.0w-dev" +$build = "7" +$compliationdate = "2024/5/10 @ 8:00:20 PM CDT" +$interface = "CLI" +$shell = "powershell (ps)" + +Write-Host "Completed loading. Beam me up, console!" -ForegroundColor green +Clear-Host + +Write-Host "$iconReBlock" -ForegroundColor red +Write-Host "Welcome to ReBlock!" -ForegroundColor red +Write-Host "Version: $version | Build: $build" -ForegroundColor yellow +Write-Host "Created & Programmed by yourworstnightmare1" + +$Title = "Select any option to continue." +$Prompt = "Press the key correlating to the letter next to the option to choose it." +$Choices = [System.Management.Automation.Host.ChoiceDescription[]] @("&Tool Select", "&Exit") +$Default = 0 + +# Prompt for the choice +$Choice = $host.UI.PromptForChoice($Title, $Prompt, $Choices, $Default) + +# Action based on the choice +switch($Choice) +{ + 0 { + Clear-Host + Write-Host "TOOL SELECT" -ForegroundColor yellow + Write-Host "_______________________________________________________________________________________________________" -BackgroundColor Red -ForegroundColor Red + Write-Host "1 | ReBlock for Windows | v1.0w | The main application for ReBlock | ps, batch" + Write-Host "2 | appUnblocker for Windows | v2.0w | Unblock executable applications with UAC prompt | batch" + Write-Host "________________________________________________________________________________________________________" -BackgroundColor Red -ForegroundColor Red + + $Title = "Select any option to continue." + $Prompt = "Press the key correlating to the number next to the option to choose it." + $Choices = [System.Management.Automation.Host.ChoiceDescription[]] @("&1", "&2") + $Default = 0 + + # Prompt for the choice + $Choice = $host.UI.PromptForChoice($Title, $Prompt, $Choices, $Default) + + # Action based on the choice + switch($Choice) + { + 0 { + Write-Host "Starting ReBlock for Windows, please wait..." -ForegroundColor yellow + Write-Host "$iconLoading" -ForegroundColor yellow + Start-Process reblockmain.exe + Exit-PSSession + } + 1 { + Write-Host "Starting appUnblocker for Windows, please wait..." -ForegroundColor yellow + Write-Host "$iconLoading" -ForegroundColor yellow + Set-Location . + Start-Process plugins/reblock/appunblocker/v2.0w/appunblocker.exe + Exit-PSSession + } + + + } + } +}