DEV Community

Mudacumura Brunoblaise
Mudacumura Brunoblaise

Posted on

Virtual Machine 0

Virtual Machine 0

100 points

AUTHOR: LT 'SYREAL' JONES

Description
Can you crack this black box?
We grabbed this design doc from enemy servers: [Download]. We know that the rotation of the red axle is input and the rotation of the blue axle is output. The following input gives the flag as output: [Download].


I searched google what the heck is a .dae file is, and its a file for models and can be opened in blender.

Opening the model in blender we get a lego construction with 2 wheels:

  • Blue - 8 teeth
  • Red - 40 teeth

We're told that the input is the number of times we turned the red wheel and the output is the number of times we turned the blue wheel.

Turing the red wheel once rotates the blue wheel 5 times so that's their relationship (idea from the hint), so if we just multiply the input by 5 we get the output which is a number that's supposed to be the flag.

There's only one thing to do now and it's to decode it to bytes:

from Crypto.Util.number import long_to_bytes

n = 39722847074734820757600524178581224432297292490103995908738058203639164185
print(long_to_bytes(n*5))
Enter fullscreen mode Exit fullscreen mode

And we get the flag:

picoCTF{your flag}

Top comments (5)

Collapse
 
namanh_le_a1e7e8886db6b7 profile image
Nam Anh Le

im dead the flag is not working 😭

Collapse
 
nkurunzizagad10 profile image
0xd

because the flag is diffrente from others you have to change the input u got from downloaded and replace with that one and you will get your flag as well
or check my youtube channel Cyberdemo

Collapse
 
brunoblaise profile image
Mudacumura Brunoblaise

You should change to your input the one they gave you and then after replacing it run the python script you should see your flag there.

Collapse
 
idrum profile image
Dmitriy

dude please stop flooding

Collapse
 
brunoblaise profile image
Mudacumura Brunoblaise

Why?