Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
681 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#include "ntlm9_functions.cl" | ||
|
||
__kernel void test_chain_ntlm9(__global unsigned int *g_chain_len, __global unsigned long *g_start, __global unsigned long *g_end) { | ||
|
||
unsigned long index = *g_start; | ||
unsigned char plaintext[9]; | ||
|
||
|
||
for (unsigned int pos = 0; pos < (*g_chain_len - 1); pos++) { | ||
index_to_plaintext_ntlm9(index, plaintext); | ||
index = hash_to_index_ntlm9(hash_ntlm9(plaintext), pos); | ||
} | ||
|
||
*g_end = index; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "ntlm9_functions.cl" | ||
|
||
__kernel void test_hash_ntlm9(__global char *g_input, __global unsigned long *g_output) { | ||
unsigned char input[9]; | ||
|
||
for (int i = 0; i < 9; i++) | ||
input[i] = g_input[i]; | ||
|
||
*g_output = hash_ntlm9(input); | ||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#include "ntlm9_functions.cl" | ||
|
||
__kernel void test_hash_to_index_ntlm9(__global unsigned long *g_hash, __global unsigned int *g_pos, __global unsigned long *g_index) { | ||
|
||
*g_index = hash_to_index_ntlm9((unsigned long)*g_hash, (unsigned int)*g_pos); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include "ntlm9_functions.cl" | ||
#include "shared.h" | ||
|
||
__kernel void test_index_to_plaintext_ntlm9(__global unsigned long *g_index, __global unsigned char *g_plaintext) { | ||
unsigned char plaintext[9]; | ||
|
||
index_to_plaintext_ntlm9((unsigned long)*g_index, plaintext); | ||
|
||
for (int i = 0; i < 9; i++) | ||
g_plaintext[i] = plaintext[i]; | ||
|
||
return; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.