grr/server/grr_response_server/flows/general/administrative.py
def Done(self, responses):
    """Retrieves the output for the hack."""
    response = responses.First()
    if not responses.success:
      raise flow.FlowError("Execute Python hack failed: %s" % responses.status)
    if response:
      result = utils.SmartStr(response.return_val)
      # Send reply with full data, but only log the first 200 bytes.
      str_result = result[0:200]
      if len(result) >= 200:
        str_result += "...[truncated]"
      self.Log("Result: %s" % str_result)
      self.SendReply(rdfvalue.RDFBytes(utils.SmartStr(response.return_val)))
Retrieves the output for the hack.
Retrieves the output for the hack.
Retrieves the output for the hack .
def Done(self, responses):
    response = responses.First()
    if not responses.success:
      raise flow.FlowError("Execute Python hack failed: %s" % responses.status)
    if response:
      result = utils.SmartStr(response.return_val)
      str_result = result[0:200]
      if len(result) >= 200:
        str_result += "...[truncated]"
      self.Log("Result: %s" % str_result)
      self.SendReply(rdfvalue.RDFBytes(utils.SmartStr(response.return_val)))
def Done ( self , responses ) : response = responses . First ( ) if not responses . success : raise flow . FlowError ( "Execute Python hack failed: %s" % responses . status ) if response : result = utils . SmartStr ( response . return_val ) str_result = result [ 0 : 200 ] if len ( result ) >= 200 : str_result += "...[truncated]" self . Log ( "Result: %s" % str_result ) self . SendReply ( rdfvalue . RDFBytes ( utils . SmartStr ( response . return_val ) ) )
Retrieves the output for the hack.
Retrieves the output for the hack .
"""Retrieves the output for the hack.""" # Send reply with full data, but only log the first 200 bytes.
self
responses