Sfoglia il codice sorgente

v1.4.1: Shebang auf python3

Peter Siegrist 1 anno fa
parent
commit
d681a2efee
2 ha cambiato i file con 24 aggiunte e 18 eliminazioni
  1. 22 16
      README.md
  2. 2 2
      sinetstat

+ 22 - 16
README.md

@@ -1,26 +1,31 @@
-__sinetstat__
-
-An alternative to the standard __Linux netstat__  which shows you all network sockets including hidden IPv4 in IPv6 mapped.
+## sinetstat ##
+.
 
 
+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:
-* *explore IPv4 in IPv6 listening sockets (IPv4-mapped IPv6 addresses)*
-* *shows real command and arguments*
-* *shows the UID of the command*
-* *hide multiple entries on reused (SO_REUSEPORT) ports*
-  
+__Improvements to the original netstat command:__
+> \- *explore IPv4 in IPv6 listening/established sockets (IPv4-mapped IPv6 addresses)*
+> \- *prints full output of command including its arguments*
+> \- *shows UID and PID of the command*
+> \- *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`
+  
 
 
 
 
-  
-Simply try:  
-<small><pre>
- # sinetstat -h
+Then simply try:  
+<small>
+```
+# 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> 
   
   
   
   
   
   

+ 2 - 2
sinetstat

@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 
 # (c) 2016-2022 by Siegrist(SystemLoesungen) <PSS @ ZweierNet.ch> 
 # (c) 2016-2022 by Siegrist(SystemLoesungen) <PSS @ ZweierNet.ch> 
 # Website: [https://wiki.zweiernet.ch/wiki/Sinetstat]
 # Website: [https://wiki.zweiernet.ch/wiki/Sinetstat]
@@ -28,7 +28,7 @@ import argparse
 
 
 
 
 
 
-VERSION = '1.4'
+VERSION = '1.4.1'
 
 
 PROC_TCP4 = "/proc/net/tcp"
 PROC_TCP4 = "/proc/net/tcp"
 PROC_UDP4 = "/proc/net/udp"
 PROC_UDP4 = "/proc/net/udp"