jsandin / esp-bin2elf

Converts a flash dump from an esp8266 device into an ELF executable file for analysis and reverse engineering.
81 stars 13 forks source link

Port to Python 3 + updates #10

Open zayfod opened 4 years ago

zayfod commented 4 years ago
ghost commented 3 years ago

Hey @jsandin, if you're still around, you could give @zayfod contributor access to merge this.

ghost commented 3 years ago

@zayfod what do you do for the elffile dependency?

voltagex@debian:~/src/esp-bin2elf$ sudo python3 -m pip install elffile
Collecting elffile
  Using cached https://files.pythonhosted.org/packages/aa/e4/331249716119b80564509aa759f0c4f1856fc074d63beb325e812b829b88/elffile-0.005.tar.gz
    Complete output from command python setup.py egg_info:
    Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
    Traceback (most recent call last):
      File "/tmp/pip-install-jpu86271/elffile/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-install-jpu86271/elffile/setup.py", line 19, in <module>
        distribute_setup.use_setuptools()
      File "/tmp/pip-install-jpu86271/elffile/distribute_setup.py", line 145, in use_setuptools
        return _do_download(version, download_base, to_dir, download_delay)
      File "/tmp/pip-install-jpu86271/elffile/distribute_setup.py", line 124, in _do_download
        to_dir, download_delay)
      File "/tmp/pip-install-jpu86271/elffile/distribute_setup.py", line 193, in download_setuptools
        src = urlopen(url)
      File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python3.7/urllib/request.py", line 531, in open
        response = meth(req, response)
      File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
        'http', request, response, code, msg, hdrs)
      File "/usr/lib/python3.7/urllib/request.py", line 569, in error
        return self._call_chain(*args)
      File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
        raise HTTPError(req.full_url, code, msg, hdrs, fp)
    urllib.error.HTTPError: HTTP Error 403: SSL is required

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-jpu86271/elffile/
zayfod commented 3 years ago

@voltagex I install elffile from https://github.com/slorquet/elffile2 with python setup.py install. The original one seems abandoned.