batchfile:shutdown on login
Hey, im just curiouse if it is possible to make a batch file, that is set to AUTOEXEC.bat so that t automatically executes on login, then can force shutdown the computer, just curious how you could do that, ive tried some things, just to mess around, i just think it would be really annoying to someone if put on there computer, good little prank, lol, anyhow, just seekin some info.
sure it is…
you can add text from one batch file,to another one.
so you have this little nice batch virus,let's call it X. :D
if you would execute this syntax: copy X.bat + c:\autoexec.bat you're done.
it adds the text from your virus TO autoexec.bat,while all existing L.O.C. stay intact. from both files.you can have lot's of fun with batch…it can be pretty uhm… well…dangerous in wrong hands….
hope this helps you out.
peace.
I would rather advise you do this:
ECHO Lines to be added >> %HOMEDRIVE%\autoexec.bat
ECHO Lines to be added >> %HOMEDRIVE%\autoexec.bat```
Which will add 'lines to be added' to the file autoexec.bat (it adds the lines at the bottom of file, without deleting previous content). You should use %HOMEDRIVE% instead of C: because some people don't have C: as their system root ;)
Finally, I think it would be much more effective to add the virus as an .exe file which will be run from the registry than using autoexec.bat
Peace B)
Thank's guy's so i know how to auto execute it so it goes on login, so the rest i guess i just do markup shutdown -s -f -c "message" So it forces shutdown and leaves a message.Im just experimenting with batch a bit, so if anyone know's any sites where there's some good example batch file scripts and virus scripts that would be cool.,later people