lanScan/init.sh
2023-04-09 01:06:01 +02:00

15 lines
358 B
Bash
Executable File

#!/bin/bash
###
#
# Scan un réseau avec nmap pour créer un fichier de configuration
#
###
echo "Nom du site ?"
read site
echo "Plage IP (xxx.xxx.xxx.xxx/xx) ?"
read network
nmap --script smb-enum-shares.nse -oX "scans/$site.xml" $network
xsltproc --stringparam site "$site" --stringparam network $network toyaml.xsl "scans/$site.xml" > "site/$site.yaml"