Nessus Network Auditing

Appendix A: The NASL2 Reference Manual

Michel Arboi

2004-08-25

Abstract

This is the NASL2 reference manual ($Revision: 1.48 $). It describes the language syntax and the internal functions.

If you want tips on how to write a security test in NASL, read The Nessus Attack Scripting Language Reference Guide by Renaud Deraison .

1 Introduction

1.1 History

Please read The Nessus Attack Scripting Language Reference Guide.

Here is what the man page says:

NASL comes from a private project called pkt_forge , which was written in late 1998 by Renaud Deraison and which was an interactive shell to forge and send raw IP packets (this pre-dates Perl s Net::RawIP by a couple of weeks). It was then extended to do a wide range of net work-related operations and integrated into Nessus as NASL .

The parser was completely hand-written and a pain to work with. In Mid-2002, Michel Arboi wrote a bison parser for NASL, and he and Renaud Deraison re-wrote NASL from scratch. Although the new NASL was nearly working as early as August 2002, Michel s laziness made us wait for early 2003 to have it working completely.

1.2 Differences between NASL1 and NASL2

  • NASL2 uses a real Bison parser. It is stricter and can handle complex expressions.

  • NASL2 has more built-in functions (although most of them could be back ported to NASL1).

  • NASL2 has more built-in operators.

  • NASL2 is much quicker (about sixteen times).

  • Most NASL2 scripts cannot run under NASL1.

  • And a few NASL1 scripts cannot run under NASL2 (but fixing...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Computers
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.