wok-next view linld/stuff/upx.sh @ rev 20084

gst1-plugins-good: receipt v2
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Wed Oct 25 13:00:12 2017 +0200 (2017-10-25)
parents 052a6e449318
children
line source
1 #!/bin/sh
3 if upx 2>&1 | grep -q "UPX 3.91" ; then
4 upx -5 $1 && echo "0 3C E8 75 FB 89 F7 AD 86 E0 29 F8 AB |" | hexdump -R | \
5 dd bs=1 seek=$(($(stat -c %s $1) - 15)) of=$1 conv=notrunc 2> /dev/null
6 else
7 upx -5 --8086 $1
8 fi