FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to bypass restrictions to get to the command prompt





stalin
=======================================================
How to bypass restrictions to get to the command prompt
=======================================================

Ok, you're at a console at the library, school or other public
termimal. Access to C: is blocked. The command prompt is blocked.
You're trying to do something, and you can't because of these
restrictions. What a load of shit.

First things first... Get to the command prompt. Once you've got
access to DOS, you're in good shape. If it's blocked, try the easy
way first.
*****************************************
Method 1:
1. Open any folder or browser.
2. Type the location of cmd.exe or the prompt depending on the OS.
Example: "C:\windows\system32\cmd.exe" or "C:\winnt\system32
\cmd.exe" (for NT)
*****************************************
Method 2:
1. Save the cmd.exe prog to a floppy and do a "A:/cmd.exe".
2. If you dont want to run it off the A:, then save it to the
computer and launch it from somewhere you have access to.

(note: ctrl-c / ctrl-v if cut and copy is blocked.)
****************************************
Method 3:
1. Download QuickBASIC. http://www.geocities.com/aliphax/files/qb.zip
2. Make a program that works similar to cmd.exe, but isn't blocked.

SHELL "cd>~cd.tmp"
OPEN "~cd.tmp" FOR INPUT AS #1
LINE INPUT #1, f$
CLOSE #1
KILL "~cd.tmp"
f$ = f$ + "\~cd.tmp"
DO
SHELL "cd>" + f$
OPEN f$ FOR INPUT AS #1
LINE INPUT #1, cd$
CLOSE #1
KILL f$
PRINT cd$ + ">";
LINE INPUT cmd$
SHELL cmd$
LOOP UNTIL LCASE$(cmd$) = "exit"

3. Save as "something.bas"
4. Click Run
5. Make EXE File
6. Stand-Alone EXE File
7. Make EXE
8. Exit
9. Execute "something.exe"
***************************************
Method 4:

1. If you have access to office, start word
2. Run the vb-runtime option
3. Add an command button and do an on-click sub which says:
Shell "cmd"
4. Run it
***************************************************
Method 5:

Simply open up the browser, go to view source, select New,
type "command", and save it as dos.bat. Then just simply open up
dos.bat to open up command prompt.



Thanks to z1p and Alipha for the copy of QBasic for the tutorial.
Also thanks to phantiC for suggesting the VB runtime option in office.
Grimboy
So what? Now you have dos box access, you still can't access folders you don't have permissions to.
S3nd K3ys
Grimboy wrote:
So what? Now you have dos box access, you still can't access folders you don't have permissions to.


No.

Now YOU don't have access to those folders. But I do. Wink
Tom7
well done, good tut.
Daniel15
Administrators that try to block the command prompt are smart enough to actually block the command prompt executable files (cmd.exe and command.com). This has happened at my school, so whenever someone tried to run cmd.exe (no matter where it is), they get an 'Access Denied' error.

What used to work to run a program in a command window would be to create a Visual Basic program like the following:

Shell "command.com /c ping ned", vbMaximised

Which would run a ping to a host called 'ned' (and start the window maximised). Unfortunately, now command.com is banned as well

Methods 1 and 4 are exactly the same. I liked method 3 though Wink
Bookface
Method 1 & 4 are not exactly the same -- sometimes you have access to office, sometimes you have access to an explorer window, sometimes you have both. I've successfully used the VBA method when folder views and web browsing was through a third party add-on.

I've also had a few cases where the names "cmd.exe" and "command.com" were blocked; you could make copies of these files with different names and they would work fine. (Fortress, I believe, has/had this limitation.) Sometimes even by a simple right-click, copy, paste, right-click on "Copy of command.exe", run -- from Notepad's open file dialog window, since file browsing was otherwise blocked -- was all it took to get started.

If you're just trying to get to your home machine, there are also any number of programs which will take an input from you through HTTP access and pass it on to a command line. (less sure about windows hosts)
Related topics
Site not working
Windows Tips&tricks!
Shutdown & Restart Shortcuts for Windows XP & Window
For Those Of You Who Like To Upload Music To The Net
751 Useful Windows XP Files
good site to learn php or asp?
Screwed Up PC
Windows XP SP3 comming soon
In Command: The Windows Command Prompt
In Command: Syntax Highlighting your code
In Command: Who needs a GUI anyway?
Running Linux without installing
CMD prompt
How To Disable Net User Command in Windows 7
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.