Skip to content

Commit 4716e2e

Browse files
committed
Update pcman_ftp_traversal.rb
made some changes
1 parent e019aa1 commit 4716e2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/scanner/ftp/pcman_ftp_traversal.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def check
4444
connect
4545
disconnect
4646
if (banner =~ /220 PCMan's FTP Server 2\.0/)
47-
return Exploit::CheckCode::Vulnerable
47+
return Exploit::CheckCode::Appears
4848
else
4949
return Exploit::CheckCode::Safe
5050
end
@@ -75,7 +75,7 @@ def run_host(target_host)
7575
print_status("Stored #{file_path} to #{loot_file}")
7676

7777
# Read and print the data from the loot file.
78-
info_disclosure = IO.read(loot_file)
78+
info_disclosure = print_line(loot_file)
7979
print_status("Printing contents of #{file_path}")
8080
print_good("Result:\n #{info_disclosure}")
8181

0 commit comments

Comments
 (0)