Skip to content

Commit aa8549f

Browse files
author
HD Moore
committed
Correct use of rport.
1 parent 752ae33 commit aa8549f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/scanner/pcanywhere/pcanywhere_udp.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def scanner_postscan(batch)
6464
info << "( #{data[:caps]} ) "
6565
end
6666

67-
report_service(:host => ip, :port => rport, :proto => 'udp', :name => "pcanywhere_stat", :info => info)
68-
report_note(:host => ip, :port => rport, :proto => 'udp', :name => "pcanywhere_stat", :update => :unique, :ntype => "pcanywhere.status", :data => data )
69-
print_status("#{ip}:#{rport} #{info}")
67+
report_service(:host => ip, :port => datastore['RPORT'], :proto => 'udp', :name => "pcanywhere_stat", :info => info)
68+
report_note(:host => ip, :port => datastore['RPORT'], :proto => 'udp', :name => "pcanywhere_stat", :update => :unique, :ntype => "pcanywhere.status", :data => data )
69+
print_status("#{ip}:#{datastore['RPORT']} #{info}")
7070
end
7171
end
7272

0 commit comments

Comments
 (0)