Taras,

On Sun, Jul 12, 2009 at 8:23 PM, Andres Riancho<andres.rian...@gmail.com> wrote:
> Taras,
>
> On Sun, Jul 12, 2009 at 6:29 PM, Taras<ta...@securityaudit.ru> wrote:
>> Hello, list!
>>
>> While developing proxy "one click check" feature
>> (when you can click right button in Request/Response History on item and 
>> audit it)
>> I meet problem when I can't find out if plugin find something by it's return 
>> state :(
>>
>> Here some draft code:
>>
>>  def _auditRequest(self, menuItem, requestId, pluginName, pluginType):
>>        """SoC of audit custom request."""
>>        searchResult = self._dbHandler.searchById(requestId)
>>        if len(searchResult) != 1:
>>            return
>>        request, response = searchResult[0]
>>        plugin = self.w3af.getPluginInstance(pluginName, pluginType)
>>        plugin.audit_wrapper(request)
>>        try:
>>            plugin.end()
>>        except w3afException, e:
>>            om.out.error(str(e))
>>
>> In this situation I can't even show to user alert of check state or 
>> something like that...
>> So, there is the question. Why we don't use return values in core plugins 
>> methods like audit?
>> For example, we can return True if plugin find something or False if there 
>> is no results.
>
> Yes, I totally agree, we need to change that. I'll do it in a minute,
> please wait,

I think it's done =)

http://w3af.svn.sourceforge.net/viewvc/w3af?view=rev&revision=2951

> Cheers,
>
>>
>> --
>> Taras
>> ----
>> "Software is like sex: it's better when it's free." - Linus Torvalds
>>
>> ------------------------------------------------------------------------------
>> Enter the BlackBerry Developer Challenge
>> This is your chance to win up to $100,000 in prizes! For a limited time,
>> vendors submitting new applications to BlackBerry App World(TM) will have
>> the opportunity to enter the BlackBerry Developer Challenge. See full prize
>> details at: http://p.sf.net/sfu/Challenge
>> _______________________________________________
>> W3af-develop mailing list
>> W3af-develop@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/w3af-develop
>>
>>
>
>
>
> --
> Andrés Riancho
> Founder, Bonsai - Information Security
> http://www.bonsai-sec.com/
> http://w3af.sf.net/
>



-- 
Andrés Riancho
Founder, Bonsai - Information Security
http://www.bonsai-sec.com/
http://w3af.sf.net/

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to