Skip to content

Commit 3e20296

Browse files
committed
Add service_details for SSH
1 parent e223343 commit 3e20296

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/exploits/linux/ssh/ubiquiti_airos_file_upload.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,14 @@ def ssh_login
159159
nil
160160
end
161161

162+
# This is for store_valid_credential above
163+
def service_details
164+
super.merge(
165+
port: datastore['SSH_PORT'],
166+
service_name: 'ssh'
167+
)
168+
end
169+
162170
#
163171
# Persistence and cleanup methods
164172
#

0 commit comments

Comments
 (0)