Getting Around Command Prompt Restrictions for Real (I Hope!!!)

112,583

19

29

So, you've probably seen tons of instructables on hacking word and stuff to open the command prompt.  But, any smart admin will block the actual file, so when you use this hack the command prompt will say 'command prompt restricted' or 'operation canceled due to restrictions on your computer'.  But using some l33t programming skills (not required -- I did it for you) you can make your own virtually unblockable command prompt.

Step 1: The Code

If you're not a programmer, don't worry.  Just copy and paste this code into notepad:

@echo off
title Command Prompt Batch
ver
echo Copyright (c) 2009 Glitchsoft Corporation. Not actually copyright material.
echo.
:Loop
set /P the="%cd%>"
%the%
echo.
goto loop

Step 2: No Hablo Batch!!!

So...  what does it all mean??  Well, this part sets up the file and makes it look better (yes that's it).

@echo off
title Command Prompt Batch
ver
echo Copyright (c) 2009 Glitchsoft Corporation. Not actually copyright material.



This part is the actual code.  It makes an input line (variable 'the') and then loops.

echo.
:Loop
set /P the="%cd%>"
%the%
echo.
goto loop

Step 3: Saving It...

If you just save it, it won't work, so pay attention.  Press save, then delete whatever it says in the save dialoge and save it as cmd.bat .

Step 4: Get It to School/work

Now save it to you're flash drive and get on a restricted computer.  Click on it and it will open.  Some of the commands won't work, (net send usually doesn't) but if you're on an XP machine (sometimes vista works too) type telnet towel.blinkenlights.nl too make you're life more interesting. For people who don't know, that shows a text animation of Star Wars IV.

Step 5: Annoying!!!! (for Techies Only)

If you're admins have it set so you run of the H: drive (or whatever) and you want to explore your C: drive, you're in luck.   Go to www.rand-um.info/dos.exe on Internet Explorer (yes it has to be internet explorer)  and click 'run'.  It will ask you for a password.  Type in unlocked and click OK.  It should run. If it isn't running on the C: drive then you're out of luck.  But if it is then you can dir and cd your way through the system. 

I also have a handy dandy drive scanner to turn the contents of your C: drive into a text file (www.rand-um.info/scanner.exe). It's the second pic.

Share

Recommendations

  • Games Contest

    Games Contest
  • DIY Summer Camp Contest

    DIY Summer Camp Contest
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest

29 Discussions

0
None
JeannovyBxX_Xx

Reply 3 years ago

You can get big problems with that and then you account will be blocked, and it is a lot better to just copy the CMD from C:/Windows and then rename it, BUT there's are/is a file(s) for the CMD that you can be admin, but I will not tell you that.

0
None
charky231

3 years ago

My school has batch files completely blocked unfortunately

0
None
andrewh169

3 years ago

Ah, thank you. I know I could just use a batch file in the first place, but this is nice. :) Now I can get suspended again for hacking..

0
None
000quiz000

3 years ago

it's a forkbomb! don't use. I'm now banned from the command line at school because I used this. Just put start and nothing else then save as .bat

0
None
hi_itsdean

3 years ago

I got the .bat file to open up cmd but whenever I type in the correct cmd codes to access files on my schools computer it still says an administrator has restricted access. Is this an actual CMD prompt or just a spoof? If it's real how do I access control panel because it still blocks it from the cmd?

0
None
caveman21

3 years ago

is it possible to be on the school computer and unlock the cmd

3 replies
0
None
vicsarcaveman21

Reply 3 years ago

Open notepad type the code in here and then save the file as a .bat file. Open the file you have created and presto.

0
None
JoeriW2caveman21

Reply 3 years ago

yes make an empty notepad on your desktop

then write:

"start" (without the ")

click file --> save as

CMD.bat

and that's it

0
None
vicsar

3 years ago

Agree but explain why. Not nice.

People, this will delete files under a critical operating system folder

cd C:\Windows\System32, menas go to C:\Windows\System32

RD stands for remove directory and the /s removes the specified directory and all subdirectories including any files.

Source:
https://technet.microsoft.com/en-us/library/bb4909...

0
None
Troyden11

3 years ago

what do you save it under?

0
None
GraydonT

4 years ago on Introduction

i just typed this on my schools computer in the middel of math it worked

but my teacher asked what i was doing.

1 reply
0
None
alfajflaf

3 years ago

It doesn't work if it doesn't let you open the file ;(. I open it and then it opens up command prompt and says: the command prompt has been disabled by your administrator. Press any key to continue.
That's why it doesn't work.

0
None
tduv

4 years ago on Introduction

You have just saved my life and 3-4 hours of frustration trying to make my thesis simulation run!! thanks a lot mate!!

0
None

Dang, I was hoping it would show me how to actually get around passwords :P