koutheir / binary-security-check Goto Github PK
View Code? Open in Web Editor NEWMoved: https://codeberg.org/koutheir/binary-security-check
Home Page: https://codeberg.org/koutheir/binary-security-check
License: MIT License
Moved: https://codeberg.org/koutheir/binary-security-check
Home Page: https://codeberg.org/koutheir/binary-security-check
License: MIT License
Feature-request, not a bug.
Compiling from 27beefd, it seems like the application is failing to automatically process pretty much any ELF I supply it with.
$ bsc /bin/bash
15:00:17 [ERROR] /bin/bash: Dependent C runtime library is not recognized.
$ bsc -l /lib/x86_64-linux-gnu/libc.so.6 /bin/bash
/bin/bash: +ASLR +STACK-PROT +READ-ONLY-RELOC !IMMEDIATE-BIND ~FORTIFY-SOURCE(+memmove,+strcpy,+strncpy,+sprintf,+fprintf,+asprintf,+snprintf,+memcpy,+vfprintf,+fdelt,+printf,+longjmp,+vsnprintf,!fgets,!mbstowcs,!readlink,!memmove,!strcpy,!wcsrtombs,!wcrtomb,!strcat,!mbsnrtowcs,!mbsrtowcs,!memcpy,!getgroups,!confstr,!wctomb,!strncpy,!memset,!getcwd,!read,!stpcpy,!gethostname)
System:
# Debian 11
$ uname -vr
5.14.0-0.bpo.2-amd64 #1 SMP Debian 5.14.9-2~bpo11+1 (2021-10-10)
$ rustc -V
rustc 1.56.1 (59eed8a2a 2021-11-01)
I am trying to run the binary after installing it on my system(Linux Ubuntu), but I get an invalid arguments error. How to use this binary correctly? Can you help me for this?
My usage:
(In my home directory):
cd .cargo/bin
./binary-security-check -l MYFILE
I like something like git tag v1.2.3
I would like to receive a report in the form of a table with a list of binary files and results. Or the translation in a beautiful form into a text file
Please disregard the "library not recognized", there is #4 for it.
$ bsc /bin/bash
14:58:12 [ERROR] /bin/bash: Dependent C runtime library is not recognized.
$ date
Sat 13 Nov 2021 01:28:34 ACDT
I have statically compiled binaries, that have no dynamically linked libc.
I get:
$ file "/home/runner/hugo/hugo"
/home/runner/hugo/hugo: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, stripped
$ ldd "/home/runner/hugo/hugo"
statically linked
$ binary-security-check "/home/runner/hugo/hugo"
07:49:57 [ERROR] /home/runner/hugo/hugo: dependent C runtime library is not recognized.
I have been using OfriOuzan/HardeningMeter
which works even for static binaries.
Could a similar feature-set be implemented in binary-security-check
as well?
Can you provide installation documents and use documents
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.