lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb in librex-0.0.43 vs lib/rex/post/meterpreter/extensions/stdapi/sys/config.rb in librex-0.0.44

- old
+ new

@@ -28,11 +28,11 @@ # Returns the username that the remote side is running as. # def getuid request = Packet.create_request('stdapi_sys_config_getuid') response = client.send_request(request) - return Rex::Text.unicode_filter_encode( response.get_tlv_value(TLV_TYPE_USER_NAME) ) + return client.unicode_filter_encode( response.get_tlv_value(TLV_TYPE_USER_NAME) ) end # # Returns a hash of information about the remote computer. # @@ -60,19 +60,19 @@ # def steal_token(pid) req = Packet.create_request('stdapi_sys_config_steal_token') req.add_tlv(TLV_TYPE_PID, pid.to_i) res = client.send_request(req) - return Rex::Text.unicode_filter_encode( res.get_tlv_value(TLV_TYPE_USER_NAME) ) + return client.unicode_filter_encode( res.get_tlv_value(TLV_TYPE_USER_NAME) ) end # # Drops any assumed token # def drop_token req = Packet.create_request('stdapi_sys_config_drop_token') res = client.send_request(req) - return Rex::Text.unicode_filter_encode( res.get_tlv_value(TLV_TYPE_USER_NAME) ) + return client.unicode_filter_encode( res.get_tlv_value(TLV_TYPE_USER_NAME) ) end # # Enables all possible privileges #