Skip to content

Commit

Permalink
Merge pull request #93 from golemfactory/mgordel/hashcat-bugfix
Browse files Browse the repository at this point in the history
fix: fixed limit param in hashcat example
  • Loading branch information
jalas167 authored Jul 11, 2024
2 parents 0b3785c + 7501e6b commit 920e96e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions examples/yacat/yacat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 1 addition & 3 deletions tests/e2e/yacat.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 920e96e

Please sign in to comment.