Broken XOR 3

rmplpmpl
Posts: 113
Joined: Sun Oct 26, 2008 10:38 am
Location: Germany

Broken XOR 3

Post by rmplpmpl »

Hi there, after brute-forcing my way through xor3 yesterday I have a small issue on understanding the broken xor 3 cipher.

Do I understand it correct that with "encrypted with the same cipher as the Didactic XOR 3 challenge" that means same encryption method, same startkey, same offset (x)?

Probably not, but then I am lacking inital ideas how to hack this.
the_impaler
Posts: 61
Joined: Wed Apr 30, 2008 3:31 am

Post by the_impaler »

The key and offset are different.
I am not sure if there is such English word like "brutter" but if there is then you should try "brutter force" approach. It's not too much harder than xor 3, so just make your brute force a bit more so. :twisted:
User avatar
m!nus
Posts: 202
Joined: Sat Jul 28, 2007 6:49 pm
Location: Germany

Post by m!nus »

It's not that hard, you can find it as in XOR 3 but a part of the message is broken.
as it says in the challenge there are missing 0s, so you put them where the string gets unreadable, just a bit trail and error
rmplpmpl
Posts: 113
Joined: Sun Oct 26, 2008 10:38 am
Location: Germany

Post by rmplpmpl »

OK, so the beginning of the message must be encoded correct - that was my main concern, since it would add so many more interations to the brute force, if there is a zero missing at the beginning.
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

You can brute-force the adding of zeros too. There aren't actually too many additional strings to try to decode.
rmplpmpl
Posts: 113
Joined: Sun Oct 26, 2008 10:38 am
Location: Germany

Post by rmplpmpl »

gfoot wrote:You can brute-force the adding of zeros too. There aren't actually too many additional strings to try to decode.
Well, I got it now, it was quite easy, acutally. But I still don't understand how you possibly could brute force it.

You need to find the startkey and the offset value. If a zero at the beginning of the cipher would have been missing, all decoding would lead to ASCII-garbage, so you had no chance to find out that your key and offset where correct and you only would have to add a zero or two. Perhaps I just don't get it?
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

If you want to discuss it, we can do so in the solution forum - we shouldn't talk too much about solutions here.
rmplpmpl
Posts: 113
Joined: Sun Oct 26, 2008 10:38 am
Location: Germany

Post by rmplpmpl »

gfoot wrote:If you want to discuss it, we can do so in the solution forum - we shouldn't talk too much about solutions here.
You're right :)
Allosentient
Posts: 273
Joined: Thu Apr 10, 2008 9:47 pm

Post by Allosentient »

gfoot wrote:You can brute-force the adding of zeros too. There aren't actually too many additional strings to try to decode.
I don't really get this, here is the text, it is 133 characters long: 8d541ae26426f8b97426b7ae7240d78e401f8f904717d09b2fa4a4622cfcbf7337fbba2cdbcb4e3cdb994812b66a27e9e02f21faf8712bd2907fc384564998857e3b1

That means there are 2^(133-1) possible ways to add zeros, which is around 10^40, so I don't think brute forcing the adding of zeros by itself is correct, there will have to be other things going on at the same time. I am trying something right now but not very optimistic about it
gfoot
Posts: 269
Joined: Wed Sep 05, 2007 11:34 pm
Location: Brighton, UK

Post by gfoot »

Maybe "brute force" is overstating it - you need to prune your search too. You also get a lot of false positives, e.g. adding a zero before every character gives a ciphertext with only 16 values in it, which decrypts to random ascii text for quite a few key values.
Allosentient
Posts: 273
Joined: Thu Apr 10, 2008 9:47 pm

Post by Allosentient »

I tried splitting the text string into about 9 or 10 characters (4-5 hex values) and iterating through all possible combinations, shifting the text substring taken by 1, then trying ALL possible combinations, and searching for the string "the", "solu", or "answ", or "hack" which in theory should have came up. There were a few matches but they were just random. I guess I am doing something wrong or none of those strings are in the decrypted text.
silverSl!DE
Posts: 7
Joined: Fri Oct 31, 2008 1:36 pm

Post by silverSl!DE »

Hint
Read the Topic: "Didactic XOR Cipher 3"
lukas
Posts: 34
Joined: Wed Nov 26, 2008 1:53 pm
Location: Germany

Post by lukas »

script languages 4 ever :lol:
nighthalk
Posts: 41
Joined: Fri Jul 31, 2009 8:22 pm

Post by nighthalk »

a bit of a hit, theres more then enough characters to "solve" this like the other one, you apply the extra 0 thing to finish the whole string
compudemon
Posts: 33
Joined: Sat Aug 13, 2011 2:13 pm

Post by compudemon »

i did not brute force adding 0s myself but i think it can be done. you could take say the first 10 hex digits and just brute force all the x b and add 0 combos on that rather then the whole thing. you should get 5 - 10 letters that would be more then enough to tell if a x b pair is good. if you get more then one good x b pair you can widen the analysis window till there is only 1. i solved it without brute forcing the 0s, though ill admit my method needed a bit of luck to work as it only made one guess per x b pair favoring the least added 0s so if 112233 decoded fine it would not check 11022033 ect
Post Reply