Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

undefined symbol: sslv3_method #70

Open
bannsec opened this issue Nov 5, 2017 · 7 comments
Open

undefined symbol: sslv3_method #70

bannsec opened this issue Nov 5, 2017 · 7 comments

Comments

@bannsec
Copy link

bannsec commented Nov 5, 2017

After tweaking this library to get past the non-existant python3 class of basestring, i've run into another issue.

In [6]: from adb import sign_m2crypto
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-6-f9a280645ee6> in <module>()
----> 1 from adb import sign_m2crypto

~/.virtualenvs/frida/lib/python3.5/site-packages/adb/sign_m2crypto.py in <module>()
     13 # limitations under the License.
     14
---> 15 from M2Crypto import RSA
     16
     17 from adb import adb_protocol

~/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/__init__.py in <module>()
     24 version_info = StrictVersion(__version__).version
     25
---> 26 from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
     27                       PGP, RSA, Rand, SMIME, SSL, X509, m2crypto,
     28                       ftpslib, httpslib, m2, m2urllib, m2xmlrpclib,
~/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/ASN1.py in <module>()
     13 import time
     14
---> 15 from M2Crypto import BIO, m2, util
     16 if util.py27plus:
     17     from typing import Any, Callable, Optional, Tuple  # noqa

~/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/BIO.py in <module>()
      8 import io  # noqa
      9
---> 10 from M2Crypto import m2, six, util
     11 if util.py27plus:
     12     from typing import AnyStr, Callable, Iterable, Optional, Union  # noqa

~/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/m2.py in <module>()
     28 """
     29
---> 30 from M2Crypto.m2crypto import *
     31 lib_init()

~/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/m2crypto.py in <module>()
     24                 fp.close()
     25             return _mod
---> 26     _m2crypto = swig_import_helper()
     27     del swig_import_helper
     28 else:

~/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/m2crypto.py in swig_import_helper()
     20         if fp is not None:
     21             try:
---> 22                 _mod = imp.load_module('_m2crypto', fp, pathname, description)
     23             finally:
     24                 fp.close()

~/.virtualenvs/frida/lib/python3.5/imp.py in load_module(name, file, filename, details)
    240                 return load_dynamic(name, filename, opened_file)
    241         else:
--> 242             return load_dynamic(name, filename, file)
    243     elif type_ == PKG_DIRECTORY:
    244         return load_package(name, filename)

~/.virtualenvs/frida/lib/python3.5/imp.py in load_dynamic(name, path, file)
    340         spec = importlib.machinery.ModuleSpec(
    341             name=name, loader=loader, origin=path)
--> 342         return _load(spec)
    343
    344 else:

ImportError: /home/user/.virtualenvs/frida/lib/python3.5/site-packages/M2Crypto/_m2crypto.cpython-35m-x86_64-linux-gnu.so: undefined symbol: sslv3_method
@fahhem
Copy link
Contributor

fahhem commented Nov 6, 2017 via email

@bannsec
Copy link
Author

bannsec commented Nov 9, 2017

It's a new issue with M2Crypto. In discussion w/ the author, I have a PR in to fix it:

https://gitlab.com/m2crypto/m2crypto/issues/189

I am curious why this library requires M2Crypto<=0.26.4. This would seem to preclude any bugfixes from being installed (such as the one mentioned in this ticket).

@dmknght
Copy link

dmknght commented Jan 15, 2018

I had same issue on my ubuntu server (virtualbox machine). I removed M2Crypto from pip and i installed python-m2crypto (apt-get). My issue solved.

@zgoda
Copy link

zgoda commented Apr 18, 2018

There is merge req that will solve this issue. Until it's merged & released we're limited to workarounds.

https://gitlab.com/m2crypto/m2crypto/merge_requests/194

@gamgi
Copy link

gamgi commented Jun 7, 2018

As the fix is now merged, this issue can be solved by pip install --upgrade M2Crypto

@fahhem
Copy link
Contributor

fahhem commented Jun 7, 2018

What version is the PR in? I'll update setup.py to mention the correct version(s)

@zgoda
Copy link

zgoda commented Jun 8, 2018

It's in 0.30 milestone, current version in PyPI is 0.30.1

https://gitlab.com/m2crypto/m2crypto/milestones/13

EDIT:
Confirmed this goes away after updating M2Crypto to latest. Pip barks about incompatibility with adb requrement but AdbCommands instance seems to work as usual.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants