+findtplink.sh +findsyno.sh

This commit is contained in:
T0MuX 2025-06-04 12:24:36 +02:00
parent 117522044c
commit a93aa73f80
2 changed files with 26 additions and 0 deletions

13
bashrc.d/findsyno.sh Normal file
View file

@ -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"
}

13
bashrc.d/findtplink.sh Normal file
View file

@ -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"
}