Home page logo

metasploit logo Metasploit mailing list archives

Re: running a mysql query and getting the error
From: Tod Beardsley <todb () packetfu com>
Date: Fri, 18 Jan 2013 18:13:56 -0600

Totally. You don't want to have whatever module's using it to error
out of course -- but sounds like you want a return value to contain
something relevant for the error.

PRs get accepted roughly in accordance with their clarity and
functional testing / use cases.

On Fri, Jan 18, 2013 at 6:10 PM, Robin Wood <robin () digininja org> wrote:

On Jan 18, 2013 10:10 PM, "Robin Wood" <robin () digininja org> wrote:

I'm using the mysql_query method from lib/msf/core/exploit/mysql.rb
but that method captures and handles errors. It returns nil if it hits
an error but the sql I'm running also returns nil so checking that
doesn't help.

What is the best way to run a mysql query through the framework but
get access to any error messages which are thrown?

If there isn't a way to do this then if I were to submit a pull request with
a couple of new functions which didn't have error handling built in, would
it likely the accepted?





  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]