Comments (5)
The errors say you need to install sasquatch and 7zip. Have you tried that?
see the deps.sh script in this repo
from binwalk.
We apologize for not being able to provide this information:
- The tools needed in the alarm are installed normally by me as well as they are under the path of my system environment variables,
- When he reported an error, I tried to cp these tools to the same directory as the tools installed in the deps.sh file of Binwalk, which is also the path of my environment variables, but it didn't work
from binwalk.
Ok, well, let's look closely at the error
WARNING: Extractor.execute failed to run external extractor 'mkdir 'squashfs-root' && mount -t squashfs '%e' 'squashfs-root'': 'module' object has no attribute 'DEVNULL', 'mkdir 'squashfs-root' && mount -t squashfs '%e' 'squashfs-root'' might not be installed correctly
If I recall correctly, DEVNULL is an import from subprocess, intended to be used with functions like popen, so you can instruct it to use /dev/null for the stdin, stdout or stderr descriptors
It sounds like the import is failing. Are you on a system that does not have a /dev/null device?
I can't imagine any Python version removing this but I also haven't looked at 3.12, 3.11 subprocess docs
EDIT: See Python3 docs on subprocess. You can see DEVNULL still exists, and has existed in Python3 since 3.3. I do not know if it's present on Windows
from binwalk.
We apologize for not being able to provide this information:
The tools needed in the alarm are installed normally by me as well as they are under the path of my system environment variables,
When he reported an error, I tried to cp these tools to the same directory as the tools installed in the deps.sh file of Binwalk, which is also the path of my environment variables, but it didn't work
You realize that several of these tools have special patches applied, yes? When you say "installed normally", do you mean by following the steps in dep.sh, or do you mean using an OS package manager?
Either way, it seems like a waste of time trying to troubleshoot something that wasn't installed "properly". Sure, it's not rocket science cloning, patching and building a few packages- but you're bound to do something slightly differently than the script does, and then run into cases that no other users have
Use the script and see if that helps
from binwalk.
Finally, you should probably switch to https://github.com/OSPG/binwalk as this repository seems to now be officially moribund
from binwalk.
Related Issues (20)
- 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
- Name 'np' is not defined while calculating file entropy. HOT 1
- deprecated nose dependency, deprecated used of setup.py test
- Python 3.12 compatibility issue: No module named 'imp' HOT 4
- Trouble extracting cpio embedded into kernel file
- Dead Project - Parent Company Killed by Microsoft :( - See readme HOT 6
- [Feature Request] Extract RSA/Certificates and Private Keys
- The command line did not report an error, but did not unpack any files
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.