CMD Hacking Tutorial
Before Window was created, the most common operating system that can ran on IBM PC compatibles was DOS, DOS stand for Disk Operated system and was what you would use if you had started your computer much like you to do today with Window.
The difference was that DOS was not a graphical operating system but rather purely textual. That meant in order to run programs or manipulate the operating system you had to use interface that was created in order to make using DOS operating system easier a novice user.
As time went and newer versions of Window were developed DOS was finally phased out with Window ME. Though the newer operating system do not run on DOS, they do have something called the command prompt , which have a similar appearance as DOS. In this app we will cover the basic commands and usages to the command prompt so that you feel comfortable in using the resource.
How to Access Command Prompt
Command prompt can be accessed via Command Prompt shortcut located in the start Menu or on the Apps screen, depending on what the version of Window you have.
Another way to access the Command Prompt is via the cmd run command but using the shortcut : Window keyboard+R (will show you “RUN” box where you can type commands)
then type : CMD in commands, and it will open up.
Many commands can be only executed if Command Prompt is begin run as an administrator. Which is also called as ” Elevated Command Prompt” window.
Automatically shut down Your Computer at a Specific Time
Do yo always forget to switch off your computer before going to bed, or just forget to look at the clock while you are working ? I will tell you How to get your computer to shut down at a time specified by you.
First of, you need to open MSDos(CMD). Type in :
Shutdown -s -c ” Add your comment here” – t xx
-s : Shutdown and power off your computer
-c : “Comment” Add a comment
-t xx : Time before shutdown (in Second)
Quick Find Your IP Address
You can find your IP address from the Control Panel, But this takes quite a few clicks. The “ipconfig” is a fast way of determining your computer’s IP Address and other information, Such as the address of its default gateway – USEFUL IF YOU WANT TO KNOW THE IP ADDRESS OF YOUR ROUTER’S WEB INTERFACE.
IPCONFIG/all : Display full configuration information.
IPCONFIG/release : Release all Adapters.
IPCONFIG/renew : Renew All adapters
Flush Your DNS Resolver Cache
If you change your DNS server, The effects won’t necessarily take place immediately, Window uses a cache that remembers DNS response IT’s received, saving time when you access the same address again in the future.
To ensure Window is getting address from the new DNS server instead of using old, cached entries, Run the :
ipconfig/flushdns command after changing your DNS server.
Ipconfig/flushdns : Purge the DNS Resolver cache
Troubleshoot Network Connection issue
If you’re experiencing issues connecting to a website or other Network Connection issues, Window and other operating system have some standard tool yo u can identify problems.
- First there is a “ping” command.
Type ping google.com and window will send packets to google.com. Google will responsd and let you know about it’s receiving them. You will be able to see if any packets did not make it google.com – Perhaps you are experiencing packet loss – And how long it took you to hear back
There is a also the “tracert” commandd, For example, Run : tracert google.com and you will see the path of your packets takes to reach Google. If you are having issues connecting to a website, tracert can show where the problem is occurring.
Scan system Files for Problems
Window includes a system file checker tool that scan its system file and looks for problems.
If system files are missing for corrupted , The system file checker will repair them, this may fix problems with some window system.
To use this tool, open a command Prompt window as Administrator and run the : sfc/scannow command.
List Network Connection and Port
The netstat command is a particularly useful, displaying all ports of network statistics when used with its various options. One of the most interesting variants of netstat is :
Netstat – an
which will display a list of all open, network connections of their computer, along with the port there are using and the foreign IP address they are connecting to.
Manage and Track how your computer uses energy
The “Powercfg/energy” command can be used to build the detailed power consumption report for your PC, which is output to a directory indicated after the command finishes. This report will let you know of any system fault that might increase power consumption.
Like devices that are blocking certain sleep modes, or which are not properly configured to respond to your power management setting.
Get ride of unresponsive or hidden programs
Task that are appear in the “tasklist” command will have an executable and process ID (A Four -Digit Number) associated with them.
You can “Force Stop” a program using “Taskkill -im” followed by the executable name or “taskill -pid” followed by the process ID
“Systeminfo” display a report about your system’s component this is one of my much loved and common DOS command
It gives You Detailed description about your system component like processor, Memory and much more. You can also use it to check whether your system is 32 Bit or 64 Bit.
Go to command and type Systeminfo
Thanks to the Robocopy Command, You don’t need to use Window Backup software or install a third party program to manage your Backup. Just Execute:
Robocopy C:/users/usr/documents F/Backup/document/copyall/E/R:O/Dcopy:T /MIR,
Obviosly replacing the source and destination folders with whatever you would like to backup and where. The Robocopy command with these option function identically to an increamental backup software tool, Keeping both location in sync.
Find a Website’s IP address
Like to know the IP address of a website? There are a few different command you can use to find it:
Use the “nslookup” command to find the IP Address of a website. Just execute “nslookup (website’s address) and view the result.
Copy text from Command Prompt
AS you may or may not know, copying from the command prompt is not as easy as copying from other program, Which is a part of the reason why saving a command’s output to a file, which you learned about a few tricks back, is so handy
But what if you just want to copy a short section of text to the clipboard? It’s not too hard
Right click anywhere In the Command Prompt window and choose mark. Now Highlight with your mouse button whatever you’d like to copy. Once Your selection is complete press enter.
Now you can paste that information into whatever program you’d like, Just like you paste the other text.
TIP: If you chose mark but then decided you don’t want the copy anything, You can right click again to cancel the mark action or hit the esc key