24
Мар
0

Проверка компьютеров сети на доступность по порту 5900

#!/bin/bash

list=`nmap -p5900 192.168.1.0/24 -oG — |grep 5900/open | cut -d’ ‘ -f 2`

shablon=
for addr in $list
do
echo $addr
done

-oG <имя_файла> (grepable вывод)

http://nmap.org/book/output-formats-grepable-output.html

Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.

Comments are closed.

Celadon theme by the Themes Boutique