mirror of
https://github.com/lordfriky/web-cfw-loader.git
synced 2025-07-08 19:22:27 +00:00
Update main.js
This commit is contained in:
parent
7af6c673d5
commit
c977edd892
14
main.js
14
main.js
@ -105,6 +105,14 @@ async function launchPayload(payload) {
|
|||||||
}, vulnerabilityLength);
|
}, vulnerabilityLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hexToString (hex) {
|
||||||
|
var string = '';
|
||||||
|
for (var i = 0; i < hex.length; i += 2) {
|
||||||
|
string += String.fromCharCode(parseInt(hex.substr(i, 2), 16));
|
||||||
|
}
|
||||||
|
return string;
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("goButton").addEventListener("click", async () => {
|
document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
var debugCheckbox = document.getElementById("shouldDebug");
|
var debugCheckbox = document.getElementById("shouldDebug");
|
||||||
const payloadType = document.forms.mainForm.payload.value;
|
const payloadType = document.forms.mainForm.payload.value;
|
||||||
@ -124,7 +132,11 @@ 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;
|
||||||
}
|
}
|
||||||
logOutput(payload.toString(16));
|
var payloadToLog = "";
|
||||||
|
for (var i = 0; i < payload.length; i++) {
|
||||||
|
payloadToLog += hexToString(payload[i]);
|
||||||
|
}
|
||||||
|
logOutput(payloadToLog);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logOutput("Requesting access to device...");
|
logOutput("Requesting access to device...");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user