When packets are "sniffed" a software is inspecting individual data packages received by a computer to find out more of the purpose of the machine.
Login details can be obtained through this method.