Comments (10)
this is the debian package
https://github.com/LocutusOfBorg/binwalk
from binwalk.
The above dependencies list is correct, with the following exceptions:
- python-magic is not required
- The development packages for libfuzzy and libmagic are not required (just the libraries themselves)
- zlib1g-dev and liblzma-dev are not directly required by binwalk (they are needed for building the firmware-mod-kit)
When loading C libraries, binwalk's search order is (libmagic is used as an example, but the same is done for all libraries):
- Look for libmagic.so in binwalk's own libs directory
- If not found, look for libmagic.so in /usr/local/lib
- If not found, search for libmagic using ctypes.util.find_library
I will add clearer documentation regarding the specific build and runtime dependencies.
from binwalk.
thank! but:
Look for libmagic.so in binwalk's own libs directory
if I don't install the libmagic-dev the .so will not be on the system.
https://packages.debian.org/sid/amd64/libmagic1/filelist
https://packages.debian.org/sid/amd64/libmagic-dev/filelist
unless your code detects something like
/usr/lib/x86_64-linux-gnu/libmagic.so.1 it shouldn't work...
from binwalk.
That should be detected by ctypes.util.find_library, as long as /usr/lib/x86_64-linux-gnu
is a path that ldconfig knows about (ctypes uses ldconfig to find the library path).
from binwalk.
wonderful! many thanks, it is more than enough for me! thanks!
from binwalk.
Hi again @devttys0 the binwalk libraries were used to be installed in /usr/lib.
Now I changed them to be installed into
ls -l /usr/lib/python2.7/dist-packages/binwalk/libs/
total 36
-rw-r--r-- 1 root root 14264 ago 2 17:42 libcompress42.so
-rw-r--r-- 1 root root 18352 ago 2 17:42 libtinfl.so
it that ok for you?
from binwalk.
Yes, that is fine; the binwalk build should be putting those libraries in /usr/lib/python2.7/dist-packages/binwalk/libs/
anyway (let me know if that is not the case!).
from binwalk.
after the DESTDIR patch it is :)
from binwalk.
last thing: do you use from pyqtgraph python-pyside or python-qt4?
from binwalk.
oh yes, qt4 :)
from binwalk.
Related Issues (20)
- version wasn't bumped
- Feature request: detection of DPAPI blob data
- FAIL: Test: Open firmware.zip, scan for signatures HOT 2
- Fix Syntax error installation binwalk.py
- files are extracted in the wrong directory
- No module named 'binwalk.__main__' HOT 2
- Error when installing ubi_reader in deps.sh HOT 2
- Anti-patterns in extractor.py module
- Binwalk stuck when extracting .xz archive
- Cannot extract anything from a device, not file
- If providing more than one file, binwalk uses verbose mode only.
- AttributeError: module 'binwalk' has no attribute 'scan'
- Symlink Error HOT 1
- ubireader problem HOT 6
- Unable to proceed from the installation guide.
- Add support for ArchLinux in deps.sh
- Would it be possible to use the built-in python module 'getpass' as a somewhat OS agnostic way to get the username? HOT 2
- Dockerfile fails to build due to ubi_reader changes HOT 1
- binwalk fails to extract after filename/extension confusion HOT 3
- Call plugins when Result is Valid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from binwalk.