pSnuffle Packet Sniffer - Metasploit
This page contains detailed information about how to use the auxiliary/sniffer/psnuffle metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: pSnuffle Packet Sniffer
Module: auxiliary/sniffer/psnuffle
Source code: modules/auxiliary/sniffer/psnuffle.rb
Disclosure date: -
Last modification time: 2020-05-12 22:15:21 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): -
List of CVEs: -
This module sniffs passwords like dsniff did in the past
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
msf > use auxiliary/sniffer/psnuffle
msf auxiliary(psnuffle) > show targets
... a list of targets ...
msf auxiliary(psnuffle) > set TARGET target-id
msf auxiliary(psnuffle) > show options
... show and set options ...
msf auxiliary(psnuffle) > exploit
Go back to menu.
Msfconsole Usage
Here is how the sniffer/psnuffle auxiliary module looks in the msfconsole:
msf6 > use auxiliary/sniffer/psnuffle
msf6 auxiliary(sniffer/psnuffle) > show info
Name: pSnuffle Packet Sniffer
Module: auxiliary/sniffer/psnuffle
License: Metasploit Framework License (BSD)
Rank: Normal
Provided by:
Max Moser <[email protected]>
Available actions:
Name Description
---- -----------
List List protocols
Sniffer Run sniffer
Check supported:
No
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
FILTER no The filter string for capturing traffic
INTERFACE no The name of the interface
PCAPFILE no The name of the PCAP capture file to process
PROTOCOLS all yes A comma-delimited list of protocols to sniff or "all".
SNAPLEN 65535 yes The number of bytes to capture
TIMEOUT 500 yes The number of seconds to wait for new data
Description:
This module sniffs passwords like dsniff did in the past
Module Options
This is a complete list of options available in the sniffer/psnuffle auxiliary module:
msf6 auxiliary(sniffer/psnuffle) > show options
Module options (auxiliary/sniffer/psnuffle):
Name Current Setting Required Description
---- --------------- -------- -----------
FILTER no The filter string for capturing traffic
INTERFACE no The name of the interface
PCAPFILE no The name of the PCAP capture file to process
PROTOCOLS all yes A comma-delimited list of protocols to sniff or "all".
SNAPLEN 65535 yes The number of bytes to capture
TIMEOUT 500 yes The number of seconds to wait for new data
Auxiliary action:
Name Description
---- -----------
Sniffer Run sniffer
Advanced Options
Here is a complete list of advanced options supported by the sniffer/psnuffle auxiliary module:
msf6 auxiliary(sniffer/psnuffle) > show advanced
Module advanced options (auxiliary/sniffer/psnuffle):
Name Current Setting Required Description
---- --------------- -------- -----------
GATEWAY_PROBE_HOST 8.8.8.8 yes Send a TTL=1 random UDP datagram to this host to discover the default gateway's MAC
GATEWAY_PROBE_PORT no The port on GATEWAY_PROBE_HOST to send a random UDP probe to (random if 0 or unset)
ProtocolBase /opt/metasploit-framework/embedded/framework/data/exploits/psnuffle yes The base directory containing the protocol decoders
SECRET 1297303073 yes A 32-bit cookie for probe requests.
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Auxiliary Actions
This is a list of all auxiliary actions that the sniffer/psnuffle module can do:
msf6 auxiliary(sniffer/psnuffle) > show actions
Auxiliary actions:
Name Description
---- -----------
List List protocols
Sniffer Run sniffer
Evasion Options
Here is the full list of possible evasion options supported by the sniffer/psnuffle auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 auxiliary(sniffer/psnuffle) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
The ProtocolBase parameter is set to an invalid directory
Here is a relevant code snippet related to the "The ProtocolBase parameter is set to an invalid directory" error message:
43:
44:
45: def load_protocols
46: base = datastore['ProtocolBase']
47: unless File.directory? base
48: raise RuntimeError, 'The ProtocolBase parameter is set to an invalid directory'
49: end
50:
51: allowed = datastore['PROTOCOLS'].split(',').map{|x| x.strip.downcase}
52: @protos = {}
53: decoders = Dir.new(base).entries.grep(/\.rb$/).sort
Decoder <N> failed to load: <E.CLASS> <E> <E.BACKTRACE>
Here is a relevant code snippet related to the "Decoder <N> failed to load: <E.CLASS> <E> <E.BACKTRACE>" error message:
64: @protos[proto.downcase] = klass.new(framework, self)
65:
66: print_status("Loaded protocol #{proto} from #{f}...")
67: end
68: rescue => e
69: print_error("Decoder #{n} failed to load: #{e.class} #{e} #{e.backtrace}")
70: end
71: end
72: end
73:
74: def run
Go back to menu.
Related Pull Requests
- #13443 Merged Pull Request: Add descriptions to auxiliary modules Actions
- #11523 Merged Pull Request: MSF5: Remove unneeded RHOST deregister in scanners
- #10138 Merged Pull Request: Cleanup pSnuffle
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #2525 Merged Pull Request: Change module boilerplate
- #2426 Merged Pull Request: Find and replace Msf::Config.install_root, "data"
- #1228 Merged Pull Request: MSFTIDY cleanup #1 - auxiliary
- #369 Merged Pull Request: Psnuffle cleanup
Go back to menu.
See Also
Check also the following modules related to this module:
- auxiliary/scanner/smb/psexec_loggedin_users
- exploit/windows/local/current_user_psexec
- exploit/windows/smb/ms17_010_psexec
- exploit/windows/smb/psexec
Authors
Max Moser <mmo[at]remote-exploit.org>
Version
This page has been produced using Metasploit Framework version 6.1.27-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.