Advertisement
johnmahugu

tutorial - Basic Command Line for TCP/IP and Networking in W

Jul 8th, 2015
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. tutorial - Basic Command Line for TCP/IP and Networking in Windows you Should Know
  2. Level : Easy
  3.  
  4. I will write simple tips and tricks about basic command line for tcp/ip and networking in windows you should know.
  5.  
  6. I will try to explain the simple basic thing you need to know about basic command line for tcp/ip and networking in windows you should know. Usually you will need basic command line for tcp/ip and networking for information gathering and find information about victim and sometimes you can accidentaly find some vulnerable server when do some research. This tips and trick also can be used to check your connection and finding some malicious port used by malware, trojan, or etc.
  7. Requirement :
  8.  
  9. 1. Windows OS
  10.  
  11. 2. A Cup of Coffee to make you relaks :-p
  12. Step By Step :
  13.  
  14. 1. Firstly, you should go to your command prompt window. Open Run (how to open run) and type cmd.
  15. 2. ipconfig
  16.  
  17. ipconfig used to display the TCP/IP network configuration values. If your computer connected to internet or local network you will have an ip address and will described in ipconfig. To view switches for ipconfig use ipconfig /? command for help, let’s see the picture and explanation below.
  18.  
  19. Basic command line for tcp/ip and networking in windows you should know
  20.  
  21. FYI :
  22.  
  23. /release : release specified adapter if you got IP address from DHCP server.
  24.  
  25. /renew : renew and ask for new IP address from DHCP server.
  26.  
  27. /flushdns : clear all DNS local cache
  28.  
  29. /displaydns : displaying what do you have in your local DNS cache.
  30. 3. ping
  31.  
  32. This command usually used to check active connection between computer or server. Ping sends out a packet to a designated internet host or network computer and measures its response time. The target or other computer will respond and return a signal to determine the quality of connection to other site or another computer.
  33.  
  34. Basic command line for tcp/ip and networking in windows you should know
  35.  
  36. If you see the image above, my current connection with google.com is not too good(but also not too bad), because the average time for the very good connection is not more than 100-150ms (more lower more fast).
  37.  
  38. When you do ping command, the default packet value you send to other computer is 32 bytes.
  39.  
  40. If you find “Request timed out” message when you perform ping, maybe the remote server or computer didn’t allow ping or they have a firewall.
  41. 4. tracert
  42.  
  43. Tracert (traceroute) is another command adopted from Unix system. Actually when you try to open facebook.com or google.com in your browser, you ask your computer to go to that address through hopping into a few router address. Let’s see the picture below when I’m trying to traceroute to google.com(sorry if I put a lot of sensor in this pics).
  44.  
  45. Basic command line for tcp/ip and networking in windows you should know
  46.  
  47. To reach google.com I need to go through 8 hop(router) until my last destination. Usually tracert command also can be used to check your connection into some websites. If you found that the hop more than 15 when you do tracert command, that website should be very slow accessed from your PC.
  48. 5. Netstat
  49.  
  50. Netstat displays the active TCP connections and ports on which the computer is listening, Ethernet statistics, the IP routing table, statistics for the IP, ICMP, TCP, and UDP protocols. Netstat also can be used to tracking your outbound or inbound connection to your computer, it’s useful to malicious connection. Let’s see the picture below to see the available switch in netstat.
  51.  
  52. Basic command line for tcp/ip and networking in windows you should know
  53.  
  54. netstat -a : use to displaying all connection and listening ports.
  55.  
  56. netstat -b : showing the executable files involved in creating connection
  57.  
  58. you also can use the switch simultaneously, for example netstat -ab to display all connection and executables files related to it’s connection
  59. 6. nslookup
  60.  
  61. This command helps to diagnose the Domain Name System (DNS) infrastructure and comes with a number of sub-commands. Usually used by hackers to find out some useful information that you can’t find on search engine. In this tips and trick I’m only show you how to find server IP address or host name. Type nslookup and the enter the URL of website you want to know it’s IP address for example I use google.com.
  62.  
  63. Basic command line for tcp/ip and networking in windows you should know
  64.  
  65. As you can see on picture above, that google.com have about 5 IP address and if you open all of that IP address, it will open the same website : google.com.
  66.  
  67. I think there’s more than this the command line for networking, in next article I will try to write more deep about this command line and other advanced command line.
  68.  
  69. Hope you enjoyed :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement