diff --git a/amt-certificates-0.0.1.js b/amt-certificates-0.0.1.js index 104236c..21ae5aa 100644 --- a/amt-certificates-0.0.1.js +++ b/amt-certificates-0.0.1.js @@ -9,7 +9,7 @@ function amtcert_linkCertPrivateKey(certs, keys) { for (var i in certs) { var cert = certs[i]; try { - if (xxCertPrivateKeys.length == 0) return; + if (keys.length == 0) return; var publicKeyPEM = forge.pki.publicKeyToPem(forge.pki.certificateFromAsn1(forge.asn1.fromDer(cert.X509Certificate)).publicKey).substring(28 + 32).replace(/(\r\n|\n|\r)/gm, ""); for (var j = 0; j < keys.length; j++) { if (publicKeyPEM === (keys[j]['DERKey'] + '-----END PUBLIC KEY-----')) { @@ -102,7 +102,7 @@ function amtcert_createCertificate(certAttributes, caPrivateKey, DERKey, issuerA cert.setIssuer(attrs); } - if (caPrivateKey == undefined) { + if (caPrivateKey == null) { // Create a root certificate cert.setExtensions([{ name: 'basicConstraints', diff --git a/amt-wsman-0.2.0.js b/amt-wsman-0.2.0.js index bcf17c1..c4fb245 100644 --- a/amt-wsman-0.2.0.js +++ b/amt-wsman-0.2.0.js @@ -16,7 +16,7 @@ var WsmanStackCreateService = function (host, port, user, pass, tls, extra) { if (namespaces == null) namespaces = ''; obj.comm.PerformAjax('
' + postdata, function (data, status, tag) { var wsresponse = obj.ParseWsman(data); - if ((data != null) && (!wsresponse || wsresponse == null)) { + if ((data != null) && (!wsresponse || wsresponse == null) && (status == 200)) { callback(obj, null, { Header: { HttpError: status } }, 601, tag); } else { if (status != 200) { diff --git a/amt-wsman-ws-0.2.0.js b/amt-wsman-ws-0.2.0.js index 7f41ae0..5fccf06 100644 --- a/amt-wsman-ws-0.2.0.js +++ b/amt-wsman-ws-0.2.0.js @@ -22,7 +22,6 @@ var CreateWsmanComm = function (host, port, user, pass, tls) { obj.pass = pass; obj.tls = tls; obj.tlsv1only = 0; - obj.cnonce = Math.random().toString(36).substring(7); // Generate a random client nonce obj.inDataCount = 0; obj.amtVersion = null; obj.digestRealmMatch = null; @@ -98,8 +97,9 @@ var CreateWsmanComm = function (host, port, user, pass, tls) { obj.CancelAllQueries(997); return; } - var response = hex_md5(hex_md5(obj.user + ':' + obj.challengeParams['realm'] + ':' + obj.pass) + ':' + obj.challengeParams['nonce'] + ':' + obj.noncecounter + ':' + obj.cnonce + ':' + obj.challengeParams['qop'] + ':' + hex_md5(action + ':' + url + ((obj.challengeParams['qop'] == 'auth-int') ? (':' + hex_md5(postdata)) : ''))); - h += 'Authorization: ' + obj.renderDigest({ 'username': obj.user, 'realm': obj.challengeParams['realm'], 'nonce': obj.challengeParams['nonce'], 'uri': url, 'qop': obj.challengeParams['qop'], 'response': response, 'nc': obj.noncecounter++, 'cnonce': obj.cnonce }) + '\r\n'; + var cnonce = Math.random().toString(36).substring(7); // Generate a random client nonce + var response = hex_md5(hex_md5(obj.user + ':' + obj.challengeParams['realm'] + ':' + obj.pass) + ':' + obj.challengeParams['nonce'] + ':' + obj.noncecounter + ':' + cnonce + ':' + obj.challengeParams['qop'] + ':' + hex_md5(action + ':' + url + ((obj.challengeParams['qop'] == 'auth-int') ? (':' + hex_md5(postdata)) : ''))); + h += 'Authorization: ' + obj.renderDigest({ 'username': obj.user, 'realm': obj.challengeParams['realm'], 'nonce': obj.challengeParams['nonce'], 'uri': url, 'qop': obj.challengeParams['qop'], 'response': response, 'nc': obj.noncecounter++, 'cnonce': cnonce }) + '\r\n'; } h += 'Host: ' + obj.host + ':' + obj.port + '\r\nContent-Length: ' + postdata.length + '\r\n\r\n' + postdata; // Use Content-Length //h += 'Host: ' + obj.host + ':' + obj.port + '\r\nTransfer-Encoding: chunked\r\n\r\n' + postdata.length.toString(16).toUpperCase() + '\r\n' + postdata + '\r\n0\r\n\r\n'; // Use Chunked-Encoding diff --git a/index-ocr.html b/index-ocr.html deleted file mode 100644 index fea5eaa..0000000 --- a/index-ocr.html +++ /dev/null @@ -1,13311 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MeshCommander - - - LMS MeshCommander - - - - ScriptCommander - - - - Intel® Active Management Technology - - - Intel® System Defense Utility - - - Intel® Manageability Commander - - - Intel® Unite - Hardware Management - - - - - - - - -
- - - - - - - -
-

Intel® Active Management Technology

-

-
- -
- - -
-
-
- -
- - - -
-
-
- -
- - - - - - - -
-

Intel® Manageability Commander

-

-
- -
- - - - - - - - - -
- - -

Manageability Switchbox

- - - - - -

MeshCommander

- - -

LMS MeshCommander

- - - -

ScriptCommander

- - - - -

Intel® Active Management Technology

- - -

Intel® Standard Manageability

- - -

Intel® Small Buisness Technology

- -

-
- - - - - - - - - - -
- - - - - - - - -
-
-   -   -
-
- -
- -
- - -
- - -
- - -
- - -
- - -
- -
-
-
- - Disconnected - - - Loading... - - -

- - -

- -
- - - - - - - -