Browse Source

v1.4.1: Shebang auf python3

Peter Siegrist 1 year ago
parent
commit
d681a2efee
2 changed files with 24 additions and 18 deletions
  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.  
 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]
 
 netstat utility V1.4
@@ -38,7 +43,8 @@ optional arguments:
   -u          Only UDP
   -4          Only IPv4
   -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    ::: 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> 
 # 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_UDP4 = "/proc/net/udp"