Last active
December 15, 2015 18:58
-
-
Save parsons-Jsr/5307411 to your computer and use it in GitHub Desktop.
Secret Chrome Terminal FINAL:
Batch script that decrypts a portable version of Google chrome, runs it, then re-encrypts after session is over. v2 allows for line breaks in script as well as custom user paths. REQUIRES AXCRYPT AND GOOGLE CHROME PORTABLE
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
@echo off | |
REM JSRP GOOGLE CHROME PORTABLE WITH AXCRYPT ENCRYPTION SETUP SCRIPT | |
REM USER INSTALL PATHS (CHANGE IF CUSTOM INSTALL) | |
set axcryptInstallPath=Axcrypt | |
set chromePortablePath=GoogleChromePortable | |
IF EXIST %chromePortablePath%/GoogleChromePortable.exe echo NOTE: THIS SCRIPT WILL NOT WORK AGAIN AFTER BEING RUN ONCE | |
IF EXIST %chromePortablePath%/GoogleChromePortable.exe echo AS SUCH PLEASE DO NOT ALTER THE CHECK BOXES WHEN ENTERING YOUR PASSWORD | |
IF EXIST %chromePortablePath%/GoogleChromePortable.exe echo AND ENSURE THE PASSWORD IS CORRECT | |
IF EXIST %chromePortablePath%/GoogleChromePortable.exe echo ... | |
IF EXIST %chromePortablePath%/GoogleChromePortable.exe echo if you desire a new password then extract a new copy (keep the zip handy) | |
IF EXIST %chromePortablePath%/GoogleChromePortable.exe echo please select a password for the encryption... | |
set s= | |
set s= %s% && cd %axcryptInstallPath% | |
set s= %s% && IF EXIST ../%chromePortablePath%/GoogleChromePortable.exe Axcrypt.exe -m -z ../%chromePortablePath%/* -t | |
set s= %s% && echo encryption complete!...Please run run.bat to use program | |
set s= %s% && pause | |
IF EXIST ../%chromePortablePath%/GoogleChromePortable.exe cmd.exe /k "%s%" |
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
Google chrome portable w/ Automatic axcrypt encryption | |
DO NOT FORCE THE COMMAND WINDOWS TO QUIT AT ANY TIME, | |
ESPECIALLY WHEN THE BROWSER IS RUNNING AS THIS MAY STOP THE BROWSER FROM BEING ENCRYPTED UNTIL THE NEXT RUN! | |
1. Run FIRSTSETUP.bat to set a password. pay attention to the warnings in the command window | |
2. This setup script should not work once used | |
(if you want a new password its best to extract a new copy from the zip so keep the zip handy!) | |
3. Create a shortcut (recommended for ease of use) or use the run.bat to run the program. | |
4. Enter the password and wait for the chrome window to appear | |
5. After you're done with the session close the google chrome window and wait | |
6. The command window will close when the re-encryption is complete (takes 5-20 seconds depending on cpu and hdd speed) | |
ENJOY ENCRYPTED BROWSING |
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
@echo off | |
REM JSRP GOOGLE CHROME PORTABLE WITH AXCRYPT ENCRYPTION SCRIPT | |
REM USER INSTALL PATHS (CHANGE IF CUSTOM INSTALL) | |
set axcryptInstallPath=Axcrypt | |
set chromePortablePath=GoogleChromePortable | |
REM DO NOT NOT CHANGE CODE BELOW THIS LINE | |
REM -------------------------------------------------------------------------- | |
REM TITLE | |
set s= | |
set s= %s% && echo ####################################### | |
set s= %s% && echo JSRP Secret Chrome Encryption Terminal | |
set s= %s% && echo ####################################### | |
REM CHANGE DIRECTORY TO AXCRYPTS AND APPLY DECTRYPTION TO SPECIFIED DIRECTORY | |
set s= %s% && echo Secret Google Chrome Portable Decrypting | |
set s= %s% && cd %axcryptInstallPath% | |
set s= %s% && Axcrypt -b 2 -m -f -d ../%chromePortablePath%\*.axx | |
REM OPEN CHROME ONCE DECRYPTED AND WAIT FOR PROGRAM TO KILL | |
set s= %s% && echo Decrypting complete! Opening Chrome... | |
set s= %s% && IF EXIST ../%chromePortablePath%\GoogleChromePortable.exe START /w ../%chromePortablePath%\GoogleChromePortable.exe | |
REM REENCRYPT PROGRAM AFTER IT IS KILLED THEN QUIT | |
set s= %s% && echo Secret Chrome closed. Please wait while it is reencrypted... | |
set s= %s% && IF EXIST ../%chromePortablePath%/GoogleChromePortable.exe Axcrypt.exe -m -z ../%chromePortablePath%/* -t | |
set s= %s% && exit | |
REM RUNS ABOVE LONG STRING | |
cmd.exe /k "%s%" | |
REM AXCRYPT ARGUMENTS BELOW (FOR REFERENCE) | |
REM -m (recursive), -d (decrypt), -b (use cached password), -f(fast mode), -z(encrypt), -t(destroy cached password) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment