parameters: (self)
return_statement: return dict(config={}, data=results)
docstring: Volatility privs plugin.
          @see volatility/plugins/malware/privs.py
docstring_summary: Volatility privs plugin.
docstring_tokens: Volatility privs plugin .
function: def privs(self):
          """Volatility privs plugin.
          @see volatility/plugins/malware/privs.py
          """
          results = []
  
          command = self.plugins["privs"](self.config)
  
          for task in command.calculate():
              privileges = task.get_token().privileges()
              for value, present, enabled, default in privileges:
                  try:
                      name, desc = privm.PRIVILEGE_INFO[int(value)]
                  except KeyError:
                      continue
  
                  attributes = []
                  if present:
                      attributes.append("Present")
                  if enabled:
                      attributes.append("Enabled")
                  if default:
                      attributes.append("Default")
  
                  results.append({
                      "process_id": int(task.UniqueProcessId),
                      "filename": str(task.ImageFileName),
                      "value": int(value),
                      "privilege": str(name),
                      "attributes": ",".join(attributes),
                      "description": str(desc),
                  })
  
          return dict(config={}, data=results)
function_tokens: def privs ( self ) : results = [ ] command = self . plugins [ "privs" ] ( self . config ) for task in command . calculate ( ) : privileges = task . get_token ( ) . privileges ( ) for value , present , enabled , default in privileges : try : name , desc = privm . PRIVILEGE_INFO [ int ( value ) ] except KeyError : continue attributes = [ ] if present : attributes . append ( "Present" ) if enabled : attributes . append ( "Enabled" ) if default : attributes . append ( "Default" ) results . append ( { "process_id" : int ( task . UniqueProcessId ) , "filename" : str ( task . ImageFileName ) , "value" : int ( value ) , "privilege" : str ( name ) , "attributes" : "," . join ( attributes ) , "description" : str ( desc ) , } ) return dict ( config = { } , data = results )