3 ms·
Alternatively, "must be written in Java" can be interpreted to mean "must use the JVM to begin execution", and you can clearly spawn another process from Java..
by userbinator 3y ago
Alternatively, "must be written in Java" can be interpreted to mean "must use the JVM to begin execution", and you can clearly spawn another process from Java...
- yardstick 3y agoAnother rule was no external dependencies I guess you could from Java itself write a new binary and then run that binary, but it would be against the spirit of the challenge.
- sweetjuly 3y agoThere's sun.misc.Unsafe which is a builtin that gives you raw read/write. Turn that into ROP, mmap your native program, and now you're full native :)
- nneonneo 3y agoJust use JNA to allocate an RWX buffer with mmap, unpack a bit of clever code into the buffer, and forge a native function pointer to call it :)