mOses,

On Tue, Jun 30, 2009 at 12:11 AM, mOses<trklis...@networksamurai.org> wrote:
> Andres,
>
>  There are no such things as stupid questions. So I'll just put this out
> there. I am seeing in the options map where I can apply a 'save' in order to
> safe the NTLM Authentication settings. This is *NOT* in the
> urlOpenSettings.py file I sent you ealier today, this is something I am now
> working on.
>
> What I get when I try and save the username (or password) is the following:
>
>  File "C:\Program Files\w3af\core\data\url\urlOpenerSettings.py", line 477,
> in
> setOptions
>    self.setNtlmAuth(  optionsMap['ntlmAuthUser'].getValue(),
> optionsMap['ntlmAu
> thPass'].getValue()  )
> TypeError: setNtlmAuth() takes exactly 4 arguments (3 given)

For what I can see, you're missing a parameter.
I think that setNtlmAuth should take user, pass, url; and you're only
sending user and pass.

> Now basically I know that under setNtlmAuth I have the following:
>
> self._password_mgr.add_password(None, url, username, password)
>
> Now when I looked at the code[0] on their site it just shows this example:
>
> user = 'DOMAIN\User'
> password = "Password"
> url = "http://ntlmprotectedserver/securedfile.html";
>
> Now the 'url' parameter w3af will pass into it I assume using the self._ulib
> parameter ( i think ).

No, self._ulib is another thing.
I think that you should take a look at the basicAuthDomain setting in
urlOpenerSettings. The same idea should be used for NTLM
authentication.

> Any thoughts?
>
> M
>
> [0] http://code.google.com/p/python-ntlm
>
> On Jun 21, 2009, at 10:24 PM, Andres Riancho wrote:
>
>
>
>>>>
>>>
>>>
>>
>>
>> --
>> 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/

------------------------------------------------------------------------------
_______________________________________________
W3af-develop mailing list
W3af-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/w3af-develop

Reply via email to