pwnforce / usbs Goto Github PK
View Code? Open in Web Editor NEWμSBS: Static Binary Sanitization of Bare-metal Embedded Devices
μSBS: Static Binary Sanitization of Bare-metal Embedded Devices
Hello,
I was trying to rewrite the binary with uSBS. I encountered some problems:
Based on the paper, the firmware entry point would be redirected to .newsec
(.newtext
) section (Am I correct?) Does this mean it's enough to download .newtext
section to the target device? Do I still need to dowoload the original binary to the flash memory as well? In the former case, if download the .newtext
section to my Nucleo-F401RE board, it traps into hard fault. In the latter case, it runs the original firmware, other than the rewritten one
I rewrote the firmware using the command line provided in the readme, it seems that it only translated the binary but didn't instrument ASan. How do I enable ASan instrumentation?
Thanks.
I have viewed you usbs code, and I found that asan.py and usbs.py don't use the translator module,is it something wrong?
It seems that the code in github is not complete. usbs.py doesn't use the maptext and the asan policy,I don't know how to revise it.
Could you please provide some examples or documentation?
Hi,
when I clone the repository and run "make run" to build the docker container, the installation fails due to the package "setuptools", which has to have a version higher than 46.4.0. To fix this issue and be able to run the docker container properly, I changed this line in the Dockerfile:
RUN pip install pathlib2 lief==0.8.0.post7 pwntools==4.3.1 keystone-engine==0.9.2 six==1.16.0
to
RUN pip install pyelftools==0.24 pathlib2 lief==0.8.0.post7 pwntools==4.3.1 keystone-engine==0.9.2 six==1.16.0
This way I am able to build to docker container properly.
Could you change this in the Dockerfile configuration?
Thanks!
How to use it on .bin?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.