{"id":13541286,"url":"https://github.com/FMotalleb/nu_plugin_port_scan","last_synced_at":"2025-04-02T08:31:01.814Z","repository":{"id":205753602,"uuid":"714984407","full_name":"FMotalleb/nu_plugin_port_scan","owner":"FMotalleb","description":"A nushell plugin for scanning ports on a target.","archived":true,"fork":false,"pushed_at":"2025-02-10T16:33:27.000Z","size":85,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T16:27:14.740Z","etag":null,"topics":["nushell-plugin","port-scanner"],"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-06T08:51:49.000Z","updated_at":"2025-02-10T16:34:36.000Z","dependencies_parsed_at":"2024-06-16T19:08:49.736Z","dependency_job_id":"56c9bfa1-6f08-4120-a1ae-5f9080344a10","html_url":"https://github.com/FMotalleb/nu_plugin_port_scan","commit_stats":null,"previous_names":["fmotalleb/nu_plugin_port_scan"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_scan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_scan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_scan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FMotalleb%2Fnu_plugin_port_scan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FMotalleb","download_url":"https://codeload.github.com/FMotalleb/nu_plugin_port_scan/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781974,"owners_count":20832946,"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":["nushell-plugin","port-scanner"],"created_at":"2024-08-01T10:00:43.050Z","updated_at":"2025-04-02T08:31:01.808Z","avatar_url":"https://github.com/FMotalleb.png","language":"Rust","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# nu_plugin_port_scan (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 list plugin\ncli signature is not changed\n\nA [nushell](https://www.nushell.sh/) plugin for scanning ports on a target\n\nSimilar to `nc -vz {ip} {port} -w {timeout}` the parameters are mapped to `port scan {ip} {port} -t {timeout}`\n\n## Examples\n\n```bash\n~\u003e port scan 8.8.8.8 53\n╭─────────┬───────────────────╮\n│ address │ 8.8.8.8           │\n│ port    │ 53                │\n│ result  │ Open              │\n│ is_open │ true              │\n│ elapsed │ 140ms 965µs 400ns │\n╰─────────┴───────────────────╯\n```\n\n```bash\n~\u003e 50..60 | par-each { |it| port scan 8.8.8.8 $it -t 100ms } |  where is_open | collect { $in }\n╭───┬─────────┬──────┬────────┬─────────┬──────────────────╮\n│ # │ address │ port │ result │ is_open │     elapsed      │\n├───┼─────────┼──────┼────────┼─────────┼──────────────────┤\n│ 0 │ 8.8.8.8 │   53 │ Open   │ true    │ 39ms 704µs 200ns │\n╰───┴─────────┴──────┴────────┴─────────┴──────────────────╯\n```\n\n```bash\n~\u003e [8.8.8.8, 1.1.1.1, 1.0.0.1, 4.2.2.4] | par-each { |it| port scan $it 53 -t 1sec } |  where is_open | collect { $in } | sort-by elapsed\n╭───┬─────────┬──────┬────────┬─────────┬──────────────────╮\n│ # │ address │ port │ result │ is_open │     elapsed      │\n├───┼─────────┼──────┼────────┼─────────┼──────────────────┤\n│ 0 │ 8.8.8.8 │   53 │ Open   │ true    │ 40ms 519µs 900ns │\n│ 1 │ 1.0.0.1 │   53 │ Open   │ true    │ 93ms 471µs 500ns │\n│ 2 │ 4.2.2.4 │   53 │ Open   │ true    │       97ms 130µs │\n│ 3 │ 1.1.1.1 │   53 │ Open   │ true    │ 99ms 867µs 500ns │\n╰───┴─────────┴──────┴────────┴─────────┴──────────────────╯\n```\n\n## Installing\n\n* using [nupm](https://github.com/nushell/nupm)\n\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_port_scan.git\nnupm install --path nu_plugin_port_scan -f\n```\n\n* or compile manually\n\n```bash\ngit clone https://github.com/FMotalleb/nu_plugin_port_scan.git\ncd nu_plugin_port_scan\ncargo build\nplugin add target/debug/nu_plugin_port_scan\n```\n\n* or using cargo\n\n```bash\ncargo install nu_plugin_port_scan\nplugin add ~/.cargo/bin/nu_plugin_port_scan\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFMotalleb%2Fnu_plugin_port_scan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFMotalleb%2Fnu_plugin_port_scan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFMotalleb%2Fnu_plugin_port_scan/lists"}