Researchers at the University of Surrey have created a tool which can quickly identify weapons and help track their origins.