Update README.md

This commit is contained in:
skyper
2024-08-13 21:37:25 +01:00
committed by GitHub
parent e117b01d3d
commit 4a4160e86d
+9
View File
@@ -1880,6 +1880,15 @@ perl -i -0777 -pe 's/^(.{64})(.{0,256})UPX!.{4}/$1$2\0\0\0\0\0\0\0\0/s' mybin
perl -i -0777 -pe 's/^(.{64})(.{0,256})\x7fELF/$1$2\0\0\0\0/s' mybin
```
Optionally destroy traces of UPX:
```shell
perl -i -0777 -pe 's/UPX!/\0\0\0\0/sg' mybin
cat mybin \
| perl -e 'local($/);$_=<>;s/(.*)(\$Info:[^\0]*)(.*)/print "$1";print "\0"x length($2); print "$3"/es;' \
| perl -e 'local($/);$_=<>;s/(.*)(\$Id:[^\0]*)(.*)/print "$1";print "\0"x length($2); print "$3"/es;' >x
cat x >mybin; rm -f x
```
Verify that is can not be unpacked:
```shell
upx -d mybin