Sends Beacons to Scan for Active ZigBee Networks - Metasploit


This page contains detailed information about how to use the post/hardware/zigbee/zstumbler metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Sends Beacons to Scan for Active ZigBee Networks
Module: post/hardware/zigbee/zstumbler
Source code: modules/post/hardware/zigbee/zstumbler.rb
Disclosure date: -
Last modification time: 2020-09-22 02:56:51 +0000
Supported architecture(s): -
Supported platform(s): Hardware
Target service / protocol: -
Target network port(s): -
List of CVEs: -

Post Module to send beacon signals to the broadcast address while channel hopping

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


There are two ways to execute this post module.

From the Meterpreter prompt

The first is by using the "run" command at the Meterpreter prompt. It allows you to run the post module against that specific session:

meterpreter > run post/hardware/zigbee/zstumbler

From the msf prompt

The second is by using the "use" command at the msf prompt. You will have to figure out which session ID to set manually. To list all session IDs, you can use the "sessions" command.

msf > use post/hardware/zigbee/zstumbler
msf post(zstumbler) > show options
    ... show and set options ...
msf post(zstumbler) > set SESSION session-id
msf post(zstumbler) > exploit

If you wish to run the post against all sessions from framework, here is how:

1 - Create the following resource script:


framework.sessions.each_pair do |sid, session|
  run_single("use post/hardware/zigbee/zstumbler")
  run_single("set SESSION #{sid}")
  run_single("run")
end

2 - At the msf prompt, execute the above resource script:

msf > resource path-to-resource-script

Required Options


  • SESSION: The session to run this module on.

Knowledge Base


Actively scans the Zigbee channels by sending a beacon broadcast packet and listening for responses.

Options


DEVICE

ZigBee Device ID. Defaults to the target device that is specified via the target command or if one device is presented when running 'supported_devices' it will use that device.

CHANNEL

The channel to scan. Setting this options will prevent the stumbler from changing channels. Range is 11-26, inclusive. Default: not set n LOOP

How many times to loop over the channels. Specifying a -1 will loop forever. Default: 1

DELAY

The delay in seconds to listen to each channel. Default: 2

Scenarios


Scanning channel 11 for other ZigBee devices in the area.

hwbridge > run post/hardware/zigbee/zstumbler channel=11

[*] Scanning Channel 11
[*] New Network: PANID: 0x4724 SOURCE: 0x25D5
[*]         Ext PANID: 6E:03:C7:74:31:E2:74:AA       Stack Profile: ZigBee Enterprise
[*]         Stack Version: ZigBee 2006/2007
[*]         Channel: 11
[*] New Network: PANID: 0x4724 SOURCE: 0x7DD1
[*]         Ext PANID: 6E:03:C7:74:31:E2:74:AA       Stack Profile: ZigBee Enterprise
[*]         Stack Version: ZigBee 2006/2007
[*]         Channel: 11

Go back to menu.

Msfconsole Usage


Here is how the hardware/zigbee/zstumbler post exploitation module looks in the msfconsole:

msf6 > use post/hardware/zigbee/zstumbler

msf6 post(hardware/zigbee/zstumbler) > show info

       Name: Sends Beacons to Scan for Active ZigBee Networks
     Module: post/hardware/zigbee/zstumbler
   Platform: Hardware
       Arch: 
       Rank: Normal

Provided by:
  Craig Smith

Compatible session types:
  Hwbridge

Basic options:
  Name     Current Setting  Required  Description
  ----     ---------------  --------  -----------
  CHANNEL                   no        Disable channel hopping by forcing a channel (11-26)
  DELAY    2                no        Delay in seconds to listen on each channel
  DEVICE                    no        ZigBee device ID, defaults to target device
  LOOP     1                no        How many times to loop over the channels (-1 will run in an endless loop)
  SESSION                   yes       The session to run this module on.

Description:
  Post Module to send beacon signals to the broadcast address while 
  channel hopping

Module Options


This is a complete list of options available in the hardware/zigbee/zstumbler post exploitation module:

msf6 post(hardware/zigbee/zstumbler) > show options

Module options (post/hardware/zigbee/zstumbler):

   Name     Current Setting  Required  Description
   ----     ---------------  --------  -----------
   CHANNEL                   no        Disable channel hopping by forcing a channel (11-26)
   DELAY    2                no        Delay in seconds to listen on each channel
   DEVICE                    no        ZigBee device ID, defaults to target device
   LOOP     1                no        How many times to loop over the channels (-1 will run in an endless loop)
   SESSION                   yes       The session to run this module on.

Advanced Options


Here is a complete list of advanced options supported by the hardware/zigbee/zstumbler post exploitation module:

msf6 post(hardware/zigbee/zstumbler) > show advanced

Module advanced options (post/hardware/zigbee/zstumbler):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   VERBOSE    false            no        Enable detailed status messages
   WORKSPACE                   no        Specify the workspace for this module

Post Actions


This is a list of all post exploitation actions which the hardware/zigbee/zstumbler module can do:

msf6 post(hardware/zigbee/zstumbler) > show actions

Post actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the hardware/zigbee/zstumbler post exploitation module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 post(hardware/zigbee/zstumbler) > 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.

No target device set. Either set one with the 'target' command or specify the DEVICE.


Here is a relevant code snippet related to the "No target device set. Either set one with the 'target' command or specify the DEVICE." error message:

78:	    @channel = 11 if @channel > 26
79:	  end
80:	
81:	  def run
82:	    if not get_target_device and not datastore["DEVICE"]
83:	      print_error "No target device set.  Either set one with the 'target' command or specify the DEVICE."
84:	      return
85:	    end
86:	    @channel = datastore["CHANNEL"] if datastore["CHANNEL"]
87:	    @channel = 11 if @channel > 26
88:	    if datastore["LOOP"] == -1

Go back to menu.


Go back to menu.

See Also


Check also the following modules related to this module:

Authors


  • Craig Smith

Version


This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.