Top Networking Commands Used by Ethical Hackers

Networking commands play a critical role in identifying critical vulnerabilities. These commands help them to know the IP details, interfaces details, name server details, etc. This blog covers Top Networking Commands Used by Ethical Hackers.

(1) ifconfig

Whenever you want to know IP address, ifconfig is the command that provide you the IP, interfaces details, broadcast address etc.

ifconfig

Usage:

(2) ping

Whenever you know the remote IP of the victim, you want to know whether the remote host is up or not. ping command helps you to identify the state of the remote host.

ping <IP>

Usage:

(3) iwconfig

This command displays wireless interface details. The main difference between ifconfig and iwconfig is ifconfig shows all available interfaces while iwconfig shows only wireless interfaces.

iwconfig

Usage:

(4) netstat

netstat, short for network statistics, used for troubleshoot network problems. It displays information related to TCO connections, routing table etc.

Example

netstat -ano

Usage:

(5) arp

arp command displays IP address mapping with mac address. In simple words, this command resolves the IP address of a system to mac address.

arp -a

Usage:

(6) route

route command displays details of routing table.

route

Usage:

(7) ip

ip command displays IP address, subnet mask, broadcast address etc. You can use this command if ifconfig command is not available.

Examples:

ip a

ip n

ip r

Usage:

(8) ss

ss command is the replacement of netcat. This command shows more information in terms of more socket statistics than netcat.

Example:

Usage:

(9) whois

whois command displays information related to IP address and domain name.

Example:

whois google.com

Usage:

(10) hostname

hostname command displays information of system's host name.

Usage:

(11) curl or wget

Both commands used to transfer data via command line. These two commands are extremely useful in getting files from remote locations.

Usage:

Click Here if you want to know Top 5 Commands to Test DNS Zone Transfer in 2 minutes.

(12) host

host command resolves the URL into IP address and vice versa. In addition, it helps in getting DNS lookup and troubleshoot DNS related problems.

host allabouttesting.org

host google.com

host 216.58.196.110

Usage:

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

You may also like...

Leave a Reply

Your email address will not be published.