From c58e9acaddb40b87bdc20e710a8cce0a86a577af Mon Sep 17 00:00:00 2001 From: Leon Jacobs Date: Wed, 22 Mar 2017 15:44:22 +0200 Subject: [PATCH] Fix variable typos in rfrecv related methods. --- lib/msf/core/post/hardware/rftransceiver/rftransceiver.rb | 1 + lib/rex/post/hwbridge/extensions/rftransceiver/rftransceiver.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/msf/core/post/hardware/rftransceiver/rftransceiver.rb b/lib/msf/core/post/hardware/rftransceiver/rftransceiver.rb index 63857d9f69..f40a76082a 100644 --- a/lib/msf/core/post/hardware/rftransceiver/rftransceiver.rb +++ b/lib/msf/core/post/hardware/rftransceiver/rftransceiver.rb @@ -135,6 +135,7 @@ module RFTransceiver def rfrecv(timeout = -1, blocksize = -1) return "" if not is_rf? self.index ||= 0 + opts = {} opts["timeout"] = timeout if not timeout == -1 opts["blocksize"] = blocksize if not blocksize == -1 client.rftransceiver.rfrecv(self.index, opts) diff --git a/lib/rex/post/hwbridge/extensions/rftransceiver/rftransceiver.rb b/lib/rex/post/hwbridge/extensions/rftransceiver/rftransceiver.rb index de07dc289d..f6175ef796 100644 --- a/lib/rex/post/hwbridge/extensions/rftransceiver/rftransceiver.rb +++ b/lib/rex/post/hwbridge/extensions/rftransceiver/rftransceiver.rb @@ -106,7 +106,7 @@ class RFTransceiver < Extension end if opt.has_key? "blocksize" request += "&" if not first - request += "blocksize=#{blocksize}" + request += "blocksize=#{opt['blocksize']}" end end data = client.send_request(request)