From 9d1fa1fcbfb64ca37f074c08e9783b693dbfd534 Mon Sep 17 00:00:00 2001 From: Swissky <12152583+swisskyrepo@users.noreply.github.com> Date: Wed, 23 Dec 2020 13:48:26 +0100 Subject: [PATCH] Masks with Upper/Lower/Digit/Specials --- README.md | 2 +- google_colab_hashcat.ipynb | 41 ++++++++++++++++++++++++++++++-------- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e03a342..4984dcb 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Most of the credits are due to @mxrch and @ShutdownRepo. This repository is most :warning: For every 12hrs or so Disk, RAM, VRAM, CPU cache etc data that is on our alloted virtual machine will get **erased**. -:information_source: Markvov chain are enabled in default hashcat version. +:information_source: Markvov chain are enabled in default hashcat version. P100 GPU is an equivalent of GTX1080. ## Hashcat Cheatsheet diff --git a/google_colab_hashcat.ipynb b/google_colab_hashcat.ipynb index 009bbff..8a8e555 100644 --- a/google_colab_hashcat.ipynb +++ b/google_colab_hashcat.ipynb @@ -5,7 +5,8 @@ "colab": { "name": "google_colab_hashcat.ipynb", "provenance": [], - "collapsed_sections": [] + "collapsed_sections": [], + "toc_visible": true }, "kernelspec": { "name": "python3", @@ -43,18 +44,18 @@ "base_uri": "https://localhost:8080/" }, "id": "A86GVzaW6YpT", - "outputId": "fbeb72d7-0174-4812-91fe-6e74dba550ce" + "outputId": "2910b138-21f9-4c7b-e5e3-f02376579324" }, "source": [ "# Check GPU (Tesla P100 is the best GPU on Colab)\r\n", "!nvidia-smi -L" ], - "execution_count": null, + "execution_count": 1, "outputs": [ { "output_type": "stream", "text": [ - "GPU 0: Tesla P100-PCIE-16GB (UUID: GPU-711e1706-fccb-c944-73a8-796eb7a9d342)\n" + "GPU 0: Tesla T4 (UUID: GPU-343fa569-5e31-ae7a-e549-7a7375f44639)\n" ], "name": "stdout" } @@ -231,12 +232,36 @@ }, "source": [ "# 6. Full bruteforce for 8/9 characters and compliance masks\r\n", - "# ----- around 3 hours on a p100 ------\r\n", + "\r\n", + "# Mask: upper*1+lower*5+digit*2 and upper*1+lower*6+digit*2 \r\n", + "# ---- around 3 minutes on a T4 -----\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?u?l?l?l?l?l?d?d\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?u?l?l?l?l?l?l?d?d \r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 \"*+!??\" ?u?l?l?l?l?l?d?d?1\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 \"*+!??\" ?u?l?l?l?l?l?l?d?d?1 \r\n", + "\r\n", + "# Mask: upper*1+lower*3+digit*4 and upper*1+lower*3+digit*4\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?u?l?l?l?d?d?d?d\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?u?l?l?l?l?d?d?d?d\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?u?l?l?l?l?l?d?d?d?d\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 \"*+!??\" ?u?l?l?l?d?d?d?d?1\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 \"*+!??\" ?u?l?l?l?l?d?d?d?d?1\r\n", + "\r\n", + "# Mask: lower*6 + digit*2 + special digit(+!?*)\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 \"*+!??\" ?l?l?l?l?l?l?d?d?1\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 \"*+!??\" ?l?l?l?l?l?l?d?d?1?1\r\n", + "\r\n", + "# ---- around 3 hours on a T4 -----\r\n", + "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?u?l?l?l?l?l?l?d?d?d?d\r\n", + "\r\n", + "# ----- around 3 hours on a P100 ------\r\n", + "# lower*6 + digit*2\r\n", "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 /content/hashcat/masks/8char-1l-1u-1d-1s-compliant.hcmask\r\n", "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 -1 ?l?d?u ?1?1?1?1?1?1?1?1\r\n", - "# ----- more than 3 days on a P100 --------\r\n", - "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?a?a?a?a?a?a?a?a \r\n", - "!hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?a?a?a?a?a?a?a?a?a" + "\r\n", + "# # ----- more than 3 days on a P100 --------\r\n", + "# !hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?a?a?a?a?a?a?a?a \r\n", + "# !hashcat -m 1000 --potfile-path /content/cracked.pot --status --status-timer 300 -w 4 -O /content/*.ntds -a 3 ?a?a?a?a?a?a?a?a?a" ], "execution_count": null, "outputs": []