Batch!preparation time=0.5-10 minutes
arrange time= 10-30 seconds
x-time= when executed, on startup, or after a desired time.(see step 4)
Batch is a good thing. You could send someone a message over the LAN, make the victim think there is a virus and even shut down someone's computer!
here are some commands:
@echo off ( @echo on)
makes the commands hide (or show). Put this at the beginning of your batch file.
displays the word "something" in the cmd window, use the "pause" or "ping localhost" command for the victim to be able to read it.
makes the program pause and wait for you to press any key displaying the message "press any key to continue..."
ping localhost -n(time in seconds)>nul
this is used to make a pause for some desired time in seconds
msg * (anything)
displays a dialog window with an "ok" button and a message "anything"
overwrites the file "filename.ext" with output of the command. If the file doesnt exist, it creates the file and writes to it
the same as the previous one, but it adds the output to the file instead of overwriting it.
stops the output of the command from showing
deletes the file "filename.ext" in "fullfilepath"
shutdown -(type) -f -t (time_in_seconds) -c "(message)"
shuts the computer down or restarts it depending on what "type" is (s for shutdown, r for restart) in "time_in_seconds" after activation (if you set it to 0, it will shut down immediately), forcing all the applications to close and leaving a message "message" (you could make it shut down without leaving the message by not typing " -c (message) ")
aborts the shutdown
makes a new cmd window
opens the file "filename.ext" in "fullfilepath"
opens the instructables home page in the default browser
using these commands, write a file in notepad(each command on a new line)
and save as something.bat
(don't forget to select "all types" in the lower bar or the file will be saved as "something.bat.txt")
if you want to, you can convert it to *.exe format using the downloadable bat to exe converter or the online bat to exe converter.
if you are using only the commands that do not require victim interaction or viewing the cmd, you can make the app invisible (so the victim doesn't see the command prompt window)
Also, if you want to learn some more, there is plenty of instructables on batch.
I found this from online! there is an instrucable on this
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.