Windows Local Privilege Escalation - How to compile exploits?

I am trying to learn this without using meterpreter, but i want to use this same exploit for gaining local privilege escalation with System access.

On standard Kali, the path is - /usr/share/exploitdb/exploits/windows_x86/local/33213.rb

https://labs.mwrinfosecurity.com/blog/2013/09/06/mwr-labs-pwn2own-2013-write-up---kernel-exploit/

how do i compile this into a exe that can be run on the remote box. I do have a limited shell. It’s an x86 machine. Can we use msfvenom for this?

Thanks in advance!

you can find a precompiled exe here:

i couldn’t find source code other than the metasploit module.

make your own?

https://netsec.ws/?p=262