Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [[ "$input" -eq 1 ]]; then
- inspec exec tests/$plateform -t ssh://$user:$password@$target --reporter html:/share/reports/local-machine-$plateform.html
- elif [[ "$input" -eq 2 ]]; then
- inspec exec tests/$plateform -t ssh://$user:$password@$target --reporter html:/share/reports/$target-$plateform.html
- elif [[ "$input" -eq 3 ]]; then
- inspec exec tests/$plateform -t ssh://$user@$target -i /share/private_key --reporter html:/share/reports/$target-$plateform.html
- fi
- e=$?
- restore='\033[0m'
- red='\033[1;31m'
- if [ $e -ne 0 ]; then
- echo -e "$red Une erreur s'est produite ! Vérifiez que les informations entrées sont correctes puis Répétez le scan ! $restore"
- fi;
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement