ARMs Race Official Discussion
by cavour13 - Wednesday February 21, 2024 at 12:00 PM
#1
Hi all and good luck !

i did some research about the hex blob provided by the challenge but im kinda lost about next step
Reply
#2
IDK why that hex string keep changing if reload the page
Reply
#3
(02-21-2024, 02:30 PM)OsuLearner Wrote: IDK why that hex string keep changing if reload the page

Ikr so annoying. so seems we need to use pwntools ?
Reply
#4
Solved. Pm for writeup
Reply
#5
Here code:
import socket from unicorn import * from unicorn.arm_const import * def recvuntil(sock, delim=b'\n'):     data = b''     while not data.endswith(delim):         data += sock.recv(1)     return data def HexToArm(hex_str):     code_bytes = bytes.fromhex(hex_str)     # Initialize Unicorn for ARM architecture     mu = Uc(UC_ARCH_ARM, UC_MODE_ARM)     # Map 2MB memory for this emulation at address 0x10000     ADDRESS = 0x10000     mu.mem_map(ADDRESS, 2 * 1024 * 1024)     # Write machine code to be emulated to memory     mu.mem_write(ADDRESS, code_bytes)     mu.reg_write(UC_ARM_REG_R0, 0x0)     # Emulate machine code in infinite time     try:         mu.emu_start(ADDRESS, ADDRESS + len(code_bytes))     except UcError as e:         print("ERROR: %s" % e)     # Read back the value of R0 register     r0 = mu.reg_read(UC_ARM_REG_R0)     return str(r0) def main():     host = "83.136.255.41"     port = 39006     sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)     sock.connect((host, port))     for i in range(51):         response = recvuntil(sock)         decoded_response = response.decode()         print(decoded_response)         colon_index = decoded_response.find(': ')         content = decoded_response[colon_index + 1:].strip()         response = recvuntil(sock, b'Register r0:')         decoded_response = response.decode()         result = HexToArm(content)         sock.send((result + '\n').encode())         print(decoded_response + result + "\n")     sock.close() if __name__ == "__main__":     main()
Ban reason: Replying With Hidden Content (Permanent)
Reply
#6
https://me0w.gitbook.io

i wrote this writeup!
Reply
#7
(08-06-2024, 10:55 AM)awwliveyet Wrote: https://me0w.gitbook.io

i wrote this writeup!

Nice writeup ! : )
Reply
#8
https://me0w.gitbook.io COULD HAVE ATTACHED OTHER DETAILES LINKS FOR SOLVING IN DEPTH
Ban reason: Selling in HTB | /Thread-CPTS-FULL-EXAM-WRITEUP (Permanent)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CRTA Discussion Computerlab 4 849 08-11-2025, 09:44 AM
Last Post: Computerlab
  Cyber Apocalypse CTF 2025: Tales from Eldoria (Official Writeups) Phoka 0 449 03-27-2025, 12:47 PM
Last Post: Phoka
  HTB Arms Roped Ravisharma26 4 476 10-01-2024, 07:21 AM
Last Post: Windows7
  ARMs Race Writeup toor 5 1,520 06-27-2024, 12:45 PM
Last Post: 0x00b
  [ HTB ] - Ouija - [ Discussion ] RebeLHeX 79 55,946 04-15-2024, 07:03 PM
Last Post: 0xRulez



 Users browsing this thread: 1 Guest(s)