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

undefined symbol: sslv3_method #70

Open

Description

@bannsec

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

Activity

  1. fahhem commented on Nov 6, 2017

    @fahhem
    Contributor
  2. bannsec commented on Nov 9, 2017

    @bannsec
    Author

    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).

  3. dmknght commented on Jan 15, 2018

    @dmknght

    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.

  4. zgoda commented on Apr 18, 2018

    @zgoda

    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

  5. gamgi commented on Jun 7, 2018

    @gamgi

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

  6. fahhem commented on Jun 7, 2018

    @fahhem
    Contributor

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

  7. zgoda commented on Jun 8, 2018

    @zgoda

    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.

  8. added a commit that references this issue on Jan 6, 2019
    bbf0e33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions