Temporary Advertisements:
Ad
Ad
Ad
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
(Mar 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://bf.st/Thread-Rega-s-Town-HTB-cha...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

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Reposting hidden content for free
Reply
#5
Thank you for all your work

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching.
Reply
#6
(Mar 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
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 163 34,267 2 hours ago
Last Post: yaboi0269
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 456 121,072 3 hours ago
Last Post: flowerer99
  HTB - ALL Challenges you Stuck in osamy7593 5 1,195 Yesterday, 05:29 PM
Last Post: axiom4
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 109 13,947 Yesterday, 04:02 AM
Last Post: shia
  [FREE] HackTheBox Academy - CAPE Path Study Techtom 67 11,469 Oct 15, 2026, 12:09 PM
Last Post: ploufmeuhmeuh

Forum Jump:


 Users browsing this forum: 1 Guest(s)