Best CMD commands used in Hacking – Guide for Newbies

Best CMD commands used in Hacking

Best CMD commands used in Hacking

Best CMD commands used in Hacking

Click To Tweet

Like you all know command prompt is one of the most powerful tool in Window PC. You can do almost anything in your Window PC from this tool. Here we make a list of best Cmd Commands used in Hacking.

If you wanna be a hacker learn these commands carefully.

 

In case you don’t know some of them, then just type the command on CMD and hit enter. A little help will show up on your screen. Read it to understand what that particular command does.

Read all this post related to Command Prompt

READ  How To Remove Virus From USB Or Any Drive On Windows 10 Using CMD
READ  Top 50 CMD Commands That Every Windows User Should Know
READ  5 Different Ways for Opening CMD on Your Computer
READ  15 Brilliant Command Prompt (CMD) Tricks You Probably Don’t Know

Let’s start easy…

1. ping

This command will allow you to know if the host you pinging is alive, which means if it is up at the time of executing the “ping” command.

ping x.x.x.x (x is the IP address). You can try pinging 8.8.8.8 which belongs to Google

or

ping www.google.com (www.google.com is the website you want to ping, but you don’t know the IP)

READ  How to Find Anyone Computer and Mobile IP Address in Just Seconds

2. nslookup

This command has many functionalities. One is for resolving DNS into IP. Lets say you know the website URL but you don’t know its IP but you want to find it out.

Eg. nslookup www.google.com (www.google.com is the website for which you want to find out the IP)

Now, another really nice function of nslookup is to find out IP of specific Mail Severs

nslookup (enter)
set type=mx (enter)
yahoo.com

This command will give you the mail server IP of yahoo.com. You can use whatever server you want and if it is listed on DNS, then you get the IP. Simple, isn’t it? You can send a spoofed email to your friends using the IP address of the mail server. You can check the tutorial here for sending spoofed email.

READ  How To Kick Out Other Devices From Your Wifi Network Using Android Mobile

3. tracert

This command will give you the hops that a packet will travel to reach its final destination. This command is really helpful if you know the route a packet takes before it goes to the target box.

tracert x.x.x.x (x is the IP address)

or

tracert www.google.com (www.google.com is the website you don’t know the IP)

READ  Follow These 10 YouTube Channels for Learning Ethical Hacking Course Online

4. arp

This command will show you the arp table. You can find out if anyone has done arp poisoning in your LAN using this command.

arp -a

READ  How to Transfer Movies,Music and Data Between Two Laptops Using WiFi(Without LAN,WiFi Router and Internet)

5. route : This command will show you the routing table, gateway, interface and metric.

Code:
route print

READ  Advice from a Real Hacker : Top 10 Advanced Operating Systems For Hacking

6. ipconfig

 This command will show you a lot of useful things like your IP, Gateway, DNS in use, etc. This command will give all that info but for all networks you might have it.

Code:
ipconfig
or
Code:
ipconfig /all

Also, in case you have a dynamic IP and want to change it, then type…

Code:
ipconfig /release (this will release your IP)

ipconfig /renew (this will renew your iP)

READ  Top 10 Websites for Learning Ethical Hacking Course Online in 2016

7. netstat

This command will show you connection stats

Code:
netstat

or

Code:
netstat -a (this will show you all the listening ports and connection with DNS names)
netstat -n (this will show you all the open connection with IP addresses)
netstat -an (this will combined both of the above)

net view x.x.x.x or computername (will list the available sharing folders on the target box)

8. netuser

This command reset Windows User Password without Knowing Old Password.

net user Prohacker  *

Change Prohacker with your PC user name and press enter. Now type the new password.

Know more about this trick from below post.

READ  How to Reset Window 10 User Password without Knowing Old Password

Here are some additional CMD commands which will help you.

Code:
net use \ipaddressipc$ “” /user:administrator

(this command will allow you to connect to the target as administrator)

Now if you want to connect to the target and browse the entire C drive, then use this command:

Code:
net use K: \computernameC$
(this will create a virtual drive on your “my computer” folder)

Please not that this command will only work if the target PC/laptop has not set a Adminastrator Password.

And least but not last, the “help” command.

Quote:
whatevercommand /help

or

Quote:
whatevercommand /?

This command is very useful in finding what a particular command does, especially if you are a newby.

Hope you liked the CMD commands listed above. If you have found any command other than those listed above, kindly note them in the comments for our other readers.

Related Video: 

READ  Top 10 Best Free Hacking Tools Of 2016 For Windows and Linux

 

Get more more interesting article like this
in your inbox

Subscribe to our mailing list and get daily new articles and updates to your email inbox.