HACKING/Network1 Script#1 Bash script to sweep ping 다수 호스트의 ping 응답 여부 확인#1 Hosts up In this example, the Bash script will scan the network for hosts attached to an IP address 10.1.1.1 – 255. The script will print message Node with IP: IP-address is up if ping command was successful. Feel free to modify the script to scan your hosts range. #!/bin/bash is_alive_ping() { ping -c 1 $1 > /dev/null [ $? -eq 0 ] && echo Node with IP: $i is up. } for i .. 2022. 9. 6. 이전 1 다음