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()
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
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