How do it…

Perform the following steps:

  1. Open Notepad++ or any text editor.
  2. In order to create a Windows check for a custom item, we need to begin and end the check with the custom_item tag:
<custom_item></custom_item>
  1. Now, we need to identify the required metadata attributes and define them. In this case, we will go with description and info:
<custom_item> description: "Free disk space in system partition#C drive" info: "Powershell command will output the free space available on C drive"</custom_item>
  1. Now, we need to define the type of check we need to perform. Nessus executes all the NASL windows commands on PowerShell, and so the type of the check would be AUDIT_POWERSHELL:
<custom_item>type: AUDIT_POWERSHELL description: "Free disk ...

Get Network Scanning Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.