use xslt!

This commit is contained in:
2023-04-09 01:06:01 +02:00
parent c7b85862e6
commit 3a162f4568
10 changed files with 238 additions and 227 deletions

6
init.sh Normal file → Executable file
View File

@ -7,8 +7,8 @@
###
echo "Nom du site ?"
read name
read site
echo "Plage IP (xxx.xxx.xxx.xxx/xx) ?"
read network
nmap --script smb-enum-shares.nse -oX "confs/$name.xml" $network
xsltproc toyaml.xsl "confs/$name.xml" > "confs/$name.yaml"
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"