-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImportError: No module named pylibmpsse #38
Comments
Hello, |
@Brets0150 The error says it clearly. Just install the missing library ;) |
I don't remember exactly what I did but I think I switched over to using |
As far as I know there is no Python 3 version of libmpsse. |
@whoot thanks, well in that case i believe the best approach is to make the script run with python2 on latest kali version (in my case kali 2023.2) These are my steps that can be a fix for this issue: 1- Change python version system-wide with update-alternatives python to temporary force it on python2 while using the spiflash.py script:. (Note: don't forget to switch back to your default python version once you finish using the script since your system packages will probably based on the lasted python version.) 2- Then i installed the missing library libmpsse (you need to install first the pip for python2):
3- Libmpsse requires swig as well as the libftdi and python development packages. as mentioned here. in case you are using latest debian version like kali 2023.2, this command may not work: To fix this as well : please added (import getopt) to the spiflash.py code |
This should not be necessary. Kali has python2 already installed. |
@whoot Yes its necessary, and my steps not about installing python2. You have to read with attention my steps. But i will explain: None of my steps was without a POC (you can see the screenshoot ! ) The best thing you can do is to install kali linux 2023.2 VM and try with python2 to run the spiflash script directly without my steps and you will understand the struggle i passed. |
I just said that you should use python2, because there is no support for python3. |
I'm new to IoT firmware RE and I was following the blog at https://nvisium.com/blog/2019/08/07/extracting-firmware-from-iot-devices.html.
The author mentioned the following command:
sudo python spiflash.py -s 15000000 -r firmware.bin
I git cloned this repository, ran the above command and got the error:
ImportError: No module named mpsse
So, I ran the
mpsse.py
file in thesrc
directory and got the error:ImportError: No module named pylibmpsse
What is this library? How do I get
spiflash.py
to execute?More information:
The text was updated successfully, but these errors were encountered: