Sinisterly
Batch codes for beginners - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Coding (https://sinister.li/Forum-Coding--71)
+--- Thread: Batch codes for beginners (/Thread-Batch-codes-for-beginners)

Pages: 1 2 3 4 5 6


Batch codes for beginners - 1234hotmaster - 12-04-2010

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



RE: Batch codes for beginners - Th3Proph3t - 12-05-2010

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.


RE: Batch codes for beginners - 1234hotmaster - 12-05-2010

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:


RE: Batch codes for beginners - azag - 12-20-2010

nice tut dude !! thanks for share !!!!!!!!!!!
too short


RE: Batch codes for beginners - Xh3d0w - 12-31-2010

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


RE: Batch codes for beginners - Havoc - 01-05-2011

Really great tutorial. Simple to understand and great examples.


RE: Batch codes for beginners - 1234hotmaster - 01-17-2011

glad all of you liked it Biggrin

sure will add some more when im in the Batch mood Tongue


RE: Batch codes for beginners - Th3Proph3t - 01-19-2011

Is there anyway you can make the loop only go a certain number of times?


RE: Batch codes for beginners - forbdwiz - 01-19-2011

Very informative.


RE: Batch codes for beginners - 1234hotmaster - 01-19-2011

@prophet
might be possible but not that i'm aware of Biggrin