Coder Social home page Coder Social logo

Problems with python engine used about gef HOT 4 CLOSED

hugsy avatar hugsy commented on August 25, 2024
Problems with python engine used

from gef.

Comments (4)

hugsy avatar hugsy commented on August 25, 2024

On Mon, Jun 20, 2016 at 05:43:48AM -0700, Shubham Bansal wrote:

gef loaded, gef help' to start,gef config' to configure
32 commands loaded (17 sub-commands), using Python engine 3.5

Your gdb is compiled with Python 3.5 bindings.

Either install the dependencies (Keystone, Capstone, Unicorn) for Python 3 or
recompile gdb with python2 bindings.

hugsy

"Computer science is no more about computers than astronomy is about telescopes." - E. Dijkstra

from gef.

shba24 avatar shba24 commented on August 25, 2024

Okay. Now I have switched to Python 3.5 and I am doing pip3 install keystone but it gives me following error

Collecting keystone
  Using cached Keystone-0.2.1.tar.gz
    Complete output from command python setup.py egg_info:
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.15.tar.gz
    Traceback (most recent call last):
      File "/tmp/pip-build-z21atep1/keystone/distribute_setup.py", line 143, in use_setuptools
        raise ImportError
    ImportError

    During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-z21atep1/keystone/setup.py", line 2, in <module>
        use_setuptools('0.6.15')
      File "/tmp/pip-build-z21atep1/keystone/distribute_setup.py", line 145, in use_setuptools
        return _do_download(version, download_base, to_dir, download_delay)
      File "/tmp/pip-build-z21atep1/keystone/distribute_setup.py", line 124, in _do_download
        to_dir, download_delay)
      File "/tmp/pip-build-z21atep1/keystone/distribute_setup.py", line 196, in download_setuptools
        data = src.read()
      File "/usr/lib/python3.5/http/client.py", line 461, in read
        s = self._safe_read(self.length)
      File "/usr/lib/python3.5/http/client.py", line 607, in _safe_read
        chunk = self.fp.read(min(amt, MAXAMOUNT))
      File "/usr/lib/python3.5/socket.py", line 575, in readinto
        return self._sock.recv_into(b)
      File "/usr/lib/python3.5/ssl.py", line 925, in recv_into
        return self.read(nbytes, buffer)
      File "/usr/lib/python3.5/ssl.py", line 787, in read
        return self._sslobj.read(len, buffer)
      File "/usr/lib/python3.5/ssl.py", line 571, in read
        v = self._sslobj.read(len, buffer)
    ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1977)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-z21atep1/keystone/

Also, I tried to install keystone from the git repo but its not detected by the gef.

from gef.

shba24 avatar shba24 commented on August 25, 2024

Found the Fix.

You guys need to update the keystone installation steps. For correct information, check Keystone-install

Also, for unicorn installation , you have to do

git clone https://github.com/unicorn-engine/unicorn.git && cd unicorn && ./make.sh && sudo ./make.sh install && cd bindings/python && sudo make install

from gef.

hugsy avatar hugsy commented on August 25, 2024

Yes, I was made aware that there is already a (wrong) package called keystone in pip.

Fixed by e6c4f47

Updated documentation : https://gef.readthedocs.io/en/latest/config/#optional-dependancies

from gef.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.