This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux [2019-09-12 T 19:15] admin [netstat] |
linux [2022-03-28 T 19:07] (current) admin [dig] |
||
---|---|---|---|
Line 1065: | Line 1065: | ||
* -D to list available interfaces | * -D to list available interfaces | ||
* -n does not resolve name servers, useful if in a slow devices | * -n does not resolve name servers, useful if in a slow devices | ||
+ | * -e Shows Mac address | ||
* src [ip] / dst [ip] shows you lines with that source or desitnation ip respectivly. | * src [ip] / dst [ip] shows you lines with that source or desitnation ip respectivly. | ||
* proto [protocal] for types of packages | * proto [protocal] for types of packages | ||
Line 1078: | Line 1079: | ||
sudo tcpdump -i eth0 ether host aa: | sudo tcpdump -i eth0 ether host aa: | ||
This is an excellent page for more options: https:// | This is an excellent page for more options: https:// | ||
+ | ==== dig=== | ||
+ | Use dig to easily lookup what the DNS entry of an ip is. | ||
+ | dig [host] [options] | ||
+ | Some options | ||
+ | * +short to just show the IP address entry | ||
+ | Example to look up what IP google has and what Ip it returns: | ||
+ | User@mend: | ||
+ | 142.251.46.238 | ||
==== SSH ==== | ==== SSH ==== | ||
ssh stands for secure shell. It is a service that allows for you to remote access a terminal using encryption. It is very universally standard and exists on most linux systems or can be easly installed | ssh stands for secure shell. It is a service that allows for you to remote access a terminal using encryption. It is very universally standard and exists on most linux systems or can be easly installed | ||
Line 1277: | Line 1286: | ||
* The package name in ubuntu/ | * The package name in ubuntu/ | ||
* The package name in Centos/RHEL is net-snmp | * The package name in Centos/RHEL is net-snmp | ||
+ | === snmpstatus=== | ||
+ | To get the status of if snmp and if it is running on a device you need to know the IP of the host, the community string, and the version | ||
+ | | ||
+ | For example | ||
+ | | ||
=== snmpwalk and snmpget=== | === snmpwalk and snmpget=== | ||
snmpwalk is a tool to scan for snmp. To install you you just install the package called snmp | snmpwalk is a tool to scan for snmp. To install you you just install the package called snmp | ||
Line 1358: | Line 1372: | ||
* http:// | * http:// | ||
* http:// | * http:// | ||
+ | * https:// | ||
+ | * http:// | ||
==== iperf ==== | ==== iperf ==== | ||
Iperf is a way of transferring bulk benign files to see pure transfer rates. Here is a good tuturial: [[http:// | Iperf is a way of transferring bulk benign files to see pure transfer rates. Here is a good tuturial: [[http:// |