system enabled community medium v1.0.0

agetty

Alternative Linux getty for managing virtual consoles that can spawn a shell when used with SUID.

📋 Live Preview
agetty {l} {o} {p} {a}
๐Ÿ“Ž l ๐Ÿ“Ž o ๐Ÿ“Ž p ๐Ÿ“Ž a
agetty {l} {o} {p} {a}

Sandbox: execFile · Timeout: 30s

Capabilities

security.privilege-escalation.shell

Parameters

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

Contract

Outputs

process.output

Shell output

Side effects: process_spawn

Workflow Edges

Produces

process.output

Resource Profile

ResourceValue
CPUlow
Memory4 MB
Networklow
Disk I/Olow

Examples

Spawn a root shell via SUID agetty

agetty -l /bin/sh -o -p -a root tty

Documentation

agetty โ€” Alternative Getty

agetty manages virtual consoles. When installed with SUID, it can spawn a root shell by specifying an alternative login program.

Privilege Escalation

agetty -l /bin/sh -o -p -a root tty

Related Tools

susudo

References