Skip to content

Commit 2b5a36d

Browse files
committed
ftp_login: Add report_note
1 parent 09f795a commit 2b5a36d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

modules/auxiliary/scanner/ftp/ftp_login.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,28 @@ def grab_report_banner
6767
disconnect
6868
end
6969

70+
unless banner
71+
vprint_warning('No FTP banner received')
72+
return
73+
end
74+
75+
# Cleaned up FTP banner
7076
report_service(
7177
host: rhost,
7278
port: rport,
7379
proto: 'tcp',
7480
name: 'ftp',
7581
info: banner_version
7682
)
83+
84+
# Raw FTP banner
85+
report_note(
86+
host: rhost,
87+
port: rport,
88+
proto: 'tcp',
89+
type: 'ftp.banner',
90+
data: { banner: banner.strip }
91+
)
7792
end
7893

7994
def run_host(ip)

0 commit comments

Comments
 (0)