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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.