Skip to content

Commit

Permalink
Nmap scripts/http-screenshot: accept invalid SSL certificates
Browse files Browse the repository at this point in the history
p-l- committed Feb 13, 2018
1 parent 179db65 commit 882cb96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmap_scripts/http-screenshot.nse
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ setTimeout(phantom.exit, %d * 1000);
]]):format(width, height, ssl and "https" or "http", hostname, strport, fname,
timeout))
tmpfdesc:close()
os.execute(("phantomjs %s >/dev/null 2>&1"):format(tmpfname))
os.execute(("phantomjs --ignore-ssl-errors=true %s >/dev/null 2>&1"):format(tmpfname))
os.remove(tmpfname)
return (os.rename(fname, fname)
and ("Saved to %s"):format(fname)

0 comments on commit 882cb96

Please sign in to comment.