Skip to content

Commit 82f89e6

Browse files
committed
Clean up nfs mount scanner to *print_* better
1 parent b2f9307 commit 82f89e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/auxiliary/scanner/nfs/nfsmount.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,12 @@ def run_host(ip)
7676
:update => :unique_data
7777
)
7878
elsif(exports == 0x00)
79-
print_status("#{ip} - No exported directories")
79+
vprint_status("#{ip} - No exported directories")
8080
end
8181

8282
sunrpc_destroy
83-
rescue ::Rex::Proto::SunRPC::RPCTimeout
83+
rescue ::Rex::Proto::SunRPC::RPCTimeout, ::Rex::Proto::SunRPC::RPCError => e
84+
vprint_error(e.to_s)
8485
end
8586
end
8687

0 commit comments

Comments
 (0)