I’ve updated the http-screenshot-html script. You can download it at the Google Code page. The primary changes are:
- Compatibility with Lua 5.2 as used in NMAP 6.25
- Added the “imgquality” script argument to modify the image output quality of wkhtmltoimage.
See the script’s Manual for full details on using the script.
Also, it appears that there is a bug in Lua 5.2. If you use backslashes while calling a script, Lua will throw an error about an Invalid Escape Sequence. So make sure you use forward slashes when calling scripts or using script args in NMAP 6.25. This should be fixed in a future release of NMAP.