Temporary Advertisements:
Ad
Ad
Ad
HTB - Maze (Reversing)
by paven - Saturday February 10, 2024 at 01:49 AM
#11
(Aug 15, 2024, 05:04 PM)x1rx Wrote:
from pwn import *

encrypted_flag_array = [273, 308, 290, 254, 230, 271, 232, 254, 260, 279, 210, 232, 273, 325, 303, 264, 217, 221, 204, 263, 215, 258, 230, 283, 237, 268, 259, 287, 224, 219, 193, 192, 135, 117, 191]

flag = ["H", "T", "B"]

p = log.progress("flag")
i = 0
for enc_value in encrypted_flag_array:
    c = enc_value - (ord(flag[i + 1]) + ord(flag[i + 2]))
    flag.append(chr(c))
    i += 1
    p.status(''.join(flag))

how to find the valid encrypted arrays?
Reply
#12
(Jan 27, 2025, 02:43 AM)christopher5gb Wrote:
(Aug 15, 2024, 05:04 PM)x1rx Wrote:
from pwn import *

encrypted_flag_array = [273, 308, 290, 254, 230, 271, 232, 254, 260, 279, 210, 232, 273, 325, 303, 264, 217, 221, 204, 263, 215, 258, 230, 283, 237, 268, 259, 287, 224, 219, 193, 192, 135, 117, 191]

flag = ["H", "T", "B"]

p = log.progress("flag")
i = 0
for enc_value in encrypted_flag_array:
    c = enc_value - (ord(flag[i + 1]) + ord(flag[i + 2]))
    flag.append(chr(c))
    i += 1
    p.status(''.join(flag))

how to find the valid encrypted arrays?
i find this https://hackmd.io/@0xMikiko/MediumPart3#...ge-18-Maze
Reply
#13
That's of a great help!

Thank you, sir!
Much appreciated!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [FREE] 300+ Writeups PDF HackTheBox/HTB premium retired Tamarisk 457 121,935 10 hours ago
Last Post: jiqmug
  [MEGALEAK] HackTheBox ProLabs, Fortress, Endgame - Alchemy, 250 Flags, leak htb-bot htb-bot 166 34,968 Today, 03:09 AM
Last Post: meomeothantai
  CC,CVV,VBV,NON VBV ,DUMPS ,FULLZ,BANK LOGS (FULL INFO) BEST LINKABLES @RICKBUTLER Ballerwailer4G 0 107 Yesterday, 11:06 PM
Last Post: Ballerwailer4G
  [FREE] HackTheBox Academy - CBBH CDSA CPTS All Modules Flags Techtom 110 14,395 Yesterday, 06:21 PM
Last Post: Kazahk
Heart [FREE] HackTheBox All Cheatsheets Tamarisk 85 11,388 Yesterday, 06:13 PM
Last Post: Kazahk

Forum Jump:


 Users browsing this forum: