Skip to content

Commit

Permalink
UPX obfuscate
Browse files Browse the repository at this point in the history
  • Loading branch information
rootTHC committed Aug 13, 2024
1 parent af42497 commit 3460de5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/stealth-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
cc: x86_64-linux-musl
ssl: linux-generic64
# UPX apps get SIGSTOP on grsec/SELinux 3.10/CentOS Linux 7 (Core)
# upx: 1
upx: 1
- arch: aarch64
cc: aarch64-linux-musl
ssl: linux-generic64
Expand Down Expand Up @@ -205,6 +205,9 @@ jobs:
strip tools/gs-netcat
if [ "${{ matrix.upx }}" != '' ]; then
upx tools/gs-netcat
perl -i -0777 -pe 's/^(.{64})(.{0,256})UPX!.{4}/$1$2\0\0\0\0\0\0\0\0/s' tools/gs-netcat
perl -i -0777 -pe 's/^(.{64})(.{0,256})\x7fELF/$1$2\0\0\0\0/s' tools/gs-netcat
# bbe -b 64:256 -e 'y/UPX/AAA/' gs-pl -o foo
fi
mv tools/gs-netcat tools/gs-netcat_mini-linux-${{ matrix.arch }}
Expand Down

0 comments on commit 3460de5

Please sign in to comment.