Code Monkey home page Code Monkey logo

Comments (5)

mzpqnxow avatar mzpqnxow commented on July 19, 2024

The errors say you need to install sasquatch and 7zip. Have you tried that?

see the deps.sh script in this repo

from binwalk.

ojuanjo avatar ojuanjo commented on July 19, 2024

We apologize for not being able to provide this information:

  1. The tools needed in the alarm are installed normally by me as well as they are under the path of my system environment variables,
  2. 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.

mzpqnxow avatar mzpqnxow commented on July 19, 2024

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.

mzpqnxow avatar mzpqnxow commented on July 19, 2024

We apologize for not being able to provide this information:

  1. The tools needed in the alarm are installed normally by me as well as they are under the path of my system environment variables,

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

mzpqnxow avatar mzpqnxow commented on July 19, 2024

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)

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.