Metasploit mailing list archives
Re: checking file existence on meterpreter client
From: HD Moore <hdm () metasploit com>
Date: Fri, 04 Dec 2009 16:54:53 -0600
On Fri, 2009-12-04 at 17:21 -0500, Joshua Smith wrote:
What's the easiest way to check for file existence on the meterpreter client side? Do I just have to handle the error thrown, something like? begin stat = client.fs.file.stat.new(file2find) rescue print_status("File not found") end
Right now the only ways to do this are to use the begin/rescue with stat.new() or looking at the contents of the directory listing from that API. I added a feature request for a file.exists? method. http://www.metasploit.com/redmine/issues/608 -HD _______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- checking file existence on meterpreter client Joshua Smith (Dec 04)
- Re: checking file existence on meterpreter client HD Moore (Dec 04)