PasswordsSniffer (version 0.0.1)
index
passwordssniffer.py

This module sniff username and password of unprotected protocols.
 
Protocols: FTP, Telnet, SMTP, POP3, IMAP4, HTTP, 
SNMP, LDAP, SOCKS, MSSQL, PostgreSQL, IRC, OSPF, BFD, and STUN
 
Version 0.0.1 available protocols: 
FTP, Telnet, SMTP, POP3, IMAP4, HTTP, IRC.

 
Modules
       
logging
sys

 
Classes
       
builtins.object
Sniffer
SnifferAll
SnifferFTP
SnifferHTTP
SnifferIMAP4
SnifferIRC
SnifferPOP3
SnifferSMTP
SnifferTelnet

 
class Sniffer(builtins.object)
    Sniffer(sniffer_args: dict = {'store': False}, formatter: logging.Formatter = None, handler: logging.Handler = None)
 
This class sniff packets and
return matching secrets.
 
  Methods defined here:
__init__(self, sniffer_args: dict = {'store': False}, formatter: logging.Formatter = None, handler: logging.Handler = None)
Initialize self.  See help(type(self)) for accurate signature.
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferAll(Sniffer)
    This class sniff FTP, Telnet, SMTP, POP3
IMAP4, HTTP, SNMP, LDAP, SOCKS, MSSQL,
PostgreSQL, IRC, OSPF, BFD, and STUN password.
 
SNMP, LDAP, SOCKS, MSSQL, PostgreSQL,
OSPF, BFD, and STUN is unavailable.
 
 
Method resolution order:
SnifferAll
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferFTP(Sniffer)
    This class sniff FTP password.
 
 
Method resolution order:
SnifferFTP
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferHTTP(Sniffer)
    This class sniff HTTP password.
 
 
Method resolution order:
SnifferHTTP
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferIMAP4(Sniffer)
    This class sniff IMAP4 password.
 
 
Method resolution order:
SnifferIMAP4
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferIRC(Sniffer)
    This class sniff IRC password.
 
 
Method resolution order:
SnifferIRC
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferPOP3(Sniffer)
    This class sniff POP3 password.
 
 
Method resolution order:
SnifferPOP3
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferSMTP(Sniffer)
    This class sniff SMTP password.
 
 
Method resolution order:
SnifferSMTP
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class SnifferTelnet(Sniffer)
    This class sniff Telnet password.
 
 
Method resolution order:
SnifferTelnet
Sniffer
builtins.object

Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
handle_packet(self, packet: scapy.packet.Packet) -> None
This function logs credentials and detections,
add crdentials in list and add detections.

Methods inherited from Sniffer:
analysis(self, packet: scapy.packet.Packet) -> None
This function call different analysis function.
filter(self, packet: scapy.packet.Packet) -> bool
Packet filter (filter on protocol and port).
in_regexs(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined regex.
in_strings(self, packet: scapy.packet.Packet) -> bool
This function checks if the packet data
matches the predefined data.
start(self) -> None
This function create and launch the Sniffer.
test(self, filenames: List[str], credentials: List[bytes], order: bool = True) -> None
This function test the class.

Data descriptors inherited from Sniffer:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        __all__ = ['Sniffer', 'SnifferAll', 'SnifferFTP', 'SnifferTelnet', 'SnifferSMTP', 'SnifferPOP3', 'SnifferIMAP4', 'SnifferHTTP', 'SnifferIRC']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nPasswordSniffer Copyright (C) 2021 Maurice La...ome to redistribute it\nunder certain conditions.\n'
__description__ = 'This module sniff username and password of unprotected protocols.'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/PasswordSniffer'

 
Author
        Maurice Lambert