Moon and Mars have no magnetic field, but that they are immersed into solar magnetic field.
If I place a long wire along north pole, perpendicular to Sun, while Moon/Mars moves along its orbit, the wire cuts magnetic field lines; this should produce a difference of potential between fare edges...