This repository has been archived on 2025-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
lanScan2/init.sh
2023-04-09 17:28:10 +02:00

15 lines
370 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 "Adresse réseau CIDR (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"