2013-09-09 03:29:33 +00:00
|
|
|
#!/bin/bash
|
2016-12-05 08:35:58 +00:00
|
|
|
# strip the signature from a PE binary
|
2013-09-09 03:29:33 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
infile="$1"
|
|
|
|
if [ -z "$infile" -o ! -e "$infile" ]; then
|
|
|
|
echo "USAGE: $0 file.efi"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
outfile="${infile%.efi}-unsigned.efi"
|
|
|
|
|
2014-04-29 07:15:01 +00:00
|
|
|
pesign -r -i "$infile" -o "$outfile"
|