Even though the command prompt cannot solely be used for hacking it can be useful. The cmd allows us to interact with Windows operating systems in one window, it allows us to tunnel our way locally through a machine or to interact with another program which is compatible with cmd parameters.
How to access CMD
Click on the start menu button, for windows 7 and vista users you may type "cmd.exe" in the programs search bar, for windows xp and before you can click on run and type "cmd.exe". If this isn't applicable alternatively you may open notepad and type "command.com" then save the file as cmd.bat or anything.bat remember where you save the file as you will be required to open it, Open the file and you will be greeted with a cmd prompt.
Basic File Navigation in CMD
There are a few commands you may use to navigate through folders on the filesystem. When the cmd prompt opens you will see one of the two below..
C:\Users\Username:/>
or C:\Windows\System32:/>
Basically if it has system32 in the prompt it has been loaded with admin privileges whereas if it has directed you to a user path it has user privileges. The path that is displayed means it is the current directory in which it is active in, so if you typed a file name it will run that file if it is in the active directory. The following commands may prove useful.
CD - change directory, you can go up or down in a directory by using this.
Examples:
CD C:\Windows \\This will make the active directory the windows folder
CD .. \\Two full stop symbols is a traversal, this means it will go back or up a folder. So if your active directory is the desktop you can typ CD .. to go one folder up or in most cases the user home directory.
DIR - directory command, when used it will list all of the folders and files that are located in the active directory
Del - delete a file
RmDir - remove a folder
MkDir - make a new folder
Change the text color in the cmd prompt
If you are sick of staring at the same black background and grey text you can change colors, type "Color /?" for a description of all colors
Example:
Color 0c \\Black background with red text
color 0a \\Black background with green text, Matrix style
Using CMD as a reverse shell