mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Wrap long lines in NSE (>200 columns)
Mostly in documentation (the description field, for instance), but also some long literal strings. Lua 5.2 introduces a string escape, "\z", which escapes any amount of subsequent whitespace, including newlines. This can be used to wrap string literals without upsetting indentation. http://www.lua.org/manual/5.2/manual.html#3.1
This commit is contained in:
@@ -14,11 +14,16 @@ local openssl = stdnse.silent_require "openssl"
|
||||
description = [[
|
||||
Shows SSH hostkeys.
|
||||
|
||||
Shows the target SSH server's key fingerprint and (with high enough verbosity level) the public key itself. It records the discovered host keys in <code>nmap.registry</code> for use by other scripts. Output can be controlled with the <code>ssh_hostkey</code> script argument.
|
||||
Shows the target SSH server's key fingerprint and (with high enough
|
||||
verbosity level) the public key itself. It records the discovered host keys
|
||||
in <code>nmap.registry</code> for use by other scripts. Output can be
|
||||
controlled with the <code>ssh_hostkey</code> script argument.
|
||||
|
||||
You may also compare the retrieved key with the keys in your known-hosts file using the <code>known-hosts</code> argument.
|
||||
You may also compare the retrieved key with the keys in your known-hosts
|
||||
file using the <code>known-hosts</code> argument.
|
||||
|
||||
The script also includes a postrule that check for duplicate hosts using the gathered keys.
|
||||
The script also includes a postrule that check for duplicate hosts using the
|
||||
gathered keys.
|
||||
]]
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user