Skip to content

Instantly share code, notes, and snippets.

@UpcraftLP
Last active October 21, 2022 03:10
Show Gist options
  • Save UpcraftLP/d80c78636df8ae70cf20ae207b85f2c9 to your computer and use it in GitHub Desktop.
Save UpcraftLP/d80c78636df8ae70cf20ae207b85f2c9 to your computer and use it in GitHub Desktop.
replace the windows cmd greeter with a more appealing one. Installation instructions see below.
::disable command feedback
@echo off
::all varables are local now, and expanded at execution time ratehr than at parse time.
setlocal enabledelayedexpansion
::set text color to magenta
echo 
::clear the CMD greeter
cls
::how many title lines we have
set /a lineCount = 34
::how many of those are considered "special" (must be the first ones)
set /a specialLineCount = 13
::populate the title array
::special
set string[0]=Always leave yourself a back door.
set string[1]=It seems you like these little games... Why don't we play a real one?
set string[2]=If you hold the information, you hold all the cards.
set string[3]=Just squishing a bug.
set string[4]=You're just a glitch in the system.
set string[5]=Where's the fun in playing fair?
set string[6]=Looks like I have time to do some research.
set string[7]=I'm guessing there's no chance we can take care of this quietly, is there?
set string[8]=Everything can be hacked... and everyone.
set string[9]=Hack the planet.
set string[10]=So many targets, so little time.
set string[11]=Reboot and try again.
set string[12]=We all make mistakes.
::regular
set string[13]=Initiating the hack..
set string[14]=Let's get started..
set string[15]=I might need this later.
set string[16]=Translocating..
set string[17]=I'm out of here.
set string[18]=Turning off the lights!
set string[19]=EMP activated!
set string[20]=You caught me off guard.
set string[21]=Time to start over.
set string[22]=Could have gone better.
set string[23]=Let's try that again.
set string[24]=Feeling much better.
set string[25]=You have good taste.
set string[26]=That's the way I like it.
set string[27]=Let's go!
set string[28]=I don't think they got the hint.
set string[29]=Guess they haven't had enough.
set string[30]=If I'm fighting, you're fighting, too.
set string[31]=I know what I'm doing.
set string[32]=I'm on a roll. Get out of my way!
set string[33]=You're taking this very seriously.
::select a random index for title
set /a idx = %random% %% %lineCount%
:subtitle
set /a idx2 = %random% %% %specialLineCount%
IF %idx% == %idx2% (
GOTO :subtitle
)
::set the title from the array
title !string[%idx%]!
::display the skull
echo :PB@Bk:
echo ,jB@@B@B@B@BBL.
echo 7G@B@B@BMMMMMB@B@B@Nr
echo :kB@B@@@MMOMOMOMOMMMM@B@B@B1,
echo :5@B@B@B@BBMMOMOMOMOMOMOMM@@@B@B@BBu.
echo 70@@@B@B@B@BXBBOMOMOMOMOMOMMBMPB@B@B@B@B@Nr
echo G@@@BJ iB@B@@ OBMOMOMOMOMOMOM@2 B@B@B. EB@B@S
echo @@BM@GJBU. iSuB@OMOMOMOMOMOMM@OU1: .kBLM@M@B@
echo B@MMB@B 7@BBMMOMOMOMOMOBB@: B@BMM@B
echo @@@B@B 7@@@MMOMOMOMM@B@: @@B@B@
echo @@OLB. BNB@MMOMOMM@BEB rBjM@B
echo @@ @ M OBOMOMM@q M .@ @@
echo @@OvB B:u@MMOMOMMBJiB .BvM@B
echo @B@B@J 0@B@MMOMOMOMB@B@u q@@@B@
echo B@MBB@v G@@BMMMMMMMMMMMBB@5 F@BMM@B
echo @BBM@BPNi LMEB@OMMMM@B@MMOMM@BZM7 rEqB@MBB@
echo B@@@BM B@B@B qBMOMB@B@B@BMOMBL B@B@B @B@B@M
echo J@@@@PB@B@B@B7G@OMBB. ,@MMM@qLB@B@@@BqB@BBv
echo iGB@,i0@M@B@MMO@E : M@OMM@@@B@Pii@@N:
echo . B@M@B@MMM@B@B@B@MMM@@@M@B
echo @B@B.i@MBB@B@B@@BM@::B@B@
echo B@@@ .B@B.:@B@ :B@B @B@O
echo :0 r@B@ B@@ .@B@: P:
echo vMB :@B@ :BO7
echo ,B@B
echo.
::actual greeter
echo !string[%idx2%]!
::reset text color and get some space between the text and the cursor
echo 
::restore global variables
endlocal
@UpcraftLP
Copy link
Author

Installation instructions: copy the code to a file named init.cmd in your user home, then execute this code snippet from cmd ONCE:
reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun ^ /t REG_EXPAND_SZ /d "%"USERPROFILE"%\init.cmd" /f
(needs to be run as administrator)

@nvb-uy
Copy link

nvb-uy commented Oct 21, 2022

This is amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment