Injecting Code into a Linux Process

Say - entirely hypothetically - we know a shell script that is executed with root privileges via sudo and we found a way for normal users to convince it to call their own code. For demonstration purposes it then would be nice to have code that invokes a local root shell, ready …