SRL Archive - Computer Help and Tutorials

The Usefulness of CMD


chaoyd

2010-06-17 02:37:53

Yes I can hear it now. "Windows Command Prompt fails" "It's useless." Well maybe you'll get to learn something today. :). This is for Educational purposes only. Use at your own risk.

PS: (FukHaq5/ZPO Applies here)

**NOTE**This tutorial Does NOT work on Vista. It you need Admin access on Vista, try using *THE* VDM exploit. If interested, getting the code/reading up on this is just as easy as googling for it ;)). /**NOTE**

So A virus is keeping you from running Anti-Virus program or you forgot your admin password? Well have no fear, there is a simple method for getting %SYSTEM% access to your computer from a normal user account :D.

This is actually a simple process. It all depends on running the 'at' command on command prompt. To access command prompt, press windows key + R


and type in 'cmd'. The black Dialog box is The command prompt.


To get your local system time, type in 'time' and hit enter twice. Now (mentally) add around 1 minute to it. Now you will be doing the "real work".

Type this command in next

'at *time + 1 minute here* /interactive cmd.exe'



If you get a different output make sure you typed everything in correctly. Also note the time you enter should be different, and *MOST* the time your computer will be defaulted to a 12-hour clock.

Once your computer's clock reaches the time, a new command prompt will open.


Uploaded with ImageShack.us

Notice the \System32> and its running under SVCHOST.EXE.

Congratulations, you are now SYSTEM. Have some fun,explore, learn something :).
————————————–
A few activities for the reader:
1) Get Explorer.exe to run as SYSTEM.
2) Force a Password Change
3) Force an unstoppable Reboot
4) Rewrite your MsConfig (fun one :D). [And Most Useful if something, such as a virus, is blocking access to it]

————————————–

Now I'm sure someone (Maybe?) wants to know WHY this works. Well here we are.

The At command is Windows Attempt at Crontab/Cronjobs. All it does is really schedule tasks to run at a certain time. For more options you can just type in at /? for a more complete list of Options.

The tag '/interactive' tells 'at' to interact DIRECTLY with the User(aka Userland). Now how does this get passed to SVCHOST? Well without getting too technical, SVCHOST has several processes running at once (for verification just check your task manager, you will see several). SVCHOST is "technically" a kernel service that runs in userland for interaction between the two.

When running something '/interactive', as the 'at' "man" page says, it interacts with the desktop of the user logged in, which (For those that don't know) is Explorer.exe. Explorer is responsible for several other processes, one being Command prompt! *GASP*.

It's 2 AM here so this might be a fail explanation. P:. I'll gladly explain anything else/clarify if needed :). Happy Readings

Nava2

2010-06-17 09:06:52

Perhaps have pics without the paint mess-up.. looks rather unprofessional.

If we know your first name, it really doesn't do anything for us. :p

chaoyd

2010-06-17 15:09:17

^Yeah they were from when i threw it together for a project and all i had was paint :O.

I'll stay paranoid anyway. ;)

Narcle

2010-06-17 15:22:42

From: chaoyd
^Yeah they were from when i threw it together for a project and all i had was paint :O.

I'll stay paranoid anyway. ;)


Uh huh… Whatever you say Tim.

MylesMadness

2010-06-17 16:09:34

Who cares what your drive letter is…

Awkwardsaw

2010-06-17 16:44:14

maby explain more usefull functions and stuff? :)

maby example .bat files

Shady?

2010-06-17 16:48:24

From: MylesMadness
Who cares what your drive letter is…


Yea, hmm, letter…:sasmokin:

chaoyd

2010-06-18 04:50:21

From: MylesMadness
Who cares what your drive letter is…


Better safe than sorry. :)

From: Awkwardsaw
maby explain more usefull functions and stuff? :)

maby example .bat files


Do you mean what other useful things 'at' can do? Or more uses for this particular 'at' command? Because AT can do basically what CronJobs do. Just schedules certain .exe/.bat/whatever program/script to run at a certain time.

i luffs yeww

2010-06-18 05:08:50

I think he means you should make a tutorial about other command prompt functions.

Dervish

2010-06-18 15:43:53

TBH CMD is not useful in any way, just doing stuff without GUI basically to make newf*gs think they're prohackers.

chaoyd

2010-06-19 17:06:17

From: Dr D. Dervish
TBH CMD is not useful in any way, just doing stuff without GUI basically to make newf*gs think they're prohackers.


Then you sir are just misinformed. Sure it's no terminal but it's incredibly helpful for doing many things quickly. (Though I'll take Terminal/Yakuake over it ANY day, hell I'd take Mac/OBSD's Terminal over windows anyday)

Awkwardsaw

2010-06-19 17:10:13

From: Dr D. Dervish
TBH CMD is not useful in any way, just doing stuff without GUI basically to make newf*gs think they're prohackers.


if you know what your doing its faster, :)

Littma

2011-12-06 15:54:59

CMD has the general functions of how DOS used to work–just slightly improved! Adding useful networking functions and or OS functions that cannot be easily accessed through the Windows GUI interface should be added to this guide.

A prime example would be the command: ipconfig /all

Adding multiple useful functions that people can use for multi-use purposes would make this guide useful. Other than that, I'm sorry but I see no use in this guide seeing anyone can open command prompt and type "help" for useful commands.

Guiding users through commands that are not in command prompt's default help list can be helpful, especially users who are looking for specific commands. Though on the flip side you can just go on the Microsoft website and find all the commands yourself.

Now if this guide was directed towards something specific for example: How to port forward/trigger your router with the assistance of CMD–that would be different seeing some users may need to port forward or port trigger a game console or just to open up some ports for various reasons.