Skip to content

Commit

Permalink
ReBlock v1.0w Source Code
Browse files Browse the repository at this point in the history
  • Loading branch information
yourworstnightmare1 authored May 19, 2024
1 parent fe8e73f commit 2eb2d33
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 0 deletions.
100 changes: 100 additions & 0 deletions plugins/reblock/appunblocker/v2.0w/appunblocker.ps1
Original file line number Diff line number Diff line change
@@ -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
72 changes: 72 additions & 0 deletions plugins/reblock/appunblocker/v2.0w/scripts/script.bat
Original file line number Diff line number Diff line change
@@ -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
189 changes: 189 additions & 0 deletions reblockmain.ps1
Original file line number Diff line number Diff line change
@@ -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
}


}
}
}

0 comments on commit 2eb2d33

Please sign in to comment.