Desktop scripts

This commit is contained in:
Sonny 2017-06-17 18:35:23 +02:00
parent 6079f98037
commit 639e4dbf2d
19 changed files with 321 additions and 0 deletions

8
scripts/scan-network Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
#Why does it not work all the time ?
#When this command runs nmap tries to ping the given IP address range to check if the hosts are alive. If ping fails it tries to send syn packets to port 80 (SYN scan). This is not hundred percent reliable because modern host based firewalls block ping and port 80. Windows firewall blocks ping by default. The hosts you have on the network are blocking ping and the port 80 is not accepting connections. Hence nmap assumes that the host is not up.
# $1 = ip gateway
# example 192.168.178.1/24
nmap -sP $1