You would have to make use of the mid.txt symlink exploit. It is used to allow the recovery partition to be written to, flashing custom recovery, etc . Then, install the actual root binaries and write a GS script shell scripting.
Technically speaking it's not that difficult of a process, but i'd recommend trying to borrow someones computer - it's much easier this way.