示例#1
0
def PrintSEMResults(filepath):
    if(filepath and os.path.isfile(filepath)):
        s = open(filepath, "rb")
        SEM = PermissionResultVariable(s)
        s.close()

        #now print it out.
        SEM.Print()
示例#2
0
 def get_payload_from_permissions_results(self, resultfile, payloadfile):
     f = open(resultfile, 'rb')
     rslt = PermissionResultVariable(f)
     rslt.Print()
     f.close()
     if rslt.Payload != None:
         f = open(payloadfile, "w")
         f.write(rslt.Payload)
         f.close
     return 0
示例#3
0
 def get_status_and_sessionid_from_permission_results(self, resultfile):
     f = open(resultfile, 'rb')
     rslt = PermissionResultVariable(f)
     f.close()
     rslt.Print()
     return rslt.Status, rslt.SessionId