Login Register






Batch codes for beginners filter_list
Author
Message
Batch codes for beginners #1
Open a program or website

Code:
start

example:
Code:
start notepad

Code:
start www.hackcommunity.com











Loop ( repeat )

Code:
x: goto x

Note: you can replace x with anything you want.

example:

Code:
@echo off :loop start notepad goto loop







Copy a file

Code:
cd ( path location) copy 1.bmp copied.bmp
Note: you can replace 1.bmp with anything you like! just remember, after 1.bmp add a space and add the desired name for the copied file and its extension. as for cd you can like use C:\ or D:\ or E:\New Folder\file.txt


example:
Code:
@echo off cd C:\ copy myfpicture.jpg copied.jpg







Kill a process

Code:
taskkill ( process name) tskill ( process name )


example:
Code:
@echo off taskkill explorer.exe
Code:
@echo off tskkill explorer.exe












Delete a file

Code:
cd ( path location) del 6.txt
Note: you can replace 2.txt with anything you like.


example:
Code:
@echo off cd C:\ del mypicture.jpg









Add to registry

Code:
reg add ( your registry path and value setting )


example:

Code:
REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDriveTypeAutoRun /t REG_DWORD /d 1


Note: REG_DWORD is a registry type so don't change that!^_^'





btw i could post alot more but they were kinda dangerous ^_^'Biggrin ( of those bb pc types :8-s: )

( this was not leeched or copied elsewhere :wink: )

btw edit and added process kill for prophet =]


hope you liked it Biggrin
(This post was last modified: 12-05-2010, 09:30 PM by Skullmeat.)
Pierce the life fibers with your drill.

Reply

RE: Batch codes for beginners #2
Nice, will refer too when using batch. Excellent post. Could you post more .bat like AV Kill and things of that nature? Using a .bat to .exe converter, then decompiling the source to add those functions into your viruses code could prove to be very useful. That is one thing I have been interested in tweaking around a little bit with so all of these $400 worm kit spreading tool things will die. Once people see that they can do AV Kill, add to startup, registry and all that bullshit in .bat then use a converter and accomplish the same goal, I think that would be very useful.
Even if on the slightest you take a smidget
Or dare touch my revenue I slice you with the razor, quit it
Icey till I make it frigid... (BURRRR)...
The laws of physics says it's getting cold...
My money taller than a hall of midgets

-Busta Rhymes

Reply

RE: Batch codes for beginners #3
that is right. batch is very powerful and can replace expensive tricking worms that many fake hackers scam to people. for decompiling a batch converted .exe you need to know how its compiled =]
that is the hard part but im working on it :wink:
Pierce the life fibers with your drill.

Reply

RE: Batch codes for beginners #4
nice tut dude !! thanks for share !!!!!!!!!!!
too short

Reply

RE: Batch codes for beginners #5
Great tut, but idd, too short. U should add all of them..
It's great for newbies who want to mess around with enemies Smile

Reply

RE: Batch codes for beginners #6
Really great tutorial. Simple to understand and great examples.

Reply

RE: Batch codes for beginners #7
glad all of you liked it Biggrin

sure will add some more when im in the Batch mood Tongue
Pierce the life fibers with your drill.

Reply

RE: Batch codes for beginners #8
Is there anyway you can make the loop only go a certain number of times?
Even if on the slightest you take a smidget
Or dare touch my revenue I slice you with the razor, quit it
Icey till I make it frigid... (BURRRR)...
The laws of physics says it's getting cold...
My money taller than a hall of midgets

-Busta Rhymes

Reply

RE: Batch codes for beginners #9
Very informative.

Reply

RE: Batch codes for beginners #10
@prophet
might be possible but not that i'm aware of Biggrin
Pierce the life fibers with your drill.

Reply