mirror of https://github.com/n1nj4sec/pupy.git
netstat: show "name" column
This commit is contained in:
parent
d9af040f29
commit
65c77c2303
|
@ -91,6 +91,10 @@ class NetStatModule(PupyModule):
|
|||
'RADDR': Color(':'.join([str(x) for x in connection['raddr']]), color),
|
||||
'PID': Color(connection.get('pid', ''), color),
|
||||
'USER': Color((connection.get('username') or ''), color),
|
||||
'NAME': Color(
|
||||
connection.get(
|
||||
'name', (connection.get('name') or '')
|
||||
), color),
|
||||
'EXE': Color(
|
||||
connection.get(
|
||||
'exe', (connection.get('name') or '')
|
||||
|
@ -107,7 +111,7 @@ class NetStatModule(PupyModule):
|
|||
objects.append(connection)
|
||||
|
||||
self.table(objects, [
|
||||
'AF', 'TYPE', 'LADDR', 'RADDR', 'USER', 'PID', 'EXE'
|
||||
'AF', 'TYPE', 'LADDR', 'RADDR', 'USER', 'PID', 'NAME', 'EXE'
|
||||
], truncate=True)
|
||||
|
||||
except Exception, e:
|
||||
|
|
Loading…
Reference in New Issue