Update main.js

This commit is contained in:
Elijah Bansley 2018-05-17 13:05:21 -05:00 committed by GitHub
parent cd6272a628
commit 31affb9888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,6 +124,10 @@ document.getElementById("goButton").addEventListener("click", async () => {
logOutput("You're trying to load a payload type that doesn't exist."); logOutput("You're trying to load a payload type that doesn't exist.");
return; return;
} }
var payloadToLog = "";
for (var i = 0; i < payload.length; i++) {
payloadToLog += "0x" + payload[i].toString(16) + ", ".toUpperCase();
}
payloadToLog = payLoadToLog.toUpperCase(); payloadToLog = payLoadToLog.toUpperCase();
logOutput(payloadToLog); logOutput(payloadToLog);
return; return;