mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Add a fingerprint of the ARM OS source files to detect when a client expects another ARM image
This commit is contained in:
parent
d0526d3ba9
commit
bbf49ab560
5 changed files with 21 additions and 1 deletions
|
@ -58,6 +58,11 @@ if [ "$fullgitinfoextra" != "$fullgitinfo" ]; then
|
|||
fullgitinfo46="${fullgitinfo%"${fullgitinfoextra}"}"
|
||||
fullgitinfo="${fullgitinfo46}..."
|
||||
fi
|
||||
sha=$(
|
||||
pm3path=$(dirname -- "$0")/..
|
||||
cd "$pm3path" || return
|
||||
ls armsrc/*.[ch] common_arm/*.[ch]|grep -v disabled|grep -v version_pm3|xargs sha256sum|sha256sum|grep -o '^.........'
|
||||
)
|
||||
cat <<EOF
|
||||
#include "common.h"
|
||||
/* Generated file, do not edit */
|
||||
|
@ -74,5 +79,6 @@ const struct version_information_t SECTVERSINFO g_version_information = {
|
|||
$clean,
|
||||
"$fullgitinfo",
|
||||
"$ctime",
|
||||
"$sha"
|
||||
};
|
||||
EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue