3 ms·
> Can anyone give a competing non-osquery implementation on MacOS? shouldn't lsof with some awk munging get you there ? edit-01: for example lsof -iTCP
by signa11 3y ago
> Can anyone give a competing non-osquery implementation on MacOS?
shouldn't lsof with some awk munging get you there ?
edit-01:
for example
lsof -iTCP -sTCP:LISTEN -n -P | awk '{print $1, substr($0, index($0,$9))}'
might be useful enough ? fwiw, it does give me something useful on my machine
- MrBuddyCasino 3y agoThanks, added. alias ports="lsof -iTCP -sTCP:LISTEN -n -P | awk '{print \$1, substr(\$0, index(\$0,\$9))}'"