February 2015
Beginner to intermediate
244 pages
4h 37m
English
The NSE registry is a Lua table designed to store variables shared between all scripts during a scan. The registry is stored at the nmap.registry variable. For example, some of the brute-force scripts will store valid credentials so that other scripts can use them to perform authenticated actions. We insert values as in any other regular Lua table:
table.insert( nmap.registry.credentials.http, { username = username, password = password } )Remember to select unique registry names to avoid overriding values used by other scripts.
Read now
Unlock full access