HTB - bincrypt-breaker easy solution
by tony_boom23 - Tuesday March 18, 2025 at 04:33 AM
#1
python script:

def swap_idx(buf, v1, v2):     tmp = buf[v1]     buf[v1] = buf[v2]     buf[v2] = tmp     return buf def reverse_shuffle(buf, key):     v8 = [9, 12, 2, 10, 4, 1, 6, 3, 8, 5, 7, 11, 0, 13]     v7 = [2, 4, 6, 8, 11, 13]     v3 = 1     for j in range(6):         buf[v7[j]] ^= key     while v3 <= 8:         src = [0] * 14         for i in range(14):             src[v8[i]] = buf[i]         buf = src         v3 += 1     return buf enc_flag = [82, 86, 123, 114, 49, 53, 93, 95, 118, 99, 80, 51, 111, 93, 76, 95, 116, 97, 122, 109, 102, 83, 84, 97, 97, 51, 115, 48] chunk_1 = enc_flag[:14] chunk_2 = enc_flag[14:] rshuffled1 = reverse_shuffle(chunk_1, 2) rshuffled2 = reverse_shuffle(chunk_2, 3) joint = rshuffled1 + rshuffled2 joint = swap_idx(joint, 20, 23) joint = swap_idx(joint, 4, 8) joint = swap_idx(joint, 14, 26) joint = swap_idx(joint, 0, 12) print(bytes(joint))
Reply
#2
thanks!
if you have rega's town
and willing to trade it with any other reverse challenge. pm me!
Reply
#3
(03-18-2025, 05:52 AM)suspect Wrote: thanks!
if you have rega's town
and willing to trade it with any other reverse challenge. pm me!

I don't have it but this user does.
https://raidforums.su/Thread-Rega-s-Town...pid1101093

You can trade with this user for a flag and then access these websites along with
the flag if you want to learn the process in addition to the points you got.

https://blog.x3ric.com/posts/HackTheBox-...Challenge/
https://linu.sh/posts/regas-town/

Think like a hacker :-)
Reply
#4
hi thanks for the script but would be ok to give a lil more of context to why it works in the chall
Ban reason: Reposting hidden content for free (Permanent)
Reply
#5
Thank you for all your work
Ban reason: Leeching. (Permanent)
Reply
#6
(03-19-2025, 08:51 AM)LCF Wrote: Thank you for all your work

my pleasure dear
Heart
Reply
#7
thank so nuch brother
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 360 91,365 03-28-2026, 09:28 AM
Last Post: catsweet
  [FREE] HTB-ProLabs APTLABS Just Flags kewlsunny 23 4,708 03-28-2026, 03:30 AM
Last Post: lulaladrow
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 87 9,895 03-27-2026, 07:22 PM
Last Post: stn
  HTB Eloquia User and Root Flags - Insane Box 69646B 13 2,690 03-27-2026, 06:14 PM
Last Post: vlxw
  HTB - ALL Challenges you Stuck in osamy7593 2 2,984 03-27-2026, 04:24 PM
Last Post: catsweet



 Users browsing this thread: