Magnetic pistol
Magnetic pistol is the term for the device on a torpedo or naval mine that detects its target by its magnetic field, and triggers the fuse for detonation. A device to detonate a torpedo or mine on contact with a ship or submarine is known as a contact pistol.