You can use the Window’s Powershell scripting to automatically send a report as an email attachment once a scheduled scan completes. To do so follow the below steps:
- Downloadthe files ScanAndMail.ps1 and urls.txt files.
- Copy the files ps1 and urls.txt files to the Netsparker installation folder.
- Open ps1 with a text editor and specify the SMTP server and mail settings from lines 3 to 11.
- Open txt with a text editor and specify the URL of the web application you would like to scan and the path where to save the scan report separated with a semi colon. To scan multiple websites specify the same parameters for each website in a new line.
- Once all the settings are configured, use the Powershell to execute the script, which creates a Windows Scheduled Task and launches the scan(s):
Powershell –ExecutionPolicy Unrestricted –File “C:\Program Files (x86)\Netsparker\ScanAndMail.ps1
Note: the installation folder of Netsparker Desktop in a 32 bit Windows installation is c:\Program Files\Netsparker\