{"id":13541283,"url":"https://github.com/FMotalleb/nu_plugin_port_list","last_synced_at":"2025-04-02T08:31:00.989Z","repository":{"id":206663006,"uuid":"717398852","full_name":"FMotalleb/nu_plugin_port_list","owner":"FMotalleb","description":"A nushell plugin to display all active network connections.","archived":false,"fork":false,"pushed_at":"2024-05-05T07:44:20.000Z","size":204,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-05T08:33:51.379Z","etag":null,"topics":["netstat","networking","nushell-plugin"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FMotalleb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-11T11:24:41.000Z","updated_at":"2024-05-29T22:08:34.593Z","dependencies_parsed_at":"2023-11-11T13:28:06.384Z","dependency_job_id":"46e47530-b902-45c0-895f-e5360bdedb52","html_url":"https://github.com/FMotalleb/nu_plugin_port_list","commit_stats":null,"previous_names":["fmotalleb/nu_plugin_port_list"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMotalleb","download_url":"https://codeload.github.com/FMotalleb/nu_plugin_port_list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781965,"owners_count":20832943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["netstat","networking","nushell-plugin"],"created_at":"2024-08-01T10:00:42.988Z","updated_at":"2025-04-02T08:31:00.983Z","avatar_url":"https://github.com/FMotalleb.png","language":"Rust","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# nu_plugin_port_list (Now Deprecated)\n\nLatest version of nushell supported: 0.102.0\nDeprecated in favor of [nu_plugin_port_extension](https://github.com/FMotalleb/nu_plugin_port_extension.git)\nwhich will be a mix of this plugin and port scan plugin\ncli signature is not changed but output result is now more stable\n\nA [nushell](https://www.nushell.sh/) plugin to display all active network connections.\nsimilar to `netstat -ntp`\n\n**Important**: to list pid correctly it needs to run as a privileged user (root)\n\n* flags\n\n```bash\n  -6, --disable-ipv4 - do not fetch ipv4 connections (ipv6 only)\n  -4, --disable-ipv6 - do not fetch ipv6 connections (ipv4 only)\n  -t, --disable-udp - do not fetch UDP connections (TCP only)\n  -u, --disable-tcp - do not fetch TCP connections (UDP only)\n  -p, --process-info - loads process info (process_name, cmd, binary path, ...)\n```\n\n## Examples\n\n* list all open ports\n\n```bash\n~\u003e port list\n```\n\n|type|ip_version|local_address|local_port|remote_address|remote_port|state|pid|\n|-|-|-|-|-|-|-|-|\n|tcp|4|0.0.0.0|22|0.0.0.0|0|LISTEN|1000|\n|tcp|4|192.168.100.8|42352|...|780|ESTABLISHED|9343|\n|tcp|4|192.168.100.8|60564|...|443|ESTABLISHED|2899|\n|tcp|4|127.0.0.1|38946|127.0.0.1|7890|ESTABLISHED|3376|\n|tcp|4|127.0.0.1|50180|127.0.0.1|37921|ESTABLISHED|7620|\n\n* list all open tcp port that are in LISTEN state and using local address 0.0.0.0\n\n ```bash\n~\u003e port list | where state == LISTEN and local_address == 0.0.0.0\n```\n\n|type|ip_version|local_address|local_port|remote_address|remote_port|state|pid|\n|-|-|-|-|-|-|-|-|\n|tcp|4|0.0.0.0|7070|0.0.0.0|0|LISTEN|993|\n|tcp|4|0.0.0.0|3306|0.0.0.0|0|LISTEN|9953|\n|tcp|4|0.0.0.0|9000|0.0.0.0|0|LISTEN|1525|\n|tcp|4|0.0.0.0|8585|0.0.0.0|0|LISTEN|10693|\n|tcp|4|0.0.0.0|22|0.0.0.0|0|LISTEN|1000|\n\n* get process that is listening on a port\n\n```bash\n~\u003e port list -t4p\n```\n\n|type|ip_version|local_address|local_port|remote_address|remote_port|state|pid|process_name|cmd|exe_path|process_status|process_user|process_group|process_effective_user|process_effective_group|process_environments|\n|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|\n|tcp|4|127.0.0.1|631|0.0.0.0|0|LISTEN|986|cupsd|/usr/sbin/cupsd -l|/usr/sbin/cupsd|Sleeping|0|0|0|0|[LANG=en_US.UTF-8,...]|\n\n## Installing\n\n* using [nupm](https://github.com/nushell/nupm)\n\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_port_list.git\nnupm install --path nu_plugin_port_list -f\n```\n\n* or compile manually\n\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_port_list.git\ncd nu_plugin_port_list\ncargo build -r\nplugin add target/release/nu_plugin_port_list\n```\n\n* or using cargo\n\n```bash\ncargo install nu_plugin_port_list\nplugin add ~/.cargo/bin/nu_plugin_port_list\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFMotalleb%2Fnu_plugin_port_list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFMotalleb%2Fnu_plugin_port_list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFMotalleb%2Fnu_plugin_port_list/lists"}