lib/rex/post/meterpreter/extensions/extapi/wmi/wmi.rb in rex-2.0.9 vs lib/rex/post/meterpreter/extensions/extapi/wmi/wmi.rb in rex-2.0.10
- old
+ new
@@ -29,10 +29,10 @@
# @return [Hash] Array of field names with associated values.
#
def query(query, root = nil)
request = Packet.create_request('extapi_wmi_query')
- request.add_tlv(TLV_TYPE_EXT_WMI_DOMAIN, root) unless root.blank?
+ request.add_tlv(TLV_TYPE_EXT_WMI_DOMAIN, root) unless root.to_s.empty?
request.add_tlv(TLV_TYPE_EXT_WMI_QUERY, query)
response = client.send_request(request)
# Bomb out with the right error messa