nuscripts/plugins/port_scan.nu

9 lines
225 B
Plaintext
Raw Normal View History

2024-01-13 10:50:06 +00:00
# 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 }