Note

This code is unmaintained.



Lua Code

Fortress Security Scanner

Fortress is the name of a simple script-based security scanner which aims to be:

  • Simple to control, build & use.
  • Extensible.
  • Reasonably portable.

The code is written in C++ and developed primarily upon the GNU/Linux platform. All the security tests should be written in the LUA extension language. (The scanner includes a copy of the LUA scripting engine, and can thus execute scripts directly.)

top
Requirements

To build the software you will need :

  • A C++ compiler.
  • LUA 5.0 development libraries + headers.
  • libcurl 3.0 development libraries + headers.

These can be installed en masse upon Debian GNU/Linux hosts with the following command:

apt-get install build-essential liblualib50-dev \
  liblua50-dev libcurl3-dev
top
Using Fortress

Once compiled you can run all tests against a single host with the following command:

./fortress --target=hostname --port NN

If you wish to run only a single test you may run:

./fortress --script=./script/name.lua

If you're just interested in writing simple scripts you can create one and execute it directly:

./fortress path/to/script.lua

For more information invoke 'fortress --help'.

top
Download Fortress

You can download the tarball from the following link:

There is also a public repository which you may use to keep track of the current developments, or submit patches/scripts against:

top
Writing Your Own Tests

Writing your own tests is what makes a scriptable security tester useful. You will have access to the full power of the LUA scripting environment available to you in your scripts.

Additionally there are some new functions which are implemented by the scanning engine - these are described within the primitives documentation.

top
Network Primitives

If you'd like to use more general purpose networking primitives please see the following project:

This implements Lua-callable network primitives such as bind(), accept(), connect(), read(), and write().

top