|
@@ -1,26 +1,31 @@
|
|
-__sinetstat__
|
|
+## sinetstat ##
|
|
-
|
|
+.
|
|
-An alternative to the standard __Linux netstat__ which shows you all network sockets including hidden IPv4 in IPv6 mapped.
|
|
|
|
|
|
|
|
|
|
+An alternative to the standard __Linux netstat__ or __ss__ command.
|
|
|
|
+It can display all TCP/UDP network sockets including (hidden) IPv4-mapped addresses.
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
-Improvements to the original netstat command:
|
|
+__Improvements to the original netstat command:__
|
|
-* *explore IPv4 in IPv6 listening sockets (IPv4-mapped IPv6 addresses)*
|
|
+> \- *explore IPv4 in IPv6 listening/established sockets (IPv4-mapped IPv6 addresses)*
|
|
-* *shows real command and arguments*
|
|
+> \- *prints full output of command including its arguments*
|
|
-* *shows the UID of the command*
|
|
+> \- *shows UID and PID of the command*
|
|
-* *hide multiple entries on reused (SO_REUSEPORT) ports*
|
|
+> \- *shorten output by hiding repeated entries on reused (SO_REUSEPORT) ports*
|
|
-
|
|
|
|
|
|
|
|
|
|
+For a full featured output the script needs root-privileges.
|
|
|
|
+.
|
|
|
|
+
|
|
This is a Python 2.x/3.x script.
|
|
This is a Python 2.x/3.x script.
|
|
Maybe the shebang line needs to be adjusted, depending on the Python installation of your system.
|
|
Maybe the shebang line needs to be adjusted, depending on the Python installation of your system.
|
|
|
|
|
|
-For a full featured output the script needs root-privileges.
|
|
+Direct Download: `wget https://git.zweiernet.ch/sigi/sinetstat/raw/master/sinetstat`
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
-
|
|
+Then simply try:
|
|
-Simply try:
|
|
+<small>
|
|
-<small><pre>
|
|
+```
|
|
- # sinetstat -h
|
|
+# sinetstat -h
|
|
usage: sinetstat [-h] [-l] [-e] [-s] [-r] [-w] [-W] [-t] [-u] [-4] [-6]
|
|
usage: sinetstat [-h] [-l] [-e] [-s] [-r] [-w] [-W] [-t] [-u] [-4] [-6]
|
|
|
|
|
|
netstat utility V1.4
|
|
netstat utility V1.4
|
|
@@ -38,7 +43,8 @@ optional arguments:
|
|
-u Only UDP
|
|
-u Only UDP
|
|
-4 Only IPv4
|
|
-4 Only IPv4
|
|
-6 Only IPv6
|
|
-6 Only IPv6
|
|
-</pre></small>
|
|
+```
|
|
|
|
+</small>
|
|
|
|
|
|
.
|
|
.
|
|
|
|
|
|
@@ -62,7 +68,7 @@ TCP6 ::: 25 ::: 0 LISTEN root
|
|
TCP6 ::: 443 ::: 0 LISTEN root 1200 /usr/sbin/apache2
|
|
TCP6 ::: 443 ::: 0 LISTEN root 1200 /usr/sbin/apache2
|
|
TCP6 ::: 995 ::: 0 LISTEN root 22714 /usr/sbin/dovecot
|
|
TCP6 ::: 995 ::: 0 LISTEN root 22714 /usr/sbin/dovecot
|
|
```
|
|
```
|
|
-</small>
|
|
+</small>
|
|
|
|
|
|
|
|
|
|
|
|
|