Daniel,

    Sorry for the late response, please read below.

On Wed, Feb 10, 2010 at 3:11 PM, Daniel Gaddis
<[email protected]> wrote:
> I am running windows xp sp3. I installed Python 2.5.2 and w3af.
>
>
>
> When I run the w3af console I get…
>
>
>
> You have to install pyOpenSSL library.
>
>     - On Debian based distributions: apt-get install python-pyopenssl
>
>     - On Mac: sudo port install py25-socket-ssl
>
>
>
> I did google and founds hits. The following is but one…
>
>
>
> http://sourceforge.net/mailarchive/forum.php?thread_name=e9c1dfa70908140926l47b68ddawb7d646ffdb18da58%40mail.gmail.com&forum_name=w3af-users
>
>
>
> I did verify that libeay32.dll (same version) is in both
>
> c:\python25\lib\site-packages\openssl\
>
> c:\program files\w3af\
>
>
>
> I also renamed other libeay32.dll files stored in other directories so they
> would not be picked up by anything. I also placed a copy in
> c:\windows\system32\
>

    Oh, this should have fixed the issue...

    Basically what happens here is that the python wrapper is trying
to load the DLL and because of a previously installed version of the
DLL it fails to do so. Renaming all libeay32.dll in the system to
"libeay32.dll_" and leaving only the ones installed by w3af should do
the trick... Maybe Ulises (w3af windows expert) can add some more
comments to this fact?

>
> Although I did not include it here the c:\python25\pyopenssl-wininst.log did
> not have any real eye catcher to me that anything was installed wrong. I can
> include it if wanted.
>

    In many cases, just as you say, the installation works fine but it
still fails to load the library.

>
> There was a previous note to run a python console, and then "from OpenSSL
> import SSL" ?
>
>
>
> From that I get the following…
>
>
>
> The ordinal 968 could not be located in the dynamic link library
> LIBEAY32.dll
>
> ok
>
> Traceback (most recent call last):
>
>   File "<stdin>", line 1, in <module>
>
>   File "C:\Python25\Lib\site-packages\OpenSSL\__init__.py", line 11, in
> <module>
>
>
>
>     import rand, crypto, SSL, tsafe
>
> ImportError: DLL load failed with error code 182
>

    Yes... this is the error that we usually get when "a different"
DLL is loaded.

> Any suggestions?

    I'm not sure about the following steps, but... what if:

- Identify the LIBEAY32.dll installed by pyopenssl
- Identify all other LIBEAY32.dll files
- Rename all LIBEAY32.dll to "LIBEAY32.dll_" (except from the pyopenssl one)
- **restart!!**. I'm not an advanced windows user, but... maybe there
is some kind of "dll cache" ?!?!
- Try again the "from OpenSSL import SSL".


>
>
> Thanks,
>
> Daniel
>
>
>
>
>
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> W3af-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/w3af-users
>
>



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

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
W3af-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/w3af-users

Reply via email to