nmap-nse-scripts icon indicating copy to clipboard operation
nmap-nse-scripts copied to clipboard

Attempt to index field 'body' (a nil value)

Open ryanohoro opened this issue 10 years ago • 0 comments

When the script fails to connect to a site for whatever reason, the content will be empty and error handling isn't sufficient.

NSE: http-wordpress-info against 10.0.0.24:80 threw an error!
scripts\http-wordpress-info.nse:102: attempt to index field 'body' (a nil value)
stack traceback:
        scripts\http-wordpress-info.nse:102: in function <scripts\http-wordpress-info.nse:71>
        (...tail calls...)

ryanohoro avatar Sep 11 '15 22:09 ryanohoro