Password Cracking de TryHackMe, presenta una serie de hashes las cuales crackeamos utilizando Hashcat y combinaciones de wordlist para obtener las credenciales.
Room
Hashcat - Tutorial the basics of cracking password
Bruteforce MD5
En esta serie de retos se utilizará hashcat para poder obtener la flag de cada uno de los retos. La lista de caracteres que se utilizarán para obtener las flags:
1?l = abcdefghijklmnopqrstuvwxyz
2?u = ABCDEFGHIJKLMNOPQRSTUVWXYZ
3?d = 0123456789
4?h = 0123456789abcdef
5?H = 0123456789ABCDEF
6?s = «space»!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
7?a = ?l?u?d?s
8?b = 0x00 – 0xffMD5 #1
Reto:
1eedb694a362f8ab2effbad5e4c8fa095 1sckull@uplifted:~/tools/hashcat$ ./hashcat64.bin -a 3 -m 0 hash.txt TRY-HACK-ME-?d?d?d
2hashcat (v5.1.0) starting...
3
4* Device #1: WARNING! Kernel exec timeout is not disabled.
5 This may cause "CL_OUT_OF_RESOURCES" or related errors.
6 To disable the timeout, see: https://hashcat.net/q/timeoutpatch
7nvmlDeviceGetFanSpeed(): Not Supported
8
9OpenCL Platform #1: NVIDIA Corporation
10======================================
11* Device #1: GeForce MX130, 501/2004 MB allocatable, 3MCU
12
13Hashes: 1 digests; 1 unique digests, 1 unique salts
14Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
15
16Applicable optimizers:
17* Zero-Byte
18* Early-Skip
19* Not-Salted
20* Not-Iterated
21* Single-Hash
22* Single-Salt
23* Brute-Force
24* Raw-Hash
25
26Minimum password length supported by kernel: 0
27Maximum password length supported by kernel: 256
28
29ATTENTION! Pure (unoptimized) OpenCL kernels selected.
30This enables cracking passwords and salts > length 32 but for the price of drastically reduced performance.
31If you want to switch to optimized OpenCL kernels, append -O to your commandline.
32
33Watchdog: Temperature abort trigger set to 90c
34
35The wordlist or mask that you are using is too small.
36This means that hashcat cannot use the full parallel power of your device(s).
37Unless you supply more work, your cracking speed will drop.
38For tips on supplying more work, see: https://hashcat.net/faq/morework
39
40Approaching final keyspace - workload adjusted.
41
42eedb694a362f8ab2effbad5e4c8fa095:TRY-HACK-ME-[... snip ...]
43
44Session..........: hashcat
45Status...........: Cracked
46Hash.Type........: MD5
47Hash.Target......: eedb694a362f8ab2effbad5e4c8fa095
48Time.Started.....: Tue Feb 18 20:32:56 2020 (0 secs)
49Time.Estimated...: Tue Feb 18 20:32:56 2020 (0 secs)
50Guess.Mask.......: TRY-HACK-ME-?d?d?d [15]
51Guess.Queue......: 1/1 (100.00%)
52Speed.#1.........: 4765.5 kH/s (0.01ms) @ Accel:1024 Loops:1 Thr:256 Vec:1
53Recovered........: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
54Progress.........: 1000/1000 (100.00%)
55Rejected.........: 0/1000 (0.00%)
56Restore.Point....: 0/1000 (0.00%)
57Restore.Sub.#1...: Salt:0 Amplifier:0-1 Iteration:0-1
58Candidates.#1....: TRY-HACK-ME-123 -> TRY-HACK-ME-573
59Hardware.Mon.#1..: Temp: 53c Util: 16% Core:1189MHz Mem:2505MHz Bus:4
60
61Started: Tue Feb 18 20:32:51 2020
62Stopped: Tue Feb 18 20:32:57 2020
63sckull@uplifted:~/tools/hashcat$MD5 #2
Reto:
1eedb694a362f8ab2effbad5e4c8fa095 1sckull@uplifted:~/tools/hashcat$ ./hashcat64.bin -a 3 -m 0 hash.txt TRY-HACK-ME-?d?d?d?d
2hashcat (v5.1.0) starting...
3
4* Device #1: WARNING! Kernel exec timeout is not disabled.
5 This may cause "CL_OUT_OF_RESOURCES" or related errors.
6 To disable the timeout, see: https://hashcat.net/q/timeoutpatch
7nvmlDeviceGetFanSpeed(): Not Supported
8
9OpenCL Platform #1: NVIDIA Corporation
10======================================
11* Device #1: GeForce MX130, 501/2004 MB allocatable, 3MCU
12
13Hashes: 1 digests; 1 unique digests, 1 unique salts
14Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
15
16Applicable optimizers:
17* Zero-Byte
18* Early-Skip
19* Not-Salted
20* Not-Iterated
21* Single-Hash
22* Single-Salt
23* Brute-Force
24* Raw-Hash
25
26Minimum password length supported by kernel: 0
27Maximum password length supported by kernel: 256
28
29ATTENTION! Pure (unoptimized) OpenCL kernels selected.
30This enables cracking passwords and salts > length 32 but for the price of drastically reduced performance.
31If you want to switch to optimized OpenCL kernels, append -O to your commandline.
32
33Watchdog: Temperature abort trigger set to 90c
34
35The wordlist or mask that you are using is too small.
36This means that hashcat cannot use the full parallel power of your device(s).
37Unless you supply more work, your cracking speed will drop.
38For tips on supplying more work, see: https://hashcat.net/faq/morework
39
40Approaching final keyspace - workload adjusted.
41
4219b489d1c4220946b38d65a7fce24372:TRY-HACK-ME-[... snip ...]
43
44Session..........: hashcat
45Status...........: Cracked
46Hash.Type........: MD5
47Hash.Target......: 19b489d1c4220946b38d65a7fce24372
48Time.Started.....: Tue Feb 18 20:35:18 2020 (0 secs)
49Time.Estimated...: Tue Feb 18 20:35:18 2020 (0 secs)
50Guess.Mask.......: TRY-HACK-ME-?d?d?d?d [16]
51Guess.Queue......: 1/1 (100.00%)
52Speed.#1.........: 13550.0 kH/s (0.12ms) @ Accel:1024 Loops:1 Thr:256 Vec:1
53Recovered........: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
54Progress.........: 10000/10000 (100.00%)
55Rejected.........: 0/10000 (0.00%)
56Restore.Point....: 0/10000 (0.00%)
57Restore.Sub.#1...: Salt:0 Amplifier:0-1 Iteration:0-1
58Candidates.#1....: TRY-HACK-ME-1234 -> TRY-HACK-ME-5739
59Hardware.Mon.#1..: Temp: 55c Util: 15% Core:1189MHz Mem:2505MHz Bus:4
60
61Started: Tue Feb 18 20:35:15 2020
62Stopped: Tue Feb 18 20:35:19 2020
63sckull@uplifted:~/tools/hashcat$MD5 #3
Reto:
17353d3b528592ecd12139fba62c43287 1sckull@uplifted:~/tools/hashcat$ ./hashcat64.bin -a 3 -m 0 hash.txt TRY-HACK-ME-?d?d?d?d?d
2hashcat (v5.1.0) starting...
3
4* Device #1: WARNING! Kernel exec timeout is not disabled.
5 This may cause "CL_OUT_OF_RESOURCES" or related errors.
6 To disable the timeout, see: https://hashcat.net/q/timeoutpatch
7nvmlDeviceGetFanSpeed(): Not Supported
8
9OpenCL Platform #1: NVIDIA Corporation
10======================================
11* Device #1: GeForce MX130, 501/2004 MB allocatable, 3MCU
12
13Hashes: 1 digests; 1 unique digests, 1 unique salts
14Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
15
16Applicable optimizers:
17* Zero-Byte
18* Early-Skip
19* Not-Salted
20* Not-Iterated
21* Single-Hash
22* Single-Salt
23* Brute-Force
24* Raw-Hash
25
26Minimum password length supported by kernel: 0
27Maximum password length supported by kernel: 256
28
29ATTENTION! Pure (unoptimized) OpenCL kernels selected.
30This enables cracking passwords and salts > length 32 but for the price of drastically reduced performance.
31If you want to switch to optimized OpenCL kernels, append -O to your commandline.
32
33Watchdog: Temperature abort trigger set to 90c
34
35The wordlist or mask that you are using is too small.
36This means that hashcat cannot use the full parallel power of your device(s).
37Unless you supply more work, your cracking speed will drop.
38For tips on supplying more work, see: https://hashcat.net/faq/morework
39
40Approaching final keyspace - workload adjusted.
41
427353d3b528592ecd12139fba62c43287:TRY-HACK-ME-[... snip ...]
43
44Session..........: hashcat
45Status...........: Cracked
46Hash.Type........: MD5
47Hash.Target......: 7353d3b528592ecd12139fba62c43287
48Time.Started.....: Tue Feb 18 20:37:10 2020 (0 secs)
49Time.Estimated...: Tue Feb 18 20:37:10 2020 (0 secs)
50Guess.Mask.......: TRY-HACK-ME-?d?d?d?d?d [17]
51Guess.Queue......: 1/1 (100.00%)
52Speed.#1.........: 17768.1 kH/s (1.00ms) @ Accel:1024 Loops:1 Thr:256 Vec:1
53Recovered........: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
54Progress.........: 100000/100000 (100.00%)
55Rejected.........: 0/100000 (0.00%)
56Restore.Point....: 0/100000 (0.00%)
57Restore.Sub.#1...: Salt:0 Amplifier:0-1 Iteration:0-1
58Candidates.#1....: TRY-HACK-ME-12345 -> TRY-HACK-ME-57397
59Hardware.Mon.#1..: Temp: 56c Util: 63% Core:1189MHz Mem:2505MHz Bus:4
60
61Started: Tue Feb 18 20:37:07 2020
62Stopped: Tue Feb 18 20:37:11 2020
63sckull@uplifted:~/tools/hashcat$Combination (MD5)
En esta seccion nos proporcionan tres diccionarios los cuales debemos de combinar segun el reto que se presente, utilizamos combinator de hashcat, el cual utiliza dos diccionarios y los combina (diccionario1diccionario2) para poder crackear un hash.
MD5 #1
Reto:
1a united states city followed by 2 digits (all lowercase)
20f8e6ad80411e27fc85ba1f79153dd8f 1sckull@uplifted:~/tools/hashcat$ ./hashcat64.bin -a 6 -m 0 hash.txt us-city.txt ?d?d
2hashcat (v5.1.0) starting...
3
4* Device #1: WARNING! Kernel exec timeout is not disabled.
5 This may cause "CL_OUT_OF_RESOURCES" or related errors.
6 To disable the timeout, see: https://hashcat.net/q/timeoutpatch
7nvmlDeviceGetFanSpeed(): Not Supported
8
9OpenCL Platform #1: NVIDIA Corporation
10======================================
11* Device #1: GeForce MX130, 501/2004 MB allocatable, 3MCU
12
13Hashes: 1 digests; 1 unique digests, 1 unique salts
14Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
15
16Applicable optimizers:
17* Zero-Byte
18* Early-Skip
19* Not-Salted
20* Not-Iterated
21* Single-Hash
22* Single-Salt
23* Raw-Hash
24
25Minimum password length supported by kernel: 0
26Maximum password length supported by kernel: 256
27
28ATTENTION! Pure (unoptimized) OpenCL kernels selected.
29This enables cracking passwords and salts > length 32 but for the price of drastically reduced performance.
30If you want to switch to optimized OpenCL kernels, append -O to your commandline.
31
32Watchdog: Temperature abort trigger set to 90c
33
34Dictionary cache built:
35* Filename..: us-city.txt
36* Passwords.: 2011
37* Bytes.....: 19099
38* Keyspace..: 201100
39* Runtime...: 0 secs
40
41The wordlist or mask that you are using is too small.
42This means that hashcat cannot use the full parallel power of your device(s).
43Unless you supply more work, your cracking speed will drop.
44For tips on supplying more work, see: https://hashcat.net/faq/morework
45
46Approaching final keyspace - workload adjusted.
47
480f8e6ad80411e27fc85ba1f79153dd8f:penn[... snip ...]ia46
49
50Session..........: hashcat
51Status...........: Cracked
52Hash.Type........: MD5
53Hash.Target......: 0f8e6ad80411e27fc85ba1f79153dd8f
54Time.Started.....: Tue Feb 18 20:46:41 2020 (0 secs)
55Time.Estimated...: Tue Feb 18 20:46:41 2020 (0 secs)
56Guess.Base.......: File (us-city.txt), Left Side
57Guess.Mod........: Mask (?d?d) [2], Right Side
58Guess.Queue.Base.: 1/1 (100.00%)
59Guess.Queue.Mod..: 1/1 (100.00%)
60Speed.#1.........: 70748.6 kH/s (0.28ms) @ Accel:128 Loops:50 Thr:256 Vec:1
61Recovered........: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
62Progress.........: 201100/201100 (100.00%)
63Rejected.........: 0/201100 (0.00%)
64Restore.Point....: 0/2011 (0.00%)
65Restore.Sub.#1...: Salt:0 Amplifier:50-100 Iteration:0-50
66Candidates.#1....: alabama13 -> worland68
67Hardware.Mon.#1..: Temp: 53c Util: 62% Core:1176MHz Mem:2505MHz Bus:4
68
69Started: Tue Feb 18 20:46:36 2020
70Stopped: Tue Feb 18 20:46:42 2020
71sckull@uplifted:~/tools/hashcat$MD5 #2
Reto:
1a united states city followed by a simple color, followed by 3 digits (all lowercase).
2fbd527693aceda78b30a978d7d3b9abbCombinator:
1./combinator.bin ../../us-city.txt ../../color.txt > ../../us-city-color.txt 1sckull@uplifted:~/tools/hashcat$ ./hashcat64.bin -a 6 -m 0 hash.txt us-city-color.txt ?d?d?d
2hashcat (v5.1.0) starting...
3
4* Device #1: WARNING! Kernel exec timeout is not disabled.
5 This may cause "CL_OUT_OF_RESOURCES" or related errors.
6 To disable the timeout, see: https://hashcat.net/q/timeoutpatch
7nvmlDeviceGetFanSpeed(): Not Supported
8
9OpenCL Platform #1: NVIDIA Corporation
10======================================
11* Device #1: GeForce MX130, 501/2004 MB allocatable, 3MCU
12
13Hashes: 1 digests; 1 unique digests, 1 unique salts
14Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
15
16Applicable optimizers:
17* Zero-Byte
18* Early-Skip
19* Not-Salted
20* Not-Iterated
21* Single-Hash
22* Single-Salt
23* Raw-Hash
24
25Minimum password length supported by kernel: 0
26Maximum password length supported by kernel: 256
27
28ATTENTION! Pure (unoptimized) OpenCL kernels selected.
29This enables cracking passwords and salts > length 32 but for the price of drastically reduced performance.
30If you want to switch to optimized OpenCL kernels, append -O to your commandline.
31
32Watchdog: Temperature abort trigger set to 90c
33
34Dictionary cache built:
35* Filename..: us-city-color.txt
36* Passwords.: 50275
37* Bytes.....: 740916
38* Keyspace..: 50275000
39* Runtime...: 0 secs
40
41The wordlist or mask that you are using is too small.
42This means that hashcat cannot use the full parallel power of your device(s).
43Unless you supply more work, your cracking speed will drop.
44For tips on supplying more work, see: https://hashcat.net/faq/morework
45
46Approaching final keyspace - workload adjusted.
47
48fbd527693aceda78b30a978d7d3b9abb:phoe[... snip ...]rple585
49
50Session..........: hashcat
51Status...........: Cracked
52Hash.Type........: MD5
53Hash.Target......: fbd527693aceda78b30a978d7d3b9abb
54Time.Started.....: Tue Feb 18 20:58:05 2020 (0 secs)
55Time.Estimated...: Tue Feb 18 20:58:05 2020 (0 secs)
56Guess.Base.......: File (us-city-color.txt), Left Side
57Guess.Mod........: Mask (?d?d?d) [3], Right Side
58Guess.Queue.Base.: 1/1 (100.00%)
59Guess.Queue.Mod..: 1/1 (100.00%)
60Speed.#1.........: 473.0 MH/s (5.50ms) @ Accel:128 Loops:62 Thr:256 Vec:1
61Recovered........: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
62Progress.........: 24936400/50275000 (49.60%)
63Rejected.........: 0/24936400 (0.00%)
64Restore.Point....: 0/50275 (0.00%)
65Restore.Sub.#1...: Salt:0 Amplifier:434-496 Iteration:0-62
66Candidates.#1....: alabamared925 -> worlandgrey405
67Hardware.Mon.#1..: Temp: 49c Util: 56% Core:1189MHz Mem:2505MHz Bus:4
68
69Started: Tue Feb 18 20:58:02 2020
70Stopped: Tue Feb 18 20:58:06 2020
71sckull@uplifted:~/tools/hashcat$MD5 #3
Reto:
1a simple color followed by a country, followed by 4 digits (all lowercase).
2a4131ef4610be60c0c6a3656b00dd763Combinator:
1./combinator.bin ../../color.txt ../../country.txt > ../../color-country.txt 1sckull@uplifted:~/tools/hashcat$ ./hashcat64.bin -a 6 -m 0 hash.txt color-country.txt ?d?d?d?d
2hashcat (v5.1.0) starting...
3
4* Device #1: WARNING! Kernel exec timeout is not disabled.
5 This may cause "CL_OUT_OF_RESOURCES" or related errors.
6 To disable the timeout, see: https://hashcat.net/q/timeoutpatch
7nvmlDeviceGetFanSpeed(): Not Supported
8
9OpenCL Platform #1: NVIDIA Corporation
10======================================
11* Device #1: GeForce MX130, 501/2004 MB allocatable, 3MCU
12
13Hashes: 1 digests; 1 unique digests, 1 unique salts
14Bitmaps: 16 bits, 65536 entries, 0x0000ffff mask, 262144 bytes, 5/13 rotates
15
16Applicable optimizers:
17* Zero-Byte
18* Early-Skip
19* Not-Salted
20* Not-Iterated
21* Single-Hash
22* Single-Salt
23* Raw-Hash
24
25Minimum password length supported by kernel: 0
26Maximum password length supported by kernel: 256
27
28ATTENTION! Pure (unoptimized) OpenCL kernels selected.
29This enables cracking passwords and salts > length 32 but for the price of drastically reduced performance.
30If you want to switch to optimized OpenCL kernels, append -O to your commandline.
31
32Watchdog: Temperature abort trigger set to 90c
33
34Dictionary cache built:
35* Filename..: color-country.txt
36* Passwords.: 4775
37* Bytes.....: 66846
38* Keyspace..: 47750000
39* Runtime...: 0 secs
40
41The wordlist or mask that you are using is too small.
42This means that hashcat cannot use the full parallel power of your device(s).
43Unless you supply more work, your cracking speed will drop.
44For tips on supplying more work, see: https://hashcat.net/faq/morework
45
46Approaching final keyspace - workload adjusted.
47
48a4131ef4610be60c0c6a3656b00dd763:blue[... snip ...]7926
49
50Session..........: hashcat
51Status...........: Cracked
52Hash.Type........: MD5
53Hash.Target......: a4131ef4610be60c0c6a3656b00dd763
54Time.Started.....: Tue Feb 18 21:00:36 2020 (0 secs)
55Time.Estimated...: Tue Feb 18 21:00:36 2020 (0 secs)
56Guess.Base.......: File (color-country.txt), Left Side
57Guess.Mod........: Mask (?d?d?d?d) [4], Right Side
58Guess.Queue.Base.: 1/1 (100.00%)
59Guess.Queue.Mod..: 1/1 (100.00%)
60Speed.#1.........: 355.7 MH/s (0.63ms) @ Accel:128 Loops:64 Thr:256 Vec:1
61Recovered........: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
62Progress.........: 35755200/47750000 (74.88%)
63Rejected.........: 0/35755200 (0.00%)
64Restore.Point....: 0/4775 (0.00%)
65Restore.Sub.#1...: Salt:0 Amplifier:7424-7488 Iteration:0-64
66Candidates.#1....: redafghanistan9147 -> greyzimbabwe8479
67Hardware.Mon.#1..: Temp: 55c Util: 87% Core:1189MHz Mem:2505MHz Bus:4
68
69Started: Tue Feb 18 21:00:33 2020
70Stopped: Tue Feb 18 21:00:37 2020
71sckull@uplifted:~/tools/hashcat$Rainbow Table (NTLM)
En esta seccion utilizaremos ophcrack para poder cracker los hashes utilizando un rainbow table. Ophcrack viene incluido en el sistema de Kali Linux, por lo que debemos de descargar unicamente el rainbow table XP special (8GB).
Retos:
1FF6EDF5C42F0FE57AAD5360A07991BD6:A2F77301E3162DB9213E3DA35D5EA931
21CDEE68485E23D0E1DD9CED345A47D0C:D4F3A9ACC8448BC9EF7C53B3BBBEC9C3
38C7972A6362411C1B0D3662B97EBED58:DAE91036E4B2E7F0B5061956BCE39A3EImportamos los hashes a ophrack y esperamos el resultado:

