diff --git a/bashrc.d/findsyno.sh b/bashrc.d/findsyno.sh new file mode 100644 index 0000000..aa379f9 --- /dev/null +++ b/bashrc.d/findsyno.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Trouver les NAS Synology +findsyno() { +if [ ! -z $1 ] + then + scan_network=$1 + else + read -p "Saisir réseau/masque : " scan_network +fi +echo "Looking for Synology devices on $scan_network ..." +sudo nmap -sn $scan_network | grep -B2 -e "90:09:D0" -e "00:11:32" +} diff --git a/bashrc.d/findtplink.sh b/bashrc.d/findtplink.sh new file mode 100644 index 0000000..b2b1776 --- /dev/null +++ b/bashrc.d/findtplink.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Trouver les équipements TP Link +findtplink() { +if [ ! -z $1 ] + then + scan_network=$1 + else + read -p "Saisir réseau/masque : " scan_network +fi +echo "Looking for TP-Link devices on $scan_network ..." +sudo nmap -sn $scan_network | grep -B2 -e "28:87:BA" -e "78:8C:B5" -e "C0:C9:E3" -e "34:60:F9" -e "1C:61:B4" -e "30:DE:4B" -e "9C:53:22" -e "50:91:E3" -e "3C:52:A1" -e "48:22:54" -e "E4:FA:C4" -e "EC:75:0C" +}