08-14-2017, 04:23 PM
Hi Philsmd, thanks for the reply, but I think that I have to be more specific.
I have the cipher text, and plaintext pair, I don't know much about the keys, all I believe is that there is not more than 2 adjacent bytes the same (and I think that it only happens once).
I have made the 3des kernel to be k1,k2,k1, and it works properly. That makes it a 16 byte keyspace now.
The default mask attack I believe is sequential (correct me if I'm wrong), which is not what I want, because it would take a long time to build up to try a real key (in my instance).
What I am looking for is just to generate random 16 hex bytes, and to try them.
What I don't want to try is keys like this: 0101010101010101FAFAFAFAFAFAFAFA
or 1290B2D4AA9802DCFAFAFAFAFAFAFAFA.
What I want it just randomly made, such as 1290B2D4AA9802DC5D76BEC5601A3E34, etc.
I just want to use the rand() function to generate k1,k2, with a seed of the time (only at start-up), and to keep on trying random keys until my patched 3des kernel gives me the found plaintext.
Thanks.
I have the cipher text, and plaintext pair, I don't know much about the keys, all I believe is that there is not more than 2 adjacent bytes the same (and I think that it only happens once).
I have made the 3des kernel to be k1,k2,k1, and it works properly. That makes it a 16 byte keyspace now.
The default mask attack I believe is sequential (correct me if I'm wrong), which is not what I want, because it would take a long time to build up to try a real key (in my instance).
What I am looking for is just to generate random 16 hex bytes, and to try them.
What I don't want to try is keys like this: 0101010101010101FAFAFAFAFAFAFAFA
or 1290B2D4AA9802DCFAFAFAFAFAFAFAFA.
What I want it just randomly made, such as 1290B2D4AA9802DC5D76BEC5601A3E34, etc.
I just want to use the rand() function to generate k1,k2, with a seed of the time (only at start-up), and to keep on trying random keys until my patched 3des kernel gives me the found plaintext.
Thanks.