I am sure many guys know all these commands.I am just gonna start on LAN Hacking so I am starting from basics.These commands are for beginners.These commands will run on CMD prompt.
In case you don’t know how to get CMD open in your box, then click on Start, then Run, then type “cmd”.
nslookup www.whatever.com (www.whatever.com is the website you want to find out the IP)
Now, another really nice function of nslookup is to find out IP of specific Mail Severs.
CODE :
OBS: This command is good to know the route a packet takes before it goes to the target box.
CODE :
CODE :
arp -a
CODE :
CODE :
CODE :
CODE :
Very useful if you know the command, but forgot the right switch.
- First of all, open your Network Connection.
- Now right click and select Properties.
- Then Select TCP/IP and click on Properties again.
- Click on Advanced and WINS tab.
- Here select Default for NeBIOS.
- Now come back to the main window named Local Area Connection.
- Now select File and Print Sharing for Microsoft Networks and hit enter.
NOTE : 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 open in your box, then click on Start, then Run, then type “cmd”.
Codes
- nslookup
- net view
- net use
- net user
- ping
- tracert
- arp
- route
- nbtstat
- netstat
- ipconfig
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).
- ping www.whatever.com (www.whatever.com is the website you want to ping, but you don’t know the IP)
NOTE : Keep in mind that if the host you pinging is blocking ICMP packets, then the result will be host down.
2) Nslookup
- This command is mostly for resolving DNS into IP.
nslookup www.whatever.com (www.whatever.com is the website 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
- Now why would you want to have an IP of a mail server?
- To send spoofed mail to your friends or even for SE.
- In case you looking for “How to spoof email”, then look for my “How to spoof email tutorial” http://www.infowar.com/forums/showthread.p…p;threadid=2360
3) Tracert
This command will give you the hops that a packet will travel to reach its final destination.OBS: This command is good to know the route a packet takes before it goes to the target box.
CODE :
- tracert x.x.x.x (x is the IP address)
- tracert www.whatever.com (www.whatever.com is the website you don’t know the IP)
4) Arp
This command will show you the arp table. This is good to know if someone is doing arp poisoning in your LAN.CODE :
arp -a
- Route
CODE :
- route print
5) Ipconfig
This command will show tons of very helpful things.Your IP, gateway, dns in use.CODE :
- ipconfig
- ipconfig /all
- ipconfig /release (this will release your IP)
- ipconfig /renew (this will renew your iP)
NOTE : Keep in mind that those commands will change your IP, but the
new IP will still be tighed up to you. So don’t do anything stupid.
6) Netstat
This command will show you connection to your box.CODE :
- netstat
- 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)
7) Nbtstat
This command will show you the netbios name of the target box.CODE :
- nbtstat -A x.x.x.x (x is the IP address)
- nbtstat -a computername
- net view x.x.x.x or computername (will list the available sharing folders on the target box)
- net use \ipaddressipc$ “” /user:administrator (this command will allow you to connect to the target box as administrator)
- Now if you want to connect to the target box and browse the entire C drive, then use this command: net use K: \computernameC$ (this will create a virtual drive on your “my computer” folder)
NOTE : Keep in mind that this will only works if the target box doesn’t have an administrator password set.
And least but not last, the “help” command.- whatevercommand /help
- whatevercommand /?
Very useful if you know the command, but forgot the right switch.
Subscribe To Get FREE Tutorials!
Respected Readers:
|
2 comments:
I totally agree the standpoint of upstairs. I often surfing on this forum when I m free and I find there are so much good information we can learn in this forum! Scarpin Videos
I enjoyed reading your nice blog. I see you offer priceless info. Stumbled into this blog by chance but I'm sure glad I clicked on that link. You definitely answered all the questions I've been dying to answer for some time now. Will definitely come back for more of this.
Celabright videos
Confused? Feel free to ask
Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.
Post a CommentNote:-
Please do not spam Spam comments will be deleted immediately upon my review.
Regards,
XEO Hacker