Comparaison

intro hardware FCSC 2023 solved on

Description

In order to become familiar with the virtual machine and its assembly language, you have to write an assembly code that performs a comparison.

The machine is initialized with two random values in the registers R5 and R6. At the end of the program, R0 must contain 1 if the values are different, 0 otherwise.

The bytecode will be sent in hexadecimal format, which can be generated using the provided assembler (assembly.py file).

The documentation of the virtual machine is available on this page.

Files

  • docker-compose.yml
  • assembly.py
    18.64 KiB – dc0970c915e15e4356a54ee592ec0c10aa39db0f31e33ddc50a38d5f80897dea
  • challenge.py
    1.12 KiB – f9a8144c45c430c7dac2424757d3de2012cc3d3f5c0f017d8677d06f735151f2
  • machine.py
    11.31 KiB – 216f14947d8daedfc71175035487674a0687d5b66ecedb61120330df1ebceff0

Author

Neige

Challenge Instructions

  1. First, download docker-compose.yml:
    curl https://hackropole.fr/challenges/fcsc2023-hardware-asm-comparaison/docker-compose.public.yml -o docker-compose.yml
  2. Launch the challenge by executing in the same folder:
    docker compose up
  3. Then, in another console, access the challenge with Netcat:
    nc localhost 4000
⚠️ Important: You must solve the challenge by interacting with the Docker container through the exposed network port. Any other way is not considered valid.

In case you encounter problems, please consult the FAQ.

Flag

Share my success on Fediverse, Twitter, Linkedin, Facebook, or via email.

Submit your solution

You can submit your writeup for this challenge. Read the FAQ to learn how to proceed.

You need to be logged in to submit a writeup.

Writeups

I've been looking for a long time and I still can't find the flag!

You can vote for the solutions you prefer by using the on their respective pages.

DateAuthor Language Tags Vote
2024-02-13
pioueo
🇫🇷