I own a Leaf.
The car comes with a charger that can be plugged into a standard 120 volt outlet, which you could use with an extension cord, if that cord was heavy duty enough. Though, I think if the battery was remotely drained, you wouldn’t be near a power outlet anyhow. You would certainly need a tow. (Funny thing, the car comes with a front tow hitch for just this reason.)
It takes 24 hours to charge from 0% to 100% on the 120 volt charger. A level 2 charger, which operates on a 240 volt outlet, takes about 5 hours. If it was already plugged in, then the remote hack would be fairly pointless.