~/hooky

hooky/command/public/main.js -rw-r--r-- 556 B
406fafb5 — Arthur Melton format some 2 years ago

            
c1f59a62 Arthur Melton
406fafb5 Arthur Melton
47d57e54 Arthur Melton
406fafb5 Arthur Melton
47d57e54 Arthur Melton
c1f59a62 Arthur Melton
c1f59a62 Arthur Melton
47d57e54 Arthur Melton
c1f59a62 Arthur Melton
47d57e54 Arthur Melton








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const invoke = window.__TAURI__.invoke

async function code() {
    document.getElementById("victim_exe").innerHTML = await invoke("victim_payload", {});
    while (true) {
        var get_new = await invoke("get_new", {});
        for (let i in get_new) {
            document.getElementById("victims").innerHTML = `<pre>${JSON.stringify(get_new[i], null, "\t")}</pre>` + document.getElementById("victims").innerHTML;
        }
        await sleep(5000);
    }
}

function sleep(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

code();