diff --git a/tools/kraker-js/package-lock.json b/tools/kraker-js/package-lock.json index b8d62e31..6301660a 100644 --- a/tools/kraker-js/package-lock.json +++ b/tools/kraker-js/package-lock.json @@ -1,16 +1,17 @@ { - "name": "crackjs", + "name": "kraker-js", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "crackjs", + "name": "kraker-js", "version": "1.0.0", "license": "ISC", "dependencies": { "bulma": "^1.0.2", "crack-js": "^1.0.5", + "hashcat-rules-js": "^1.0.8", "mitt": "^3.0.1", "vue": "^3.5.12" }, @@ -941,6 +942,12 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/hashcat-rules-js": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/hashcat-rules-js/-/hashcat-rules-js-1.0.8.tgz", + "integrity": "sha512-XIjr4bKHScQJe1NInVuXuX9C9B8We+hAgj3nksG+42hiVJfvsGw4ODbumsszJ0oRz/7fqMK1aZfNx9wT3NF29g==", + "license": "ISC" + }, "node_modules/magic-string": { "version": "0.30.12", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.12.tgz", diff --git a/tools/kraker-js/package.json b/tools/kraker-js/package.json index 84768cc3..817957ea 100644 --- a/tools/kraker-js/package.json +++ b/tools/kraker-js/package.json @@ -14,6 +14,7 @@ "dependencies": { "bulma": "^1.0.2", "crack-js": "^1.0.5", + "hashcat-rules-js": "^1.0.8", "mitt": "^3.0.1", "vue": "^3.5.12" }, diff --git a/tools/kraker-js/src/App.vue b/tools/kraker-js/src/App.vue index a72f897d..ccad7c2d 100644 --- a/tools/kraker-js/src/App.vue +++ b/tools/kraker-js/src/App.vue @@ -53,7 +53,7 @@ const hashesInput = ref(''); const hashEntries = computed(() => { - return hashesInput.value.split('\n').filter(entry => entry.trim() !== ''); + return hashesInput.value.split('\n').map(entry => entry.trim()).filter(entry => entry !== ''); }); const foundEntries = ref([]); @@ -116,7 +116,7 @@ const runCrackWorker = () => { } else if(attackTab.value=="files") { - crackWorker.value.postMessage({ action: 'start', useRules: useRules.value, wordlistFile: wordlistFile.value, rulesFile: rulesFile.value}); + crackWorker.value.postMessage({ action: 'start', useRules: useRules.value, wordlistFile: wordlistFile.value, hashEntries: hashEntries.value, rulesFile: rulesFile.value, selectedHashType:selectedHashType.value}); } else { @@ -223,6 +223,7 @@ function handleWordlistSelect(event) { function handleRulesSelect(event) { rulesFile.value = event.target.files[0]; + console.log(rulesFile.value.name ); rulesName.value = rulesFile.value ? rulesFile.value.name : ''; } @@ -373,18 +374,6 @@ function handleRulesSelect(event) { - -
-
Done!
-
-
-
-

- -

-
-
- @@ -433,7 +422,7 @@ function handleRulesSelect(event) {