Step 1: Identify Target: The attacker identifies a SunOS 4.1.1 system with console redirection capabilities.
Step 2: Craft Payload: The attacker crafts a malicious program that utilizes the TIOCCONS ioctl call to redirect console input/output.
Step 3: Exploit Execution: The attacker executes the malicious program on the target system.
Step 4: Redirection: The TIOCCONS call, due to the vulnerability, redirects console input/output to a privileged resource (e.g., /dev/kmem or a root-owned file).
Step 5: Privilege Escalation: The attacker leverages the redirected console to read or write to privileged resources, potentially gaining root access or executing arbitrary code with elevated privileges.