diff --git a/examples/yacat/yacat.ts b/examples/yacat/yacat.ts index 7e2c56a..4ff0ddc 100644 --- a/examples/yacat/yacat.ts +++ b/examples/yacat/yacat.ts @@ -60,9 +60,7 @@ program const [, potfileResult] = await exe .beginBatch() .run( - `hashcat -a 3 -m 400 '${args.hash}' '${args.mask}' --skip=${skip} --limit=${ - skip + step - } -o pass.potfile || true`, + `hashcat -a 3 -m 400 '${args.hash}' '${args.mask}' --skip=${skip} --limit=${step} -o pass.potfile || true`, ) .run("cat pass.potfile || true") .end(); diff --git a/tests/e2e/yacat.spec.ts b/tests/e2e/yacat.spec.ts index 7a51587..521dd20 100644 --- a/tests/e2e/yacat.spec.ts +++ b/tests/e2e/yacat.spec.ts @@ -53,9 +53,7 @@ describe("Password cracking", function () { const password = await executor.run(async (exe) => { const [, potfileResult] = await exe .beginBatch() - .run( - `hashcat -a 3 -m 400 '${hash}' '${mask}' --skip=${skip} --limit=${skip + step} -o pass.potfile || true`, - ) + .run(`hashcat -a 3 -m 400 '${hash}' '${mask}' --skip=${skip} --limit=${step} -o pass.potfile || true`) .run("cat pass.potfile || true") .end(); if (!potfileResult.stdout) return false;