Product manual

GFI LanGuard 14 Script Debugger | 228
14 Script Debugger
Scripts that identify custom vulnerabilities can be created using any VBScript compatible scripting
language. By default, GFI LanGuard ships with a script editor that you can use to create your custom
scripts.
New checks must be included in the list of checks supported by GFI LanGuard. Use the Vulnerability
Assessment tab to add new checks to the default list of vulnerability checks on a scan profile by scan
profile basis. GFI LanGuard also supports Python scripting.
Topics in this chapter:
14.1 Creating custom scripts using VBscript 228
14.2 Creating custom scripts using Python Scripting 233
14.3 SSH Module 237
14.1 Creating custom scripts using VBscript
GFI LanGuard supports and runs scripts written in VBscript compatible languages. Use VBscript
compatible languages to create custom scripts that can be run against your network targets.
Security auditing scripts can be developed using the script editor that ships with GFI LanGuard. This
built–in script editor includes syntax highlighting capabilities as well as debugging features that
support you during script development. Open the script editor from Start > Programs > GFI LanGuard
> LanGuard Script Debugger.
Note
1. For more information on how to develop scripts using the built–in script editor, refer
to the Scripting documentation help file included in Start > Programs > GFI LanGuard
> LanGuard Scripting documentation.
Note
GFI does not support requests related to problems in custom scripts. You can post any
queries that you may have about GFI LanGuard forums at http://forums.gfi.com/.
Through this forum, you are able to share scripts, problems and ideas with other GFI
LanGuard users.
14.1.1 Adding a vulnerability check that uses a custom VBScript (.vbs)
To create new vulnerability checks that use custom VBScripts, follow the steps described in this
section:
Step 1: Create the script
Step 2: Add new vulnerability checks
Step 3: Test the vulnerability check/script