torrent/nushell/plugins/port_scan.nu
2024-01-13 13:01:54 +03:00

9 lines
225 B
Plaintext

# https://github.com/FMotalleb/nu_plugin_port_scan
cargo install nu_plugin_port_scan
register ~/.cargo/bin/nu_plugin_port_scan
50..60 | par-each { |it| port scan 8.8.8.8 $it -t 100ms } | where is_open | collect { $in }