my old man made a cat/dog deterrent 30 years ago, to stop the cats fighting outside his window etc
and male dogs would visit, trying to get to our Australian Terrior Females too.
his invention involved a 12V Ignition Coil off a car, a driver circuit, a transformer and a metal trip wire,
this was turned on after dark. once the ground was thoroughly wetted down.
you can imagine the noises through the night, lol