Networked

Finally rooted. Turns out i wasn’t using sudo with the correct script xD;
Some takeaways:
-Do use sudo
-Use absolute path
-You don’t need another reverse shell
-Try replicating the $y=$x scenario in your shell.

PM for help.

Big thanks to @cyberpathogen and @3DxHex