INFECT(1)
π INFECT(1) β the manual, bestie π
Welcome to INFECT(1), a General Commands Manual page that is lowkey iconic and highkey cursed. Buckle up, bestie, because this one is a whole vibe. π¦
β¨ NAME β¨
infect β insert malicious code into an existing binary π
πΈ SYNOPSIS πΈ
infect FILENAME
π DESCRIPTION π
Okay so check it: infect alters an executable file by inserting extra code to run before the original program. And that inserted code? It creates a set-user-ID /bin/sh program when invoked. The way that works is genuinely wild. π
Also, important: infect only operates on 64-bit ELF executable files. That's the whole assignment. No 32-bit, no other formats, no exceptions. π
π OPTIONS π
- None. Literally none. Zero flags, zero switches, zero little extras. The whole command is just
infect FILENAME. Periodt. π
π§ NOTES π§
In order to minimize the size of the code that needs to be inserted, infect relies on several non-portable aspects of Linux ELF executables.
This program is therefore in no way guaranteed to function with future revisions of the Linux kernel. Like, fr fr, no cap. π«Ά
Then again, infect is not really meant to be used so much as its source code is meant to be read. So if you're here to run it, maybe don't? If you're here to read it, slay. πβ¨
π COPYRIGHT π
Copyright Β© 2011 Brian Raiter <breadbox@muppetlabs.com>.
License GPLv2+: GNU GPL version 2 or later. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
That's the whole page, bestie. This has been INFECT(1) from ELF kickers 3.0, dated May 2011. Stay safe, read source code, and don't infect anything you wouldn't want infected. ππ¦πΈπ π
π¦ where this page comes from
- arch rolling: elfkickers 3.2-6 Β· GPL-2.0-or-later
- debian trixie: elfkickers 0+git20240221+ds-5
- nixos 26.05: elfkickers 3.2
- nixpkgs unstable: elfkickers 3.2
- ubuntu resolute: elfkickers 3.2+ds-1
- ubuntu stonking: elfkickers 3.2+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms