Linux – information gathering (part 4)

2017-10-08 von Mario

This is the fourth part of Linux – information gathering.

Network

Find all available network connections.

1
ifconfig -a

In the following files you can find specific information about the desired network configuration.

1
2
cat /etc/network/interfaces
cat /etc/sysconfig/network

You can find the configuration file for DNS resolvers here:

1
2
cat /etc/resolv.conf
cat /etc/networks

With the administration tool for IPv4/IPv6 packet filtering and NAT you can list all filters.

1
iptables -L

Show or set the system’s host name.

1
hostname

Show the system’s DNS domain name.

1
dnsdomainname

Connections

The command „lsof“ lists open files.

1
lsof -i

List port socket numbers of standard services.

1
cat /etc/services

The command „netstat“ or „chkconfig“ lists network connections

1
2
3
netstat -antup
netstat -antpx
netstat -tulpn
1
chkconfig --list

Cache

With „arp“ you can manipulate or display the kernel’s IPv4 network neighbour cache.

1
arp -e

The following command displays existing routes.

1
route

 

Previous parts

Linux – information gathering (part 1)

Linux – information gathering (part 2)

Linux – information gathering (part 3)

Linux – information gathering (part 4)

Kategorie: IT-Security Schlagwörter: