Hack Forums
[Python] [CHALLENGE] Difficult Programming Challenge [CHALLENGE] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] [CHALLENGE] Difficult Programming Challenge [CHALLENGE] (/showthread.php?tid=3244344)



[CHALLENGE] Difficult Programming Challenge [CHALLENGE] - -Max - Feb 9, 2013

I have come up with a rather challenging (well challenging if you can't figure out the concept) little task that I would like to propose.

The task is to write a script that will decode the following list of numbers into their plain text form without any other information as to how they were encoded.

Code
1096
1121
1128
1121
1057
1056
1113
1135
1141
1056
1127
1135
1140
1056
1129
1140
1057
1056
1095
1135
1135
1124
1056
1130
1135
1122
1057
1056
1104
1101
1056
1133
1125
1056
1143
1129
1140
1128
1056
1145
1135
1141
1138
1056
1139
1123
1138
1129
1136
1140
1056
1121
1134
1124
1056
1097
1056
1143
1129
1132
1132
1056
1121
1124
1124
1056
1145
1135
1141
1056
1140
1135
1056
1140
1128
1125
1056
1132
1129
1139
1140
1056
1135
1126
1056
1136
1125
1135
1136
1132
1125
1056
1143
1128
1135
1056
1139
1135
1132
1142
1125
1124
1056
1129
1140
1070
1034

HINT: 1kb

If no one can figure it out I will release the decode function, until then GOOD LUCK :D

People who solved it
  • frenchtoast

  • K4Fr

  • Dmaster_773

  • -Legacy-

  • v0id_v0mit





* - Hydra_ - Feb 9, 2013

Really! Are u Fuckin' kidding me? :D


* - JrMn - Feb 9, 2013

Max, this is not as trivial as expected. Would you be so nice to give us any hint(s)? :)


* - -Max - Feb 9, 2013

(Feb 9, 2013 09:58 AM)The Hydra Wrote:  Really! Are u Fuckin' kidding me? :D

Hehe, it's quite simple actually. Just think really hard.


(Feb 9, 2013 01:00 PM)JrMn Wrote:  Max, this is not as trivial as expected. Would you be so nice to give us any hint(s)? :)

I will give but one hint.

The hint is: 1kb

That is actually a big hint, just not very straight forward.


* - Echoe - Feb 9, 2013

Well this challenge is only challenging because your practically trying to make us guess what the encryption is?

Ill attempt i guess.. are the integers the bits and you want us to turn them into decimal form?


* - -Max - Feb 9, 2013

(Feb 9, 2013 03:29 PM)Echoe Wrote:  Well this challenge is only challenging because your practically trying to make us guess what the encryption is?

Ill attempt i guess.. are the integers the bits and you want us to turn them into decimal form?

But there is actually a simple logic in solving the encryption.
Think about it, think about Python and how it works in certain situations.



(Feb 9, 2013 04:02 PM)wingb0t Wrote:  you said "encoded" an I assume this is some kind of text?
then I guess a hint for everyone is this:
http://en.wikipedia.org/wiki/Letter_frequency

also please dont release the solution yet, I want to try it 2moro, not enough time/motivation right now

It is much simpler than that I assure you.

I won't be releasing the solution any time soon :P


* - Dmaster_773 - Feb 10, 2013

Well this is a joke... cbf PMing you...

Why even bother with the hint, it was so obvious...

Spoiler (Click to View)

Here's a new one! It's pretty hard to solve... you might actually need a hint for this one! And even that might not help...

Code
129 165 147 162 131 180 155 194 137 63 209 138 181 208 43 187 137 125 171 67 139 182 182 177 116 157 157 206 191 153 175 202 149 60

Spoiler (Click to View)


* - -Max - Feb 10, 2013

(Feb 10, 2013 12:45 AM)Dmaster_773 Wrote:  Well this is a joke... cbf PMing you...

Why even bother with the hint, it was so obvious...

Spoiler (Click to View)

Here's a new one! It's pretty hard to solve... you might actually need a hint for this one! And even that might not help...

Code
129 165 147 162 131 180 155 194 137 63 209 138 181 208 43 187 137 125 171 67 139 182 182 177 116 157 157 206 191 153 175 202 149 60

Spoiler (Click to View)

Hahaha, if it's such a joke I want the solution. You obviously don't have the solution you "cbf PMing me..."

Don't be a dick.


* - ki113d - Feb 10, 2013

(Feb 10, 2013 09:12 AM)Max00355 Wrote:  Hahaha, if it's such a joke I want the solution. You obviously don't have the solution you "cbf PMing me..."

Don't be a dick.

Quoted for truth!

PHP Code

<?php 
print __import__('re').findall(r"var eu = \'http://[\w\d./:?\'-=_]+\';", __import__('urllib2').urlopen('http://adf.ly/HmtTG').read())[0][10:-2] 



* - v0id_v0mit - Feb 10, 2013

Well that was easy, atleast with the hint.


* - -Max - Feb 10, 2013

(Feb 10, 2013 03:19 PM)v0id_v0mit Wrote:  Well that was easy, atleast with the hint.

Yeah... I think that hint gave it away a little too much...


* - frenchtoast - Feb 11, 2013

116 0 101 6 104 2 111 8 101 8 113 4 106 10 108 4 97 8 114 8 99 4 107 14 121 0 98 0 102 6 102 2 118 2 111 0 111 6 99 2 99 4 116 4 98 6 105 10 101 8 98 8 120 2 110 2 116 2 97 6 101 0 98 2 103 16 97 6 98 6 100 10 116 0 102 14 97 0 120 2 98 0 101 0 121 0 107 8 114 6 118 2 100 22 105 10 111 10 114 4 98 12 99 12 109 2 104 6 98 14 114 4 114 2 110 12 98 12 100 2 116 6 107 8 107 14 98 4

only lowercase letters, not separated by spaces. no commas, apostrophes etc. they form words
each number does not necessarily represent a letter


* - Dmaster_773 - Feb 11, 2013

(Feb 11, 2013 09:56 AM)frenchtoast Wrote:  116 0 101 6 104 2 111 8 101 8 113 4 106 10 108 4 97 8 114 8 99 4 107 14 121 0 98 0 102 6 102 2 118 2 111 0 111 6 99 2 99 4 116 4 98 6 105 10 101 8 98 8 120 2 110 2 116 2 97 6 101 0 98 2 103 16 97 6 98 6 100 10 116 0 102 14 97 0 120 2 98 0 101 0 121 0 107 8 114 6 118 2 100 22 105 10 111 10 114 4 98 12 99 12 109 2 104 6 98 14 114 4 114 2 110 12 98 12 100 2 116 6 107 8 107 14 98 4

only lowercase letters, not separated by spaces. no commas, apostrophes etc. they form words
each number does not necessarily represent a letter

Unless this is really easy, you should at least encrypt an entire wikipedia page or something, as there isn't enough data to decrypt it feasibly... for all I know this is just a simple 4/5 character key that's being rotated over every 2nd character, as the rest is just noise...


* - frenchtoast - Feb 11, 2013

its not hard, first message is just a big word of words using lowercase. i thought maybe it would look less obscure, and be easier to see.

wiki page:
http://pastie.org/6120018