Hack The Box - Deterministic - Misc Challenge - Writeup

We have a file "deterministic.txt" that contains a lot of numbers. Took me a while to figure this out. I searched the forums for hints and found that we should remove duplicates and reorder the list.


100 H 110

110 T 111

111 B 112

112 { 113

113 l 114

114 0 115

115 l 116

116 _ 117

117 n 118

118 0 119

119 p 120

120 e 121

121 } 122

9 18 69

3 61 5

69 93 22

1 36 10

9 18 69

3 61 5

69 93 22

1 36 10

17 27 20

22 28 18

12 89 1

22 28 18

12 89 1


...and so on...



I used Excel to sort the list and remove any duplicates. Ignoring the HTB part which is 110 until 121. We'll get something like this:


0 33 3

1 36 10

2 93 6

3 61 5

4 93 1

4 93 17

5 43 9

6 54 4

9 18 69

10 93 13

11 54 122

12 89 1

13 29 2

15 28 68

17 27 20

...

...

...




If we put the numbers in the middle into Cyberchef we'll get some decoded text and it looks like the flag. Yay! But not quite...




Referring to our hint in the txt file,

100 H 110

110 T 111

111 B 112

112 { 113

113 l 114

114 0 115

115 l 116

116 _ 117

117 n 118

118 0 119

119 p 120

120 e 121

121 } 122


100 = H, 110 is the number that you go to next, which has the character T. 110 = T, 111 = B and so on...



Now, if we put back the decoded characters into Excel,


0 H 3

1 M 10

2 4 6

3 T 5

4 4 1

4 4 17

5 B 9

...

...

...



0 = H, and then the next number is 3 so 3 = T, and then next number is 5 which is B and so on...



Finally, we got the flag! Woohoo!




Comments