Many of my small almond trees are invaded by tree borers, and it is impossible to locate them since they make serpentine tunnels inside the tree, near the ground level.
I am willing to risk one or two trees (but not my safety :) ) and will try to kill the borers with an electrical shock, hopefully without damaging the tree itself. I may experiment with the proper parameters to find the best solution.
However, I know very little about electricity, and even less about high voltage, low current. I am not asking a full solution (but would be happy to receive one), all I am asking is to guide me into the general path to start my research.

For example: can I use a cordless drill charger as the source, should I use a transformer, and how does the tree resistance come into play?