Step 2: Create a new vulnerability to run the script

1. Launch GFI LanGuard from Start > Programs > GFI LanGuard > GFI LanGuard .

2. Click the main options button and select Configure > Scanning Profiles Editor. Alternatively, click Ctrl + P. This opens the Scanning Profiles Editor.

3. From Common Tasks, click New scanning profile… or select an existing scanning profile you want to edit.

4. Key in a profile name and optionally, key in a description.

5. (Optional) Select Copy all settings from an existing profile and from the Profile drop-down menu, select the existing scanning profile you want to duplicate.

6. Click OK.

NOTE

The new scanning profile is added under the Profiles section in the left pane.

7. Select the new scanning profile and from the right-pane, click Add… This opens the Add vulnerability dialog.

8. From the General tab, key in general details, such as the vulnerability name, type, etc.

9. Click Conditions tab > Add.

10. Set the check type to Independent Checks > VB Script Test. Click Next.

11. Specify the location of the script (example: <ProductDataDir>\Scripts\newvulnerability.vbs). Click Next.

12. Select the attribute you want to set the condition on, the corresponding operator and the value of the script execution.

NOTE

Each script provides you with supported values in the Description section.

13. Click Finish.

The vulnerability check is added and will be included in the list of vulnerabilities checked for on the next scan of a computer.

To test it out, simply scan your localhost machine (127.0.0.1) and you should see the vulnerability warning under the miscellaneous section of the vulnerabilities node of the scan results.