Skip to content

Commit 61cc6c2

Browse files
committed
feat: hashcat cracking task with best environment injected.
1 parent dee852c commit 61cc6c2

File tree

2 files changed

+95
-1
lines changed

2 files changed

+95
-1
lines changed

.vscode/env.zsh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ unset https_proxy http_proxy all_proxy
9292
# export TOP_DNS=${SECLIST}/Discovery/DNS/bitquark-subdomains-top100000.txt
9393
# export WORDLISTS=/usr/share/wordlists/
9494

95+
export HASHCAT_MODE_WORDLIST=0
96+
export HASHCAT_MODE_COMBINATION=1
97+
export HASHCAT_MODE_TOGGLE_CASE=2
98+
export HASHCAT_MODE_MASK_BRUTE_FORCE=3
99+
export HASHCAT_MODE_WORDLIST_MASK=6
100+
export HASHCAT_MODE_MASK_WORDLIST=7
101+
102+
export HASHCAT_DEVICE_CPU=1
103+
export HASHCAT_DEVICE_GPU=2
104+
export HASHCAT_DEVICE_FPGA=3
105+
95106
# URL: https://hashcat.net/wiki/doku.php?id=example_hashes
96107
export HASH_MD5=0
97108
export HASH_SHA1=100

.vscode/tasks.json

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,23 @@
100100
"cat ${workspaceFolder}/kubeconfig"
101101
],
102102
"problemMatcher": []
103-
}
103+
},
104+
{
105+
"label": "hashcat runner",
106+
"type": "shell",
107+
"detail": "Create and run hashcat cracking task",
108+
"command": [
109+
"source ${workspaceFolder}/.vscode/.zshrc; ",
110+
"hashcat",
111+
"--force",
112+
"-a ${input:hashcat-mode} ",
113+
"-m ${input:hashcat-hashtype} ",
114+
"-D ${input:hashcat-device} ",
115+
"${input:hashcat-hashfile}",
116+
"${input:hashcat-wordlist-or-masks}"
117+
],
118+
"problemMatcher": []
119+
},
104120
],
105121
"inputs": [
106122
// msfvenom
@@ -245,6 +261,73 @@
245261
"python",
246262
],
247263
"default": "python"
264+
},
265+
// Hashcat
266+
{
267+
"id": "hashcat-mode",
268+
"type": "pickString",
269+
"description": "hashcat attack mode, like wordlist mode",
270+
"options": [
271+
"$HASHCAT_MODE_WORDLIST",
272+
"$HASHCAT_MODE_COMBINATION",
273+
"$HASHCAT_MODE_TOGGLE_CASE",
274+
"$HASHCAT_MODE_MASK_BRUTE_FORCE",
275+
"$HASHCAT_MODE_WORDLIST_MASK",
276+
"$HASHCAT_MODE_MASK_WORDLIST",
277+
],
278+
"default": "$HASHCAT_MODE_WORDLIST"
279+
},
280+
{
281+
"id": "hashcat-device",
282+
"type": "pickString",
283+
"description": "which kind of hashcat device you need",
284+
"options": [
285+
"$HASHCAT_DEVICE_CPU",
286+
"$HASHCAT_DEVICE_GPU",
287+
"$HASHCAT_DEVICE_FPGA",
288+
],
289+
"default": "$HASHCAT_DEVICE_GPU"
290+
},
291+
{
292+
"id": "hashcat-hashtype",
293+
"type": "pickString",
294+
"description": "Which kind of hash u wanna crack",
295+
"options": [
296+
"$HASH_MD5",
297+
"$HASH_SHA1",
298+
"$HASH_MD5CYPT",
299+
"$HASH_MD4",
300+
"$HASH_NTLM",
301+
"$HASH_SHA256",
302+
"$HASH_APRMD5",
303+
"$HASH_SHA512",
304+
"$HASH_BCRYPT",
305+
"$HASH_NETNTLMv2",
306+
"$HASH_SHA256CRYPT",
307+
"$HASH_KRB5_PA_23",
308+
"$HASH_KRB5_PA_17",
309+
"$HASH_KRB5_PA_18",
310+
"$HASH_DJANGO_PBKDF2_SHA256",
311+
"$HASH_PBKDF2_HMAC_SHA256",
312+
"$HASH_KRB5_TGS_23",
313+
"$HASH_KRB5_TGS_17",
314+
"$HASH_KRB5_TGS_18",
315+
"$HASH_JWT",
316+
"$HASH_KRB5_AS_REP_23",
317+
],
318+
"default": "$HASH_MD5",
319+
},
320+
{
321+
"id": "hashcat-hashfile",
322+
"type": "promptString",
323+
"description": "This is the file contains hash, default ${file} is the opened file in vscode",
324+
"default": "${file}"
325+
},
326+
{
327+
"id": "hashcat-wordlist-or-masks",
328+
"type": "promptString",
329+
"description": "This is the place for wordlists or your mask string",
330+
"default": "$ROCKYOU"
248331
}
249332
]
250333
}

0 commit comments

Comments
 (0)