pipscanでポートスキャン
from ポートスキャン
pipscanでポートスキャン
ncatがないWindowsのときはPythonで代用
https://pypi.org/project/pipscan
code:sh
for i in seq 2 100; do (python -c "import pipscan; pipscan.single_scan('192.168.3.$i', 22)" | grep -v -e 'is not open' | awk 'NF!=0{print $0}' | grep -B 3 'matches' &); done
code:sh
Scanning 192.168.3.9 with port 22
+ Port 22 is OPEN (ssh)
Binary file (standard input) matches