Skip to content

Commit d1adfee

Browse files
committed
ftp_anonymous: Update ruby code
1 parent 12d2b7b commit d1adfee

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
@@ -102,7 +102,7 @@ def register_creds(target_host, access_type)
102102
# Build service information
103103
service_data = {
104104
address: target_host,
105-
port: datastore['RPORT'],
105+
port: rport,
106106
service_name: 'ftp',
107107
protocol: 'tcp',
108108
workspace_id: myworkspace_id
@@ -111,7 +111,7 @@ def register_creds(target_host, access_type)
111111
# Build credential information
112112
credential_data = {
113113
origin_type: :service,
114-
module_fullname: self.fullname,
114+
module_fullname: fullname,
115115
private_data: datastore['FTPPASS'],
116116
private_type: :password,
117117
username: datastore['FTPUSER'],

0 commit comments

Comments
 (0)