Add more post exploitation support for railgun

We need these functions for some existing + future local priv escalation exploits.