mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
1 line
40 KiB
JavaScript
1 line
40 KiB
JavaScript
function AmtStackCreateService(e){var E=new Object,t=(E.wsman=e,E.pfx=["http://intel.com/wbem/wscim/1/amt-schema/1/","http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/","http://intel.com/wbem/wscim/1/ips-schema/1/"],E.PendingEnums=[],E.PendingBatchOperations=0,E.ActiveEnumsCount=0,E.MaxActiveEnumsCount=1,E.onProcessChanged=null,0),n=0;function A(){var e=E.GetPendingActions();t<e&&(t=e),null!=E.onProcessChanged&&n!=e&&(n=e,E.onProcessChanged(e,t)),0==e&&(t=0)}function _(e){E.ActiveEnumsCount-=e,E.ActiveEnumsCount>=E.MaxActiveEnumsCount||0==E.PendingEnums.length||(e=E.PendingEnums.shift(),E.Enum(e[0],e[1],e[2]),_(0))}function c(r){r.names.length<=r.current?r.callback(E,r.name,r.responses,200,r.tag):(E.wsman.ExecGet(E.CompleteName(r.names[r.current]),function(e,t,n,i){var o;o=r,i=i,null==(n=n)||200!=i?o.callback(E,o.name,null,i,o.tag):(o.responses[n.Header.Method]=n,c(o))},r.pri),r.current++),A()}function i(e,t,n,i,o){200!=i||"0"!=n.Body.ReturnValue?o[0](E,null,o[2]):E.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,C,o)}function C(e,t,n,i,o){if(200!=i||"0"!=n.Body.ReturnValue)o[0](E,null,o[2]);else{var r,c,a,s,u,d,S,A=o[2],_=new Date,l=n.Body.RecordArray;for(r in"string"==typeof l&&(n.Body.RecordArray=[n.Body.RecordArray]),l){s=null;try{s=window.atob(l[r])}catch(e){}if(null!=s&&0<(u=ReadIntX(s,0))&&u<4294967295){for(a={DeviceAddress:s.charCodeAt(4),EventSensorType:s.charCodeAt(5),EventType:s.charCodeAt(6),EventOffset:s.charCodeAt(7),EventSourceType:s.charCodeAt(8),EventSeverity:s.charCodeAt(9),SensorNumber:s.charCodeAt(10),Entity:s.charCodeAt(11),EntityInstance:s.charCodeAt(12),EventData:[],Time:new Date(1e3*(u+60*_.getTimezoneOffset()))},c=13;c<21;c++)a.EventData.push(s.charCodeAt(c));a.EntityStr=M[a.Entity],a.Desc=(u=a.EventSensorType,d=a.EventOffset,S=a.EventData,a.Entity,15!=u?18!=u||170!=S[0]?6==u?"Authentication failed "+(S[1]+(S[2]<<8))+" times. The system may be under attack.":30==u?"No bootable media":32==u?"Operating system lockup or power interrupt":35!=u?37==u?"System firmware started (at least one CPU is properly executing).":"Unknown Sensor Type #"+u:64==S[0]?"BIOS POST (Power On Self-Test) Watchdog Timeout.":"System boot failure":"Agent watchdog "+char2hex(S[4])+char2hex(S[3])+char2hex(S[2])+char2hex(S[1])+"-"+char2hex(S[6])+char2hex(S[5])+"-... changed to "+E.WatchdogCurrentStates[S[7]]:235==S[0]?"Invalid Data":(0==d?m:g)[S[1]]),a.EntityStr||(a.EntityStr="Unknown"),A.push(a)}}1!=n.Body.NoMoreRecords?E.AMT_MessageLog_GetRecords(n.Body.IterationIdentifier,390,C,[o[0],A,o[2]]):o[0](E,A,o[2])}}E.GetPendingActions=function(){return 2*E.PendingEnums.length+E.ActiveEnumsCount+E.wsman.comm.PendingAjax.length+E.wsman.comm.ActiveAjaxCount+E.PendingBatchOperations},E.Subscribe=function(o,e,t,r,c,n,i,a,s,u){E.wsman.ExecSubscribe(E.CompleteName(o),e,t,function(e,t,n,i){A(),r(E,o,n,i,c)},0,n,i,a,s,u),A()},E.UnSubscribe=function(o,r,c,e,t){E.wsman.ExecUnSubscribe(E.CompleteName(o),function(e,t,n,i){A(),r(E,o,n,i,c)},0,e,t),A()},E.Get=function(o,r,c,e){E.wsman.ExecGet(E.CompleteName(o),function(e,t,n,i){A(),r(E,o,n,i,c)},0,e),A()},E.Put=function(o,e,r,c,t,n){E.wsman.ExecPut(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t,n),A()},E.Create=function(o,e,r,c,t){E.wsman.ExecCreate(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t),A()},E.Delete=function(o,e,r,c,t){E.wsman.ExecDelete(E.CompleteName(o),e,function(e,t,n,i){A(),r(E,o,n,i,c)},0,t),A()},E.Exec=function(o,e,t,r,c,n,i){E.wsman.ExecMethod(E.CompleteName(o),e,t,function(e,t,n,i){A(),r(E,o,E.CompleteExecResponse(n),i,c)},0,n,i),A()},E.ExecWithXml=function(o,e,t,r,c,n,i){E.wsman.ExecMethodXml(E.CompleteName(o),e,execArgumentsToXml(t),function(e,t,n,i){A(),r(E,o,E.CompleteExecResponse(n),i,c)},0,n,i),A()},E.Enum=function(s,u,e,t){E.ActiveEnumsCount<E.MaxActiveEnumsCount?(E.ActiveEnumsCount++,E.wsman.ExecEnum(E.CompleteName(s),function(e,t,n,i,o){var r,c,a;A(),r=s,n=n,c=u,t=t,a=o,200!=(o=i)?(c(E,r,null,o,a),_(1)):null!=n&&"EnumerateResponse"==n.Header.Method&&n.Body.EnumerationContext?(o=n.Body.EnumerationContext,E.wsman.ExecPull(t,o,function(e,t,n,i){!function o(r,e,c,t,a,n,s,i){if(200!=n)return c(E,r,null,n,s),void _(1);if(null==e||"PullResponse"!=e.Header.Method)return c(E,r,null,604,s),void _(1);for(var u in e.Body.Items)if(e.Body.Items[u]instanceof Array)for(var d in e.Body.Items[u])a.push(e.Body.Items[u][d]);else a.push(e.Body.Items[u]);{var S;e.Body.EnumerationContext?(S=e.Body.EnumerationContext,E.wsman.ExecPull(t,S,function(e,t,n,i){o(r,n,c,t,a,i,s,1)})):(_(1),c(E,r,a,n,s),A())}}(r,n,c,t,[],i,a)})):(c(E,r,null,603,a),_(1))},e,t)):E.PendingEnums.push([s,u,e,t]),A()},E.BatchEnum=function(e,t,n,i,o,r){E.PendingBatchOperations+=2*t.length,function r(c,a,s,u,e,d,S){E.PendingBatchOperations-=2;var t=a.shift(),n=E.Enum;"*"==t[0]&&(n=E.Get,t=t.substring(1));n(t,function(e,t,n,i,o){o[2][t]={response:null==n?null:n.Body,responses:n,status:i},0==o[1].length||401==i||1!=d&&200!=i&&400!=i?(E.PendingBatchOperations-=2*a.length,A(),s(E,c,o[2],i,u)):(A(),r(c,a,s,u,o[2],S))},[c,a,e],S);A()}(e,Clone(t),n,i,{},o,r),A()},E.BatchGet=function(e,t,n,i,o){c({name:e,names:t,callback:n,current:0,responses:{},tag:i,pri:o}),A()},E.CompleteName=function(e){return 0==e.indexOf("AMT_")?E.pfx[0]+e:0==e.indexOf("CIM_")?E.pfx[1]+e:0==e.indexOf("IPS_")?E.pfx[2]+e:void 0},E.CompleteExecResponse=function(e){return e&&null!=e&&e.Body&&e.Body.ReturnValue&&(e.Body.ReturnValueStr=E.AmtStatusToStr(e.Body.ReturnValue)),e},E.RequestPowerStateChange=function(e,t){E.CIM_PowerManagementService_RequestPowerStateChange(e,'<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ComputerSystem</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="CreationClassName">CIM_ComputerSystem</Selector><Selector Name="Name">ManagedSystem</Selector></SelectorSet></ReferenceParameters>',null,null,t)},E.SetBootConfigRole=function(e,t){E.CIM_BootService_SetBootConfigRole('<Address xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">http://schemas.xmlsoap.org/ws/2004/08/addressing</Address><ReferenceParameters xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing"><ResourceURI xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd">http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_BootConfigSetting</ResourceURI><SelectorSet xmlns="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd"><Selector Name="InstanceID">Intel(r) AMT: Boot Configuration 0</Selector></SelectorSet></ReferenceParameters>',e,t)},E.CancelAllQueries=function(e){E.wsman.CancelAllQueries(e)},E.AMT_AgentPresenceWatchdog_RegisterAgent=function(e){E.Exec("AMT_AgentPresenceWatchdog","RegisterAgent",{},e)},E.AMT_AgentPresenceWatchdog_AssertPresence=function(e,t){E.Exec("AMT_AgentPresenceWatchdog","AssertPresence",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdog_AssertShutdown=function(e,t){E.Exec("AMT_AgentPresenceWatchdog","AssertShutdown",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdog_AddAction=function(e,t,n,i,o,r,c,a,s){E.Exec("AMT_AgentPresenceWatchdog","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r,c,a,s)},E.AMT_AgentPresenceWatchdog_DeleteAllActions=function(e,t,n,i){E.Exec("AMT_AgentPresenceWatchdog","DeleteAllActions",{},e,t,n,i)},E.AMT_AgentPresenceWatchdogAction_GetActionEac=function(e){E.Exec("AMT_AgentPresenceWatchdogAction","GetActionEac",{},e)},E.AMT_AgentPresenceWatchdogVA_RegisterAgent=function(e){E.Exec("AMT_AgentPresenceWatchdogVA","RegisterAgent",{},e)},E.AMT_AgentPresenceWatchdogVA_AssertPresence=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","AssertPresence",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdogVA_AssertShutdown=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","AssertShutdown",{SequenceNumber:e},t)},E.AMT_AgentPresenceWatchdogVA_AddAction=function(e,t,n,i,o,r){E.Exec("AMT_AgentPresenceWatchdogVA","AddAction",{OldState:e,NewState:t,EventOnTransition:n,ActionSd:i,ActionEac:o},r)},E.AMT_AgentPresenceWatchdogVA_DeleteAllActions=function(e,t){E.Exec("AMT_AgentPresenceWatchdogVA","DeleteAllActions",{_method_dummy:e},t)},E.AMT_AuditLog_ClearLog=function(e){E.Exec("AMT_AuditLog","ClearLog",{},e)},E.AMT_AuditLog_RequestStateChange=function(e,t,n){E.Exec("AMT_AuditLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_AuditLog_ReadRecords=function(e,t,n){E.Exec("AMT_AuditLog","ReadRecords",{StartIndex:e},t,n)},E.AMT_AuditLog_SetAuditLock=function(e,t,n,i){E.Exec("AMT_AuditLog","SetAuditLock",{LockTimeoutInSeconds:e,Flag:t,Handle:n},i)},E.AMT_AuditLog_ExportAuditLogSignature=function(e,t){E.Exec("AMT_AuditLog","ExportAuditLogSignature",{SigningMechanism:e},t)},E.AMT_AuditLog_SetSigningKeyMaterial=function(e,t,n,i,o){E.Exec("AMT_AuditLog","SetSigningKeyMaterial",{SigningMechanismType:e,SigningKey:t,LengthOfCertificates:n,Certificates:i},o)},E.AMT_AuditPolicyRule_SetAuditPolicy=function(e,t,n,i,o){E.Exec("AMT_AuditPolicyRule","SetAuditPolicy",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},E.AMT_AuditPolicyRule_SetAuditPolicyBulk=function(e,t,n,i,o){E.Exec("AMT_AuditPolicyRule","SetAuditPolicyBulk",{Enable:e,AuditedAppID:t,EventID:n,PolicyType:i},o)},E.AMT_AuthorizationService_AddUserAclEntryEx=function(e,t,n,i,o,r){E.Exec("AMT_AuthorizationService","AddUserAclEntryEx",{DigestUsername:e,DigestPassword:t,KerberosUserSid:n,AccessPermission:i,Realms:o},r)},E.AMT_AuthorizationService_EnumerateUserAclEntries=function(e,t){E.Exec("AMT_AuthorizationService","EnumerateUserAclEntries",{StartIndex:e},t)},E.AMT_AuthorizationService_GetUserAclEntryEx=function(e,t,n){E.Exec("AMT_AuthorizationService","GetUserAclEntryEx",{Handle:e},t,n)},E.AMT_AuthorizationService_UpdateUserAclEntryEx=function(e,t,n,i,o,r,c){E.Exec("AMT_AuthorizationService","UpdateUserAclEntryEx",{Handle:e,DigestUsername:t,DigestPassword:n,KerberosUserSid:i,AccessPermission:o,Realms:r},c)},E.AMT_AuthorizationService_RemoveUserAclEntry=function(e,t){E.Exec("AMT_AuthorizationService","RemoveUserAclEntry",{Handle:e},t)},E.AMT_AuthorizationService_SetAdminAclEntryEx=function(e,t,n){E.Exec("AMT_AuthorizationService","SetAdminAclEntryEx",{Username:e,DigestPassword:t},n)},E.AMT_AuthorizationService_GetAdminAclEntry=function(e){E.Exec("AMT_AuthorizationService","GetAdminAclEntry",{},e)},E.AMT_AuthorizationService_GetAdminAclEntryStatus=function(e){E.Exec("AMT_AuthorizationService","GetAdminAclEntryStatus",{},e)},E.AMT_AuthorizationService_GetAdminNetAclEntryStatus=function(e){E.Exec("AMT_AuthorizationService","GetAdminNetAclEntryStatus",{},e)},E.AMT_AuthorizationService_SetAclEnabledState=function(e,t,n,i){E.Exec("AMT_AuthorizationService","SetAclEnabledState",{Handle:e,Enabled:t},n,i)},E.AMT_AuthorizationService_GetAclEnabledState=function(e,t,n){E.Exec("AMT_AuthorizationService","GetAclEnabledState",{Handle:e},t,n)},E.AMT_EndpointAccessControlService_RequestStateChange=function(e,t,n){E.Exec("AMT_EndpointAccessControlService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_EndpointAccessControlService_GetPosture=function(e,t){E.Exec("AMT_EndpointAccessControlService","GetPosture",{PostureType:e},t)},E.AMT_EndpointAccessControlService_GetPostureHash=function(e,t){E.Exec("AMT_EndpointAccessControlService","GetPostureHash",{PostureType:e},t)},E.AMT_EndpointAccessControlService_UpdatePostureState=function(e,t){E.Exec("AMT_EndpointAccessControlService","UpdatePostureState",{UpdateType:e},t)},E.AMT_EndpointAccessControlService_GetEacOptions=function(e){E.Exec("AMT_EndpointAccessControlService","GetEacOptions",{},e)},E.AMT_EndpointAccessControlService_SetEacOptions=function(e,t,n){E.Exec("AMT_EndpointAccessControlService","SetEacOptions",{EacVendors:e,PostureHashAlgorithm:t},n)},E.AMT_EnvironmentDetectionSettingData_SetSystemDefensePolicy=function(e,t){E.Exec("AMT_EnvironmentDetectionSettingData","SetSystemDefensePolicy",{Policy:e},t)},E.AMT_EnvironmentDetectionSettingData_EnableVpnRouting=function(e,t){E.Exec("AMT_EnvironmentDetectionSettingData","EnableVpnRouting",{Enable:e},t)},E.AMT_EthernetPortSettings_SetLinkPreference=function(e,t,n){E.Exec("AMT_EthernetPortSettings","SetLinkPreference",{LinkPreference:e,Timeout:t},n)},E.AMT_HeuristicPacketFilterStatistics_ResetSelectedStats=function(e,t){E.Exec("AMT_HeuristicPacketFilterStatistics","ResetSelectedStats",{SelectedStatistics:e},t)},E.AMT_KerberosSettingData_GetCredentialCacheState=function(e){E.Exec("AMT_KerberosSettingData","GetCredentialCacheState",{},e)},E.AMT_KerberosSettingData_SetCredentialCacheState=function(e,t){E.Exec("AMT_KerberosSettingData","SetCredentialCacheState",{Enable:e},t)},E.AMT_MessageLog_CancelIteration=function(e,t){E.Exec("AMT_MessageLog","CancelIteration",{IterationIdentifier:e},t)},E.AMT_MessageLog_RequestStateChange=function(e,t,n){E.Exec("AMT_MessageLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_MessageLog_ClearLog=function(e){E.Exec("AMT_MessageLog","ClearLog",{},e)},E.AMT_MessageLog_GetRecords=function(e,t,n,i){E.Exec("AMT_MessageLog","GetRecords",{IterationIdentifier:e,MaxReadRecords:t},n,i)},E.AMT_MessageLog_GetRecord=function(e,t,n){E.Exec("AMT_MessageLog","GetRecord",{IterationIdentifier:e,PositionToNext:t},n)},E.AMT_MessageLog_PositionAtRecord=function(e,t,n,i){E.Exec("AMT_MessageLog","PositionAtRecord",{IterationIdentifier:e,MoveAbsolute:t,RecordNumber:n},i)},E.AMT_MessageLog_PositionToFirstRecord=function(e,t){E.Exec("AMT_MessageLog","PositionToFirstRecord",{},e,t)},E.AMT_MessageLog_FreezeLog=function(e,t){E.Exec("AMT_MessageLog","FreezeLog",{Freeze:e},t)},E.AMT_PublicKeyManagementService_AddCRL=function(e,t,n){E.Exec("AMT_PublicKeyManagementService","AddCRL",{Url:e,SerialNumbers:t},n)},E.AMT_PublicKeyManagementService_ResetCRLList=function(e,t){E.Exec("AMT_PublicKeyManagementService","ResetCRLList",{_method_dummy:e},t)},E.AMT_PublicKeyManagementService_AddCertificate=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddCertificate",{CertificateBlob:e},t)},E.AMT_PublicKeyManagementService_AddTrustedRootCertificate=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddTrustedRootCertificate",{CertificateBlob:e},t)},E.AMT_PublicKeyManagementService_AddKey=function(e,t){E.Exec("AMT_PublicKeyManagementService","AddKey",{KeyBlob:e},t)},E.AMT_PublicKeyManagementService_GeneratePKCS10Request=function(e,t,n,i){E.Exec("AMT_PublicKeyManagementService","GeneratePKCS10Request",{KeyPair:e,DNName:t,Usage:n},i)},E.AMT_PublicKeyManagementService_GeneratePKCS10RequestEx=function(e,t,n,i){E.Exec("AMT_PublicKeyManagementService","GeneratePKCS10RequestEx",{KeyPair:e,SigningAlgorithm:t,NullSignedCertificateRequest:n},i)},E.AMT_PublicKeyManagementService_GenerateKeyPair=function(e,t,n){E.Exec("AMT_PublicKeyManagementService","GenerateKeyPair",{KeyAlgorithm:e,KeyLength:t},n)},E.AMT_RedirectionService_RequestStateChange=function(e,t){E.Exec("AMT_RedirectionService","RequestStateChange",{RequestedState:e},t)},E.AMT_RedirectionService_TerminateSession=function(e,t){E.Exec("AMT_RedirectionService","TerminateSession",{SessionType:e},t)},E.AMT_RemoteAccessService_AddMpServer=function(e,t,n,i,o,r,c,a,s){E.Exec("AMT_RemoteAccessService","AddMpServer",{AccessInfo:e,InfoFormat:t,Port:n,AuthMethod:i,Certificate:o,Username:r,Password:c,CN:a},s)},E.AMT_RemoteAccessService_AddRemoteAccessPolicyRule=function(e,t,n,i,o){E.Exec("AMT_RemoteAccessService","AddRemoteAccessPolicyRule",{Trigger:e,TunnelLifeTime:t,ExtendedData:n,MpServer:i},o)},E.AMT_RemoteAccessService_CloseRemoteAccessConnection=function(e,t){E.Exec("AMT_RemoteAccessService","CloseRemoteAccessConnection",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_CommitChanges=function(e,t){E.Exec("AMT_SetupAndConfigurationService","CommitChanges",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_Unprovision=function(e,t){E.Exec("AMT_SetupAndConfigurationService","Unprovision",{ProvisioningMode:e},t)},E.AMT_SetupAndConfigurationService_PartialUnprovision=function(e,t){E.Exec("AMT_SetupAndConfigurationService","PartialUnprovision",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_ResetFlashWearOutProtection=function(e,t){E.Exec("AMT_SetupAndConfigurationService","ResetFlashWearOutProtection",{_method_dummy:e},t)},E.AMT_SetupAndConfigurationService_ExtendProvisioningPeriod=function(e,t){E.Exec("AMT_SetupAndConfigurationService","ExtendProvisioningPeriod",{Duration:e},t)},E.AMT_SetupAndConfigurationService_SetMEBxPassword=function(e,t){E.Exec("AMT_SetupAndConfigurationService","SetMEBxPassword",{Password:e},t)},E.AMT_SetupAndConfigurationService_SetTLSPSK=function(e,t,n){E.Exec("AMT_SetupAndConfigurationService","SetTLSPSK",{PID:e,PPS:t},n)},E.AMT_SetupAndConfigurationService_GetProvisioningAuditRecord=function(e){E.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecord",{},e)},E.AMT_SetupAndConfigurationService_GetUuid=function(e){E.Exec("AMT_SetupAndConfigurationService","GetUuid",{},e)},E.AMT_SetupAndConfigurationService_GetUnprovisionBlockingComponents=function(e){E.Exec("AMT_SetupAndConfigurationService","GetUnprovisionBlockingComponents",{},e)},E.AMT_SetupAndConfigurationService_GetProvisioningAuditRecordV2=function(e){E.Exec("AMT_SetupAndConfigurationService","GetProvisioningAuditRecordV2",{},e)},E.AMT_SystemDefensePolicy_GetTimeout=function(e){E.Exec("AMT_SystemDefensePolicy","GetTimeout",{},e)},E.AMT_SystemDefensePolicy_SetTimeout=function(e,t){E.Exec("AMT_SystemDefensePolicy","SetTimeout",{Timeout:e},t)},E.AMT_SystemDefensePolicy_UpdateStatistics=function(e,t,n,i,o,r){E.Exec("AMT_SystemDefensePolicy","UpdateStatistics",{NetworkInterface:e,ResetOnRead:t},n,i,o,r)},E.AMT_SystemPowerScheme_SetPowerScheme=function(e,t,n){E.Exec("AMT_SystemPowerScheme","SetPowerScheme",{},e,n,0,{InstanceID:t})},E.AMT_TimeSynchronizationService_GetLowAccuracyTimeSynch=function(e,t){E.Exec("AMT_TimeSynchronizationService","GetLowAccuracyTimeSynch",{},e,t)},E.AMT_TimeSynchronizationService_SetHighAccuracyTimeSynch=function(e,t,n,i,o){E.Exec("AMT_TimeSynchronizationService","SetHighAccuracyTimeSynch",{Ta0:e,Tm1:t,Tm2:n},i,o)},E.AMT_UserInitiatedConnectionService_RequestStateChange=function(e,t,n){E.Exec("AMT_UserInitiatedConnectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_WebUIService_RequestStateChange=function(e,t,n){E.Exec("AMT_WebUIService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AMT_WiFiPortConfigurationService_AddWiFiSettings=function(e,t,n,i,o,r){E.ExecWithXml("AMT_WiFiPortConfigurationService","AddWiFiSettings",{WiFiEndpoint:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},E.AMT_WiFiPortConfigurationService_UpdateWiFiSettings=function(e,t,n,i,o,r){E.ExecWithXml("AMT_WiFiPortConfigurationService","UpdateWiFiSettings",{WiFiEndpointSettings:e,WiFiEndpointSettingsInput:t,IEEE8021xSettingsInput:n,ClientCredential:i,CACredential:o},r)},E.AMT_WiFiPortConfigurationService_DeleteAllITProfiles=function(e,t){E.Exec("AMT_WiFiPortConfigurationService","DeleteAllITProfiles",{_method_dummy:e},t)},E.AMT_WiFiPortConfigurationService_DeleteAllUserProfiles=function(e,t){E.Exec("AMT_WiFiPortConfigurationService","DeleteAllUserProfiles",{_method_dummy:e},t)},E.CIM_Account_RequestStateChange=function(e,t,n){E.Exec("CIM_Account","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_AccountManagementService_CreateAccount=function(e,t,n){E.Exec("CIM_AccountManagementService","CreateAccount",{System:e,AccountTemplate:t},n)},E.CIM_BootConfigSetting_ChangeBootOrder=function(e,t){E.Exec("CIM_BootConfigSetting","ChangeBootOrder",{Source:e},t)},E.CIM_BootService_SetBootConfigRole=function(e,t,n){E.Exec("CIM_BootService","SetBootConfigRole",{BootConfigSetting:e,Role:t},n,0,1)},E.CIM_Card_ConnectorPower=function(e,t,n){E.Exec("CIM_Card","ConnectorPower",{Connector:e,PoweredOn:t},n)},E.CIM_Card_IsCompatible=function(e,t){E.Exec("CIM_Card","IsCompatible",{ElementToCheck:e},t)},E.CIM_Chassis_IsCompatible=function(e,t){E.Exec("CIM_Chassis","IsCompatible",{ElementToCheck:e},t)},E.CIM_Fan_SetSpeed=function(e,t){E.Exec("CIM_Fan","SetSpeed",{DesiredSpeed:e},t)},E.CIM_KVMRedirectionSAP_RequestStateChange=function(e,t,n){E.Exec("CIM_KVMRedirectionSAP","RequestStateChange",{RequestedState:e},n)},E.CIM_MediaAccessDevice_LockMedia=function(e,t){E.Exec("CIM_MediaAccessDevice","LockMedia",{Lock:e},t)},E.CIM_MediaAccessDevice_SetPowerState=function(e,t,n){E.Exec("CIM_MediaAccessDevice","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_MediaAccessDevice_Reset=function(e){E.Exec("CIM_MediaAccessDevice","Reset",{},e)},E.CIM_MediaAccessDevice_EnableDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","EnableDevice",{Enabled:e},t)},E.CIM_MediaAccessDevice_OnlineDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","OnlineDevice",{Online:e},t)},E.CIM_MediaAccessDevice_QuiesceDevice=function(e,t){E.Exec("CIM_MediaAccessDevice","QuiesceDevice",{Quiesce:e},t)},E.CIM_MediaAccessDevice_SaveProperties=function(e){E.Exec("CIM_MediaAccessDevice","SaveProperties",{},e)},E.CIM_MediaAccessDevice_RestoreProperties=function(e){E.Exec("CIM_MediaAccessDevice","RestoreProperties",{},e)},E.CIM_MediaAccessDevice_RequestStateChange=function(e,t,n){E.Exec("CIM_MediaAccessDevice","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_PhysicalFrame_IsCompatible=function(e,t){E.Exec("CIM_PhysicalFrame","IsCompatible",{ElementToCheck:e},t)},E.CIM_PhysicalPackage_IsCompatible=function(e,t){E.Exec("CIM_PhysicalPackage","IsCompatible",{ElementToCheck:e},t)},E.CIM_PowerManagementService_RequestPowerStateChange=function(e,t,n,i,o){E.Exec("CIM_PowerManagementService","RequestPowerStateChange",{PowerState:e,ManagedElement:t,Time:n,TimeoutPeriod:i},o,0,1)},E.CIM_PowerSupply_SetPowerState=function(e,t,n){E.Exec("CIM_PowerSupply","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_PowerSupply_Reset=function(e){E.Exec("CIM_PowerSupply","Reset",{},e)},E.CIM_PowerSupply_EnableDevice=function(e,t){E.Exec("CIM_PowerSupply","EnableDevice",{Enabled:e},t)},E.CIM_PowerSupply_OnlineDevice=function(e,t){E.Exec("CIM_PowerSupply","OnlineDevice",{Online:e},t)},E.CIM_PowerSupply_QuiesceDevice=function(e,t){E.Exec("CIM_PowerSupply","QuiesceDevice",{Quiesce:e},t)},E.CIM_PowerSupply_SaveProperties=function(e){E.Exec("CIM_PowerSupply","SaveProperties",{},e)},E.CIM_PowerSupply_RestoreProperties=function(e){E.Exec("CIM_PowerSupply","RestoreProperties",{},e)},E.CIM_PowerSupply_RequestStateChange=function(e,t,n){E.Exec("CIM_PowerSupply","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_Processor_SetPowerState=function(e,t,n){E.Exec("CIM_Processor","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Processor_Reset=function(e){E.Exec("CIM_Processor","Reset",{},e)},E.CIM_Processor_EnableDevice=function(e,t){E.Exec("CIM_Processor","EnableDevice",{Enabled:e},t)},E.CIM_Processor_OnlineDevice=function(e,t){E.Exec("CIM_Processor","OnlineDevice",{Online:e},t)},E.CIM_Processor_QuiesceDevice=function(e,t){E.Exec("CIM_Processor","QuiesceDevice",{Quiesce:e},t)},E.CIM_Processor_SaveProperties=function(e){E.Exec("CIM_Processor","SaveProperties",{},e)},E.CIM_Processor_RestoreProperties=function(e){E.Exec("CIM_Processor","RestoreProperties",{},e)},E.CIM_Processor_RequestStateChange=function(e,t,n){E.Exec("CIM_Processor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_RecordLog_ClearLog=function(e){E.Exec("CIM_RecordLog","ClearLog",{},e)},E.CIM_RecordLog_RequestStateChange=function(e,t,n){E.Exec("CIM_RecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_RedirectionService_RequestStateChange=function(e,t,n){E.Exec("CIM_RedirectionService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_Sensor_SetPowerState=function(e,t,n){E.Exec("CIM_Sensor","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Sensor_Reset=function(e){E.Exec("CIM_Sensor","Reset",{},e)},E.CIM_Sensor_EnableDevice=function(e,t){E.Exec("CIM_Sensor","EnableDevice",{Enabled:e},t)},E.CIM_Sensor_OnlineDevice=function(e,t){E.Exec("CIM_Sensor","OnlineDevice",{Online:e},t)},E.CIM_Sensor_QuiesceDevice=function(e,t){E.Exec("CIM_Sensor","QuiesceDevice",{Quiesce:e},t)},E.CIM_Sensor_SaveProperties=function(e){E.Exec("CIM_Sensor","SaveProperties",{},e)},E.CIM_Sensor_RestoreProperties=function(e){E.Exec("CIM_Sensor","RestoreProperties",{},e)},E.CIM_Sensor_RequestStateChange=function(e,t,n){E.Exec("CIM_Sensor","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_StatisticalData_ResetSelectedStats=function(e,t){E.Exec("CIM_StatisticalData","ResetSelectedStats",{SelectedStatistics:e},t)},E.CIM_Watchdog_KeepAlive=function(e){E.Exec("CIM_Watchdog","KeepAlive",{},e)},E.CIM_Watchdog_SetPowerState=function(e,t,n){E.Exec("CIM_Watchdog","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_Watchdog_Reset=function(e){E.Exec("CIM_Watchdog","Reset",{},e)},E.CIM_Watchdog_EnableDevice=function(e,t){E.Exec("CIM_Watchdog","EnableDevice",{Enabled:e},t)},E.CIM_Watchdog_OnlineDevice=function(e,t){E.Exec("CIM_Watchdog","OnlineDevice",{Online:e},t)},E.CIM_Watchdog_QuiesceDevice=function(e,t){E.Exec("CIM_Watchdog","QuiesceDevice",{Quiesce:e},t)},E.CIM_Watchdog_SaveProperties=function(e){E.Exec("CIM_Watchdog","SaveProperties",{},e)},E.CIM_Watchdog_RestoreProperties=function(e){E.Exec("CIM_Watchdog","RestoreProperties",{},e)},E.CIM_Watchdog_RequestStateChange=function(e,t,n){E.Exec("CIM_Watchdog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.CIM_WiFiPort_SetPowerState=function(e,t,n){E.Exec("CIM_WiFiPort","SetPowerState",{PowerState:e,Time:t},n)},E.CIM_WiFiPort_Reset=function(e){E.Exec("CIM_WiFiPort","Reset",{},e)},E.CIM_WiFiPort_EnableDevice=function(e,t){E.Exec("CIM_WiFiPort","EnableDevice",{Enabled:e},t)},E.CIM_WiFiPort_OnlineDevice=function(e,t){E.Exec("CIM_WiFiPort","OnlineDevice",{Online:e},t)},E.CIM_WiFiPort_QuiesceDevice=function(e,t){E.Exec("CIM_WiFiPort","QuiesceDevice",{Quiesce:e},t)},E.CIM_WiFiPort_SaveProperties=function(e){E.Exec("CIM_WiFiPort","SaveProperties",{},e)},E.CIM_WiFiPort_RestoreProperties=function(e){E.Exec("CIM_WiFiPort","RestoreProperties",{},e)},E.CIM_WiFiPort_RequestStateChange=function(e,t,n){E.Exec("CIM_WiFiPort","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_HostBasedSetupService_Setup=function(e,t,n,i,o,r,c){E.Exec("IPS_HostBasedSetupService","Setup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,Certificate:i,SigningAlgorithm:o,DigitalSignature:r},c)},E.IPS_HostBasedSetupService_AddNextCertInChain=function(e,t,n,i){E.Exec("IPS_HostBasedSetupService","AddNextCertInChain",{NextCertificate:e,IsLeafCertificate:t,IsRootCertificate:n},i)},E.IPS_HostBasedSetupService_AdminSetup=function(e,t,n,i,o,r){E.Exec("IPS_HostBasedSetupService","AdminSetup",{NetAdminPassEncryptionType:e,NetworkAdminPassword:t,McNonce:n,SigningAlgorithm:i,DigitalSignature:o},r)},E.IPS_HostBasedSetupService_UpgradeClientToAdmin=function(e,t,n,i){E.Exec("IPS_HostBasedSetupService","UpgradeClientToAdmin",{McNonce:e,SigningAlgorithm:t,DigitalSignature:n},i)},E.IPS_HostBasedSetupService_DisableClientControlMode=function(e,t){E.Exec("IPS_HostBasedSetupService","DisableClientControlMode",{_method_dummy:e},t)},E.IPS_KVMRedirectionSettingData_TerminateSession=function(e){E.Exec("IPS_KVMRedirectionSettingData","TerminateSession",{},e)},E.IPS_OptInService_StartOptIn=function(e){E.Exec("IPS_OptInService","StartOptIn",{},e)},E.IPS_OptInService_CancelOptIn=function(e){E.Exec("IPS_OptInService","CancelOptIn",{},e)},E.IPS_OptInService_SendOptInCode=function(e,t){E.Exec("IPS_OptInService","SendOptInCode",{OptInCode:e},t)},E.IPS_OptInService_StartService=function(e){E.Exec("IPS_OptInService","StartService",{},e)},E.IPS_OptInService_StopService=function(e){E.Exec("IPS_OptInService","StopService",{},e)},E.IPS_OptInService_RequestStateChange=function(e,t,n){E.Exec("IPS_OptInService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_ProvisioningRecordLog_RequestStateChange=function(e,t,n){E.Exec("IPS_ProvisioningRecordLog","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.IPS_ProvisioningRecordLog_ClearLog=function(e,t){E.Exec("IPS_ProvisioningRecordLog","ClearLog",{_method_dummy:e},t)},E.IPS_SecIOService_RequestStateChange=function(e,t,n){E.Exec("IPS_SecIOService","RequestStateChange",{RequestedState:e,TimeoutPeriod:t},n)},E.AmtStatusToStr=function(e){return E.AmtStatusCodes[e]||"UNKNOWN_ERROR"},E.AmtStatusCodes={0:"SUCCESS",1:"INTERNAL_ERROR",2:"NOT_READY",3:"INVALID_PT_MODE",4:"INVALID_MESSAGE_LENGTH",5:"TABLE_FINGERPRINT_NOT_AVAILABLE",6:"INTEGRITY_CHECK_FAILED",7:"UNSUPPORTED_ISVS_VERSION",8:"APPLICATION_NOT_REGISTERED",9:"INVALID_REGISTRATION_DATA",10:"APPLICATION_DOES_NOT_EXIST",11:"NOT_ENOUGH_STORAGE",12:"INVALID_NAME",13:"BLOCK_DOES_NOT_EXIST",14:"INVALID_BYTE_OFFSET",15:"INVALID_BYTE_COUNT",16:"NOT_PERMITTED",17:"NOT_OWNER",18:"BLOCK_LOCKED_BY_OTHER",19:"BLOCK_NOT_LOCKED",20:"INVALID_GROUP_PERMISSIONS",21:"GROUP_DOES_NOT_EXIST",22:"INVALID_MEMBER_COUNT",23:"MAX_LIMIT_REACHED",24:"INVALID_AUTH_TYPE",25:"AUTHENTICATION_FAILED",26:"INVALID_DHCP_MODE",27:"INVALID_IP_ADDRESS",28:"INVALID_DOMAIN_NAME",29:"UNSUPPORTED_VERSION",30:"REQUEST_UNEXPECTED",31:"INVALID_TABLE_TYPE",32:"INVALID_PROVISIONING_STATE",33:"UNSUPPORTED_OBJECT",34:"INVALID_TIME",35:"INVALID_INDEX",36:"INVALID_PARAMETER",37:"INVALID_NETMASK",38:"FLASH_WRITE_LIMIT_EXCEEDED",39:"INVALID_IMAGE_LENGTH",40:"INVALID_IMAGE_SIGNATURE",41:"PROPOSE_ANOTHER_VERSION",42:"INVALID_PID_FORMAT",43:"INVALID_PPS_FORMAT",44:"BIST_COMMAND_BLOCKED",45:"CONNECTION_FAILED",46:"CONNECTION_TOO_MANY",47:"RNG_GENERATION_IN_PROGRESS",48:"RNG_NOT_READY",49:"CERTIFICATE_NOT_READY",1024:"DISABLED_BY_POLICY",2048:"NETWORK_IF_ERROR_BASE",2049:"UNSUPPORTED_OEM_NUMBER",2050:"UNSUPPORTED_BOOT_OPTION",2051:"INVALID_COMMAND",2052:"INVALID_SPECIAL_COMMAND",2053:"INVALID_HANDLE",2054:"INVALID_PASSWORD",2055:"INVALID_REALM",2056:"STORAGE_ACL_ENTRY_IN_USE",2057:"DATA_MISSING",2058:"DUPLICATE",2059:"EVENTLOG_FROZEN",2060:"PKI_MISSING_KEYS",2061:"PKI_GENERATING_KEYS",2062:"INVALID_KEY",2063:"INVALID_CERT",2064:"CERT_KEY_NOT_MATCH",2065:"MAX_KERB_DOMAIN_REACHED",2066:"UNSUPPORTED",2067:"INVALID_PRIORITY",2068:"NOT_FOUND",2069:"INVALID_CREDENTIALS",2070:"INVALID_PASSPHRASE",2072:"NO_ASSOCIATION",2075:"AUDIT_FAIL",2076:"BLOCKING_COMPONENT",2081:"USER_CONSENT_REQUIRED",4096:"APP_INTERNAL_ERROR",4097:"NOT_INITIALIZED",4098:"LIB_VERSION_UNSUPPORTED",4099:"INVALID_PARAM",4100:"RESOURCES",4101:"HARDWARE_ACCESS_ERROR",4102:"REQUESTOR_NOT_REGISTERED",4103:"NETWORK_ERROR",4104:"PARAM_BUFFER_TOO_SHORT",4105:"COM_NOT_INITIALIZED_IN_THREAD",4106:"URL_REQUIRED"},E.GetMessageLog=function(e,t){E.AMT_MessageLog_PositionToFirstRecord(i,[e,t,[]])};"Platform firmware (e.g. BIOS)|SMI handler|ISV system management software|Alert ASIC|IPMI|BIOS vendor|System board set vendor|System integrator|Third party add-in|OSV|NIC|System management card".split("|");var m="Unspecified.|No system memory is physically installed in the system.|No usable system memory, all installed memory has experienced an unrecoverable failure.|Unrecoverable hard-disk/ATAPI/IDE device failure.|Unrecoverable system-board failure.|Unrecoverable diskette subsystem failure.|Unrecoverable hard-disk controller failure.|Unrecoverable PS/2 or USB keyboard failure.|Removable boot media not found.|Unrecoverable video controller failure.|No video device detected.|Firmware (BIOS) ROM corruption detected.|CPU voltage mismatch (processors that share same supply have mismatched voltage requirements)|CPU speed matching failure".split("|"),g="Unspecified.|Memory initialization.|Starting hard-disk initialization and test|Secondary processor(s) initialization|User authentication|User-initiated system setup|USB resource configuration|PCI resource configuration|Option ROM initialization|Video initialization|Cache initialization|SM Bus initialization|Keyboard controller initialization|Embedded controller/management controller initialization|Docking station attachment|Enabling docking station|Docking station ejection|Disabling docking station|Calling operating system wake-up vector|Starting operating system boot process|Baseboard or motherboard initialization|reserved|Floppy initialization|Keyboard test|Pointing device test|Primary processor initialization".split("|"),M="Unspecified|Other|Unknown|Processor|Disk|Peripheral|System management module|System board|Memory module|Processor module|Power supply|Add in card|Front panel board|Back panel board|Power system board|Drive backplane|System internal expansion board|Other system board|Processor board|Power unit|Power module|Power management board|Chassis back panel board|System chassis|Sub chassis|Other chassis board|Disk drive bay|Peripheral bay|Device bay|Fan cooling|Cooling unit|Cable interconnect|Memory device|System management software|BIOS|Intel(r) ME|System bus|Group|Intel(r) ME|External environment|Battery|Processing blade|Connectivity switch|Processor/memory module|I/O module|Processor I/O module|Management controller firmware|IPMI channel|PCI bus|PCI express bus|SCSI bus|SATA/SAS bus|Processor front side bus".split("|");E.RealmNames="||Redirection|PT Administration|Hardware Asset|Remote Control|Storage|Event Manager|Storage Admin|Agent Presence Local|Agent Presence Remote|Circuit Breaker|Network Time|General Information|Firmware Update|EIT|LocalUN|Endpoint Access Control|Endpoint Access Control Admin|Event Log Reader|Audit Log|ACL Realm|||Local System".split("|"),E.WatchdogCurrentStates={1:"Not Started",2:"Stopped",4:"Running",8:"Expired",16:"Suspended"};var l={16:"Security Admin",17:"RCO",18:"Redirection Manager",19:"Firmware Update Manager",20:"Security Audit Log",21:"Network Time",22:"Network Administration",23:"Storage Administration",24:"Event Manager",25:"Circuit Breaker Manager",26:"Agent Presence Manager",27:"Wireless Configuration",28:"EAC",29:"KVM",30:"User Opt-In Events",32:"Screen Blanking",33:"Watchdog Events",1600:"Provisioning Started",1601:"Provisioning Completed",1602:"ACL Entry Added",1603:"ACL Entry Modified",1604:"ACL Entry Removed",1605:"ACL Access with Invalid Credentials",1606:"ACL Entry State",1607:"TLS State Changed",1608:"TLS Server Certificate Set",1609:"TLS Server Certificate Remove",1610:"TLS Trusted Root Certificate Added",1611:"TLS Trusted Root Certificate Removed",1612:"TLS Preshared Key Set",1613:"Kerberos Settings Modified",1614:"Kerberos Main Key Modified",1615:"Flash Wear out Counters Reset",1616:"Power Package Modified",1617:"Set Realm Authentication Mode",1618:"Upgrade Client to Admin Control Mode",1619:"Unprovisioning Started",1700:"Performed Power Up",1701:"Performed Power Down",1702:"Performed Power Cycle",1703:"Performed Reset",1704:"Set Boot Options",1800:"IDER Session Opened",1801:"IDER Session Closed",1802:"IDER Enabled",1803:"IDER Disabled",1804:"SoL Session Opened",1805:"SoL Session Closed",1806:"SoL Enabled",1807:"SoL Disabled",1808:"KVM Session Started",1809:"KVM Session Ended",1810:"KVM Enabled",1811:"KVM Disabled",1812:"VNC Password Failed 3 Times",1900:"Firmware Updated",1901:"Firmware Update Failed",2e3:"Security Audit Log Cleared",2001:"Security Audit Policy Modified",2002:"Security Audit Log Disabled",2003:"Security Audit Log Enabled",2004:"Security Audit Log Exported",2005:"Security Audit Log Recovered",2100:"Intel® ME Time Set",2200:"TCPIP Parameters Set",2201:"Host Name Set",2202:"Domain Name Set",2203:"VLAN Parameters Set",2204:"Link Policy Set",2205:"IPv6 Parameters Set",2300:"Global Storage Attributes Set",2301:"Storage EACL Modified",2302:"Storage FPACL Modified",2303:"Storage Write Operation",2400:"Alert Subscribed",2401:"Alert Unsubscribed",2402:"Event Log Cleared",2403:"Event Log Frozen",2500:"CB Filter Added",2501:"CB Filter Removed",2502:"CB Policy Added",2503:"CB Policy Removed",2504:"CB Default Policy Set",2505:"CB Heuristics Option Set",2506:"CB Heuristics State Cleared",2600:"Agent Watchdog Added",2601:"Agent Watchdog Removed",2602:"Agent Watchdog Action Set",2700:"Wireless Profile Added",2701:"Wireless Profile Removed",2702:"Wireless Profile Updated",2800:"EAC Posture Signer SET",2801:"EAC Enabled",2802:"EAC Disabled",2803:"EAC Posture State",2804:"EAC Set Options",2900:"KVM Opt-in Enabled",2901:"KVM Opt-in Disabled",2902:"KVM Password Changed",2903:"KVM Consent Succeeded",2904:"KVM Consent Failed",3e3:"Opt-In Policy Change",3001:"Send Consent Code Event",3002:"Start Opt-In Blocked Event"};function I(e,t,n,i,o){if(200!=i)o[0](E,[],i);else{var r,c,a,s=o[1],u=new Date;if(0<n.Body.RecordsReturned)for(c in n.Body.EventRecords=MakeToArray(n.Body.EventRecords),n.Body.EventRecords){a=null;try{a=window.atob(n.Body.EventRecords[c])}catch(a){console.log(a+" "+n.Body.EventRecords[c])}(S={AuditAppID:ReadShort(a,0),EventID:ReadShort(a,2),InitiatorType:a.charCodeAt(4)}).AuditApp=l[S.AuditAppID],S.Event=l[100*S.AuditAppID+S.EventID],S.Event||(S.Event="#"+S.EventID),0==S.InitiatorType&&(d=a.charCodeAt(5),S.Initiator=a.substring(6,6+d),r=6+d),1==S.InitiatorType&&(S.KerberosUserInDomain=ReadInt(a,5),d=a.charCodeAt(9),S.Initiator=GetSidString(a.substring(10,10+d)),r=10+d),2==S.InitiatorType&&(S.Initiator="<i>Local</i>",r=5),3==S.InitiatorType&&(S.Initiator="<i>KVM Default Port</i>",r=5),A=ReadInt(a,r),S.Time=new Date(1e3*(A+60*u.getTimezoneOffset())),r+=4,S.MCLocationType=a.charCodeAt(r++);var d,S,A=a.charCodeAt(r++),A=(S.NetAddress=a.substring(r,r+A),r+=A,a.charCodeAt(r++));S.Ex=a.substring(r,r+A),S.ExStr=E.GetAuditLogExtendedDataStr(100*S.AuditAppID+S.EventID,S.Ex),s.push(S)}n.Body.TotalRecordCount>s.length?E.AMT_AuditLog_ReadRecords(s.length+1,I,[o[0],s]):o[0](E,s,i)}}return E.GetAuditLogExtendedDataStr=function(e,t){return 1602!=e&&1604!=e||0!=t.charCodeAt(0)?1603==e?0==t.charCodeAt(1)?t.substring(3):null:1605==e?["Invalid ME access","Invalid MEBx access"][t.charCodeAt(0)]:1606==e?(n=["Disabled","Enabled"][t.charCodeAt(0)],0==t.charCodeAt(1)&&(n+=", "+t.substring(3)),n):1607==e?"Remote "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(0)]+", Local "+["NoAuth","ServerAuth","MutualAuth"][t.charCodeAt(1)]:1617==e?E.RealmNames[ReadInt(t,0)]+", "+["NoAuth","Auth","Disabled"][t.charCodeAt(4)]:1619==e?["BIOS","MEBx","Local MEI","Local WSMAN","Remote WSAMN"][t.charCodeAt(0)]:1900==e?"From "+ReadShort(t,0)+"."+ReadShort(t,2)+"."+ReadShort(t,4)+"."+ReadShort(t,6)+" to "+ReadShort(t,8)+"."+ReadShort(t,10)+"."+ReadShort(t,12)+"."+ReadShort(t,14):2100==e?((n=new Date).setTime(1e3*ReadInt(t,0)+6e4*(new Date).getTimezoneOffset()),n.toLocaleString()):3e3==e?"From "+["None","KVM","All"][t.charCodeAt(0)]+" to "+["None","KVM","All"][t.charCodeAt(1)]:3001==e?["Success","Failed 3 times"][t.charCodeAt(0)]:null:t.substring(2,2+t.charCodeAt(1));var n},E.GetAuditLog=function(e){E.AMT_AuditLog_ReadRecords(1,I,[e,[]])},E}function hex_md5(e){return null==e&&(e=""),forge.md.md5.create().update(e).digest().toHex()}for(var md5_k=[],i=0;i<64;)md5_k[i]=0|4294967296*Math.abs(Math.sin(++i));function hex_md5(e){null==e&&(e="");for(var t,n,i,o,r=[],c=unescape(encodeURI(e)),a=c.length,s=[t=1732584193,n=-271733879,~t,~n],u=0;u<=a;)r[u>>2]|=(c.charCodeAt(u)||128)<<u++%4*8;for(r[e=16*(a+8>>6)+14]=8*a,u=0;u<e;u+=16){for(a=s,o=0;o<64;)a=[i=a[3],(t=0|a[1])+((i=a[0]+[t&(n=a[2])|~t&i,i&t|~i&n,t^n^i,n^(t|~i)][a=o>>4]+(md5_k[o]+(0|r[[o,5*o+1,3*o+5,7*o][a]%16+u])))<<(a=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*a+o++%4])|i>>>32-a),t,n];for(o=4;o;)s[--o]=s[o]+a[o]}for(e="";o<32;)e+=(s[o>>3]>>4*(1^7&o++)&15).toString(16);return e}function rstr_md5(e){return hex2rstr(hex_md5(e))}function execArgumentsToXml(e){if(null==e)return null;var t,n="";for(t in e){var i=e[t];i&&("reference"===i.__parameterType?n+=referenceToXml(t,i):n+=instanceToXml(t,i))}return n}function instanceToXml(e,t){if(null==t)return null;var n=!!t.__namespace,i=n?"<q:":"<",o=n?"</q:":"</",r="<r:"+e+(n?' xmlns:q="'+t.__namespace+'"':"")+">";if("string"==typeof t)r+=t;else for(var c in t)!t.hasOwnProperty(c)||0===c.indexOf("__")||"function"==typeof t[c]||Array.isArray(t[c])||("object"==typeof t[c]?console.error("only convert one level down..."):r+=i+c+">"+t[c].toString()+o+c+">");return r+="</r:"+e+">"}function referenceToXml(e,t){if(null==t)return null;var n,i="<r:"+e+"><a:Address>/wsman</a:Address><a:ReferenceParameters><w:ResourceURI>"+t.__resourceUri+"</w:ResourceURI><w:SelectorSet>";for(n in t)!t.hasOwnProperty(n)||0===n.indexOf("__")||"function"==typeof t[n]||"object"==typeof t[n]||Array.isArray(t[n])||(i+='<w:Selector Name="'+n+'">'+t[n].toString()+"</w:Selector>");return i+="</w:SelectorSet></a:ReferenceParameters></r:"+e+">"}function GetSidString(e){for(var t="S-"+e.charCodeAt(0)+"-"+e.charCodeAt(7),n=2;n<e.length/4;n++)t+="-"+ReadIntX(e,4*n);return t}function GetSidByteArray(e){if(!e||null==e)return null;var t=e.split("-");if(t.length<4||"s"!=t[0]&&"S"!=t[0])return null;for(var n=1;n<t.length;n++){var i=parseInt(t[n]);if(i!=t[n])return null;t[n]=i}for(var o=String.fromCharCode(t[1])+String.fromCharCode(t.length-3)+ShortToStr(Math.floor(t[2]/Math.pow(2,32)))+IntToStr(65535&t[2]),n=3;n<t.length;n++)o+=IntToStrX(t[n]);return o} |