Skip to content

Commit 8ff70ca

Browse files
committed
ftp_anonymous: Update ruby code
1 parent 54a5b31 commit 8ff70ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/auxiliary/scanner/ftp/ftp_anonymous.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def register_creds(target_host, access_type)
108108
# Build service information
109109
service_data = {
110110
address: target_host,
111-
port: datastore['RPORT'],
111+
port: rport,
112112
service_name: 'ftp',
113113
protocol: 'tcp',
114114
workspace_id: myworkspace_id
@@ -117,7 +117,7 @@ def register_creds(target_host, access_type)
117117
# Build credential information
118118
credential_data = {
119119
origin_type: :service,
120-
module_fullname: self.fullname,
120+
module_fullname: fullname,
121121
private_data: datastore['FTPPASS'],
122122
private_type: :password,
123123
username: datastore['FTPUSER'],

0 commit comments

Comments
 (0)