1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-26 17:39:03 +00:00

add linebreaks to @output section of rpcinfo and SSH-hostkey script

This commit is contained in:
sven
2008-10-10 06:27:10 +00:00
parent 9d6c638dbb
commit ece81da41a
2 changed files with 29 additions and 29 deletions

View File

@@ -11,23 +11,23 @@
-- nmap host --script SSH-hostkey --script-args ssh_hostkey='visual bubble'
--
--@output
-- 22/tcp open ssh
-- | SSH Hostkey: 2048 f0:58:ce:f4:aa:a4:59:1c:8e:dd:4d:07:44:c8:25:11 (RSA)
-- 22/tcp open ssh
-- | SSH Hostkey: 2048 f0:58:ce:f4:aa:a4:59:1c:8e:dd:4d:07:44:c8:25:11 (RSA)
-- | +--[ RSA 2048]----+
-- | | .E*+ |
-- | | oo |
-- | | . o . |
-- | | O . . |
-- | | o S o . |
-- | | = o + . |
-- | | . * o . |
-- | | = . |
-- | | o . |
-- |_ +-----------------+
-- 22/tcp open ssh
-- | SSH Hostkey: 2048 xuvah-degyp-nabus-zegah-hebur-nopig-bubig-difeg-hisym-rumef-cuxex (RSA)
-- 22/tcp open ssh\n
-- | SSH Hostkey: 2048 f0:58:ce:f4:aa:a4:59:1c:8e:dd:4d:07:44:c8:25:11 (RSA)\n
-- 22/tcp open ssh\n
-- | SSH Hostkey: 2048 f0:58:ce:f4:aa:a4:59:1c:8e:dd:4d:07:44:c8:25:11 (RSA)\n
-- | +--[ RSA 2048]----+\n
-- | | .E*+ |\n
-- | | oo |\n
-- | | . o . |\n
-- | | O . . |\n
-- | | o S o . |\n
-- | | = o + . |\n
-- | | . * o . |\n
-- | | = . |\n
-- | | o . |\n
-- |_ +-----------------+\n
-- 22/tcp open ssh\n
-- | SSH Hostkey: 2048 xuvah-degyp-nabus-zegah-hebur-nopig-bubig-difeg-hisym-rumef-cuxex (RSA)\n
-- |_ ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwVuv2gcr0maaKQ69VVIEv2ob4OxnuI64fkeOnCXD1lUx5tTA+vefXUWEMxgMuA7iX4irJHy2zer0NQ3Z3yJvr5scPgTYIaEOp5Uo/eGFG9Agpk5wE8CoF0e47iCAPHqzlmP2V7aNURLMODb3jVZuI07A2ZRrMGrD8d888E2ORVORv1rYeTYCqcMMoVFmX9l3gWEdk4yx3w5sD8v501Iuyd1v19mPfyhrI5E1E1nl/Xjp5N0/xP2GUBrdkDMxKaxqTPMie/f0dXBUPQQN697a5q+5lBRPhKYOtn6yQKCd9s1Q22nxn72Jmi1RzbMyYJ52FosDT755Qmb46GLrDMaZMQ==
id = "SSH Hostkey"

View File

@@ -2,18 +2,18 @@
-- Connects to portmapper and fetches a list of all registered programs
--
--@output
-- 111/tcp open rpcbind
-- | rpcinfo:
-- | 100000 2 111/udp rpcbind
-- | 100005 1,2,3 705/udp mountd
-- | 100003 2,3,4 2049/udp nfs
-- | 100024 1 32769/udp status
-- | 100021 1,3,4 32769/udp nlockmgr
-- | 100000 2 111/tcp rpcbind
-- | 100005 1,2,3 706/tcp mountd
-- | 100003 2,3,4 2049/tcp nfs
-- | 100024 1 50468/tcp status
-- |_ 100021 1,3,4 50468/tcp nlockmgr
-- 111/tcp open rpcbind\n
-- | rpcinfo:\n
-- | 100000 2 111/udp rpcbind\n
-- | 100005 1,2,3 705/udp mountd\n
-- | 100003 2,3,4 2049/udp nfs\n
-- | 100024 1 32769/udp status\n
-- | 100021 1,3,4 32769/udp nlockmgr\n
-- | 100000 2 111/tcp rpcbind\n
-- | 100005 1,2,3 706/tcp mountd\n
-- | 100003 2,3,4 2049/tcp nfs\n
-- | 100024 1 50468/tcp status\n
-- |_ 100021 1,3,4 50468/tcp nlockmgr
require "shortport"