When a program takes an input from users, we can redirect the input device, so the program
Fantastic news! We've Found the answer you've been seeking!
Question:
When a program takes an input from users, we can redirect the input device, so the program can take the input from a file. For example, we can use prog < myfile to provide the data from myfile as input to the prog program. Now, if prog is a root-owned Set-UID program, can we use the following method to get this privileged program to read from the /etc/shadow file?
$prog < / etc/ shadow
Related Book For
Posted Date: