Brute Force AM/OOK (ie: Garage Doors) - Metasploit


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

Module Overview


Name: Brute Force AM/OOK (ie: Garage Doors)
Module: post/hardware/rftransceiver/rfpwnon
Source code: modules/post/hardware/rftransceiver/rfpwnon.rb
Disclosure date: -
Last modification time: 2017-07-24 06:26:21 +0000
Supported architecture(s): -
Supported platform(s): Hardware
Target service / protocol: -
Target network port(s): -
List of CVEs: -

Post Module for HWBridge RFTranscievers. Brute forces AM OOK or raw binary signals. This is a port of the rfpwnon tool by Corey Harding. (https://github.com/exploitagency/github-rfpwnon/blob/master/rfpwnon.py)

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/rftransceiver/rfpwnon

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/rftransceiver/rfpwnon
msf post(rfpwnon) > show options
    ... show and set options ...
msf post(rfpwnon) > set SESSION session-id
msf post(rfpwnon) > 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/rftransceiver/rfpwnon")
  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.

  • FREQ: Frequency to transmit on

Knowledge Base


Port of a brute force utility by Corey Harding of LegacySecurityGroup.com, the original can be found here. It's a generic AM/OOK brute forcer with PWM translations. It has been demonstrated to work against static key garage door openers.

Options


FREQ

Frequency to brute force.

BAUD

Baud rate. Default: 2000

BINLENGTH

Binary bit-length for bruteforcing. Default: 8

REPEAT

How many times to repeat the sending of the packet. Default: 5

PPAD

Binary data to append to packet. (Example: "0101") Default: None

TPAD

Binary data to add to end of packet. (Example: "0101") Default: None

RAW

Do not do PWM encoding on packet. Default: False

TRI

Use trinary signals. Default: False

EXTRAVERBOSE

Adds some extra status messages.

INDEX

USB Index number. Default: 0

DELAY

How many milliseconds to delay before transmission. Too fast tends to lock up the device. Default: 500 (0.5 seconds)

Scenarios


Run a brute force of 6 characters long with 2 repeats:

hwbridge > run post/hardware/rftransceiver/rfpwnon FREQ=915000000 BINLEGTH=6 REPEAT=2

[*] Generating de bruijn sequence...
[*] Brute forcing frequency: 915000000
[*] Transmitting...
[*] Binary before PWM encoding:
[*] 00000000
[*] Binary after PWM encoding:
[*] 11101110111011101110111011101110
[*] Transmitting...
[*] Binary before PWM encoding:
[*] 00000000
[*] Binary after PWM encoding:
[*] 11101110111011101110111011101110
[*] Transmitting...
[*] Binary before PWM encoding:
[*] 00000001
[*] Binary after PWM encoding:
[*] 11101110111011101110111011101000
[*] Transmitting...
[*] Binary before PWM encoding:
[*] 00000001
[*] Binary after PWM encoding:
[*] 11101110111011101110111011101000
[*] Transmitting...
[*] Binary before PWM encoding:
[*] 00000010
[*] Binary after PWM encoding:
[*] 11101110111011101110111010001110
[*] Transmitting...
...

Go back to menu.

Msfconsole Usage


Here is how the hardware/rftransceiver/rfpwnon post exploitation module looks in the msfconsole:

msf6 > use post/hardware/rftransceiver/rfpwnon

msf6 post(hardware/rftransceiver/rfpwnon) > show info

       Name: Brute Force AM/OOK (ie: Garage Doors)
     Module: post/hardware/rftransceiver/rfpwnon
   Platform: Hardware
       Arch: 
       Rank: Normal

Provided by:
  Craig Smith

Compatible session types:
  Hwbridge

Basic options:
  Name          Current Setting  Required  Description
  ----          ---------------  --------  -----------
  BAUD          2000             no        Baud rate to use
  BINLENGTH     8                no        Binary Length of signal to brute force
  DELAY         500              no        Delay in milliseconds between transmissions
  EXTRAVERBOSE  false            no        More verbose
  FREQ                           yes       Frequency to transmit on
  INDEX         0                no        USB Index to use
  PPAD                           no        Specify your own binary padding before the brute forced binary
  RAW           false            no        When set, disables PWM encoding. BINLENGTH must be -1
  REPEAT        5                no        Number of times to repeat the signal
  SESSION                        yes       The session to run this module on.
  TPAD                           no        Specify your own binary padding after the brute forced binary
  TRI           false            no        When set, brute foces a trinary signal.

Description:
  Post Module for HWBridge RFTranscievers. Brute forces AM OOK or raw 
  binary signals. This is a port of the rfpwnon tool by Corey Harding. 
(htt  ps://github.com/exploitagency/github-rfpwnon/blob/master/rfpwnon.py)

Module Options


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

msf6 post(hardware/rftransceiver/rfpwnon) > show options

Module options (post/hardware/rftransceiver/rfpwnon):

   Name          Current Setting  Required  Description
   ----          ---------------  --------  -----------
   BAUD          2000             no        Baud rate to use
   BINLENGTH     8                no        Binary Length of signal to brute force
   DELAY         500              no        Delay in milliseconds between transmissions
   EXTRAVERBOSE  false            no        More verbose
   FREQ                           yes       Frequency to transmit on
   INDEX         0                no        USB Index to use
   PPAD                           no        Specify your own binary padding before the brute forced binary
   RAW           false            no        When set, disables PWM encoding. BINLENGTH must be -1
   REPEAT        5                no        Number of times to repeat the signal
   SESSION                        yes       The session to run this module on.
   TPAD                           no        Specify your own binary padding after the brute forced binary
   TRI           false            no        When set, brute foces a trinary signal.

Advanced Options


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

msf6 post(hardware/rftransceiver/rfpwnon) > show advanced

Module advanced options (post/hardware/rftransceiver/rfpwnon):

   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/rftransceiver/rfpwnon module can do:

msf6 post(hardware/rftransceiver/rfpwnon) > show actions

Post actions:

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

Evasion Options


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

msf6 post(hardware/rftransceiver/rfpwnon) > 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.

Not an RF Transceiver


Here is a relevant code snippet related to the "Not an RF Transceiver" error message:

77:	    end
78:	  end
79:	
80:	  def run
81:	    unless is_rf?
82:	      print_error("Not an RF Transceiver")
83:	      return
84:	    end
85:	    unless set_index(datastore['INDEX'])
86:	      print_error("Couldn't set usb index to #{datastore['INDEX']}")
87:	      return

Couldn't set usb index to <INDEX>


Here is a relevant code snippet related to the "Couldn't set usb index to <INDEX>" error message:

81:	    unless is_rf?
82:	      print_error("Not an RF Transceiver")
83:	      return
84:	    end
85:	    unless set_index(datastore['INDEX'])
86:	      print_error("Couldn't set usb index to #{datastore['INDEX']}")
87:	      return
88:	    end
89:	    if datastore['TRI']
90:	      @zeropwm = "10001000"
91:	      @onepwm = "11101110"

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.