Amazing CMD Commands Used in Hacking
Let's see how to Enable NetBIOS because we will have some fun with it.
Open your Network Connection and right click and select Properties. Then Select TCP/IP and 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.
1.} PING :
This command will allow you to check if the host you are 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). e.g. 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. Let's say you know the website URL, but you don’t know its IP, & 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)
another function of NSLOOKUP is to find out IP of specific mail server.
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. You can send a spoofed email to your friends using the IP address of the mail server.
3.} TRACERT :
This command will give you the hops that a packet will travel to reach its final destination.
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 for all networks.
Code:
ipconfig or 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
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 your username with your PC user name and press Enter. Now type the new password.
9.} NETVIEW :
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 COMMANDS *
Code:
net use \ipaddressIPC$ “” /user:administrator
(The command will allow you to connect to the target as administrator)
:: replace IP address in the code with IP address of victim.
Now if you want to connect to the target and browse the entire C drive, then use this command.
Code:
net use K: \computernameC$
(It will create a virtual drive on your “my computer” folder)
:: replace computer name in code with computer name of victim.
:: this command will only work if the target PC/laptop has not set an Administrator Password.
Comments
Post a Comment
Comment for New Topic Ideas!!