0% found this document useful (0 votes)
5K views8 pages

10 Best CMD Commands Used in Hacking

This document lists and describes 10 best CMD commands used for hacking, including ping to check if a host is online, nslookup to resolve DNS names to IPs, tracert to view network hops, arp to view the ARP table, route and ipconfig to view network configuration details, netstat to view network connections, netuser to reset passwords, net view to view shared resources, and tasklist to view running processes. Additional useful commands mentioned are net use to connect to remote systems as administrator and help/?” to get command syntax help.

Uploaded by

kharpainch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5K views8 pages

10 Best CMD Commands Used in Hacking

This document lists and describes 10 best CMD commands used for hacking, including ping to check if a host is online, nslookup to resolve DNS names to IPs, tracert to view network hops, arp to view the ARP table, route and ipconfig to view network configuration details, netstat to view network connections, netuser to reset passwords, net view to view shared resources, and tasklist to view running processes. Additional useful commands mentioned are net use to connect to remote systems as administrator and help/?” to get command syntax help.

Uploaded by

kharpainch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

10 Best CMD Commands Used In Hacking

CMD is a powerful tool which lets you do almost anything with your Windows
PC/laptop. There are common commands like CD.. and MD etc which you
probably know so we won’t get into that. In this article, we have provided the best
cmd commands used in hacking.

Before we begin sharing the best cmd commands for hacking lets see how to
enable the NetBios.

First, open your Network Connection and right click and select Properties.


Then Select TCP/IPand click Properties again. Now Click
on Advanced and WINS tab. Select Default for NetBIOS.

Now back to the main Local Area Connection window, select File and Print
Sharing for Microsoft Networks and hit enter.

This is just to make sure you have NetBIOS enabled. We will have some fun with
NetBIOS on CMD.

In case you don’t know how to get CMD by clicking the Windows icon at the left-
hand bottom of your screen in all Windows versions and click on Start. Press run
from the start, then type “cmd” without quotes.

List Of Best CMD Commands Used In Hacking:


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)

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

Code:
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 a spoofed email.

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.

Code: 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)

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.

Code:
arp -a
5) route :

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

Code:
route print

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)

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.

code: net user yourusername *

Change yourusername with your PC user name and press Enter. Now type the
new password.

9) Net View:

This command displays the whole list of resources, computers or domains that
are shared by the specified computer.
code:
net view x.x.x.x or computername

10) Tasklist:

This command opens up an entire task manager on the command prompt. Users
just need to enter tasklist on CMD and they will see the list of all running process.

For eg; If you want to kill PID 1532 process then you can enter the command-
Code:
taskkill /PID 1532 /F

Bonus-

Some additional CMD commands which will help


you in hacking-
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 note that this command will only work if the target PC/laptop has not set
an Administrator Password.

And last but not least, 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 newbie.

Also Read- A-Z Windows CMD Commands List

Conclusion

So these were few of the best cmd hacks. Hope you liked it. If you have found
any command other than those listed above, kindly note them in the comments
for our other readers.

You might also like