mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-07-10 20:53:43 +02:00
Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user