From a93aa73f8001461ddae259e7c07c2e7923efd403 Mon Sep 17 00:00:00 2001 From: T0MuX Date: Wed, 4 Jun 2025 12:24:36 +0200 Subject: [PATCH] +findtplink.sh +findsyno.sh --- bashrc.d/findsyno.sh | 13 +++++++++++++ bashrc.d/findtplink.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 bashrc.d/findsyno.sh create mode 100644 bashrc.d/findtplink.sh 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" +}