### Netiquette Command-Line Output - List All Connections Source: https://objective-see.org/products/netiquette Provides a sample JSON output of all active network connections and sockets when the '-list' and '-pretty' flags are used. This structured data includes process information (PID, path, signature) and connection details (protocol, addresses, ports, state). ```json [ { "process" : { "pid" : "5885", "path" : "\/usr\/bin\/nc", "signature(s)" : { "signatureIdentifier" : "com.apple.nc", "signatureStatus" : 0, "signatureSigner" : 1, "signatureEntitlements" : { "com.apple.security.network.server" : true, "com.apple.security.network.client" : true }, "signatureAuthorities" : [ "Software Signing", "Apple Code Signing Certification Authority", "Apple Root CA" ] } }, "connections" : [ { "remoteHostName" : "n\/a", "protocol" : "TCP", "interface" : "", "localAddress" : "0.0.0.0", "state" : "Listen", "remotePort" : "0", "localPort" : "666", "remoteAddress" : "0.0.0.0" } ] } ... ] ``` -------------------------------- ### Netiquette Command-Line Usage and Options Source: https://objective-see.org/products/netiquette Displays the available command-line options for the Netiquette tool. Users can leverage flags like '-list' to enumerate connections, '-names' to resolve hostnames, '-pretty' for formatted JSON output, and '-skipApple' to exclude Apple processes. ```shell $ Netiquette.app/Contents/MacOS/Netiquette -h NETIQUETTE USAGE: -h or -help display this usage info -list enumerate all network connections -names resolve remote host names (via DNS) -pretty JSON output is 'pretty-printed' for readability -skipApple ignore connections that belong to Apple processes ``` -------------------------------- ### Netiquette Command-Line Output - Redirect to File Source: https://objective-see.org/products/netiquette Demonstrates how to capture the command-line output of Netiquette to a JSON file. By piping the output of the '-list' command to a specified file path, users can easily save the network activity data for later analysis. ```shell $ ./Netiquette.app/Contents/MacOS/Netiquette -list > /path/to/some/file.json ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.