File tree Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Expand file tree Collapse file tree 1 file changed +32
-4
lines changed Original file line number Diff line number Diff line change 1
1
#include <stdio.h>
2
2
#include <cs50.h>
3
+ #define _XOPEN_SOURCE
4
+ #include <unistd.h>
3
5
4
- int main (int argc , char * * argv )
6
+ int main (int argc , char * * argv )
5
7
{
6
- // There must be two arguments
7
8
if (argc != 2 )
8
9
{
9
- printf ("No key provided " );
10
+ printf ("You must provide a hash " );
10
11
return 1 ;
11
12
}
12
- }
13
+
14
+ char salt [3 ];
15
+ salt [0 ] = argv [1 ][0 ];
16
+ salt [1 ] = argv [1 ][1 ];
17
+ salt [2 ] = '\0'
18
+
19
+ char pass [4 ];
20
+ char * characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
21
+ for (int i = 0 ; i < 4 ; i ++ )
22
+ {
23
+ for (int j = 0 ; j < 52 ; j ++ )
24
+ {
25
+
26
+ for (int k = 0 ; k < 52 ; k ++ )
27
+ {
28
+
29
+ for (int l = 0 ; l < 52 ; l ++ )
30
+ {
31
+
32
+ for (int j = 0 ; j < 52 ; j ++ )
33
+ {
34
+
35
+ }
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
You can’t perform that action at this time.
0 commit comments