Settings

Theme

TCP Port Scanner in Bash

catonmat.net

2 points by warenhor 5 years ago · 1 comment

Reader

desktopninja 5 years ago

nice script. came up with this some moons ago:

  seq \
  --equal-width 1 65535 | \
    xargs \
      --max-procs 16 \
      --max-args 1 \
      --replace=_$ \
        nc \
   --verbose \
   -z \
          --wait 1 \
   ${TARGET_HOST} _$ 2>&1 | \
     grep --ignore-case --only-matching --regexp "connected.*"
Served me needs on local subnets

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection