This level takes a look at converting strings to little endian integers.
This level is easily solvable via python.
In previous levels, I’ve been using the
struct.pack function in
python to convert values to their escaped counterpart. For example,
the hexadecimal value
0xdeadbeef is written as
struct.pack takes care of converting a integer to this escaped
Using the knowledge above and with a dash of parsing & sockets - We’re able to quickly solve this level.
$ python net0_solution.py Thank you sir/madam
This level tests the ability to convert binary integers into ASCII representation.
In the previous challenge, we converted a ASCII integer into a binary representation. This time, we do the opposite.
Note that we are using
struct.unpack instead of
struct.pack this time.
$ python net1_solution.py you correctly sent the data
This code tests the ability to add up 4 unsigned 32-bit integers. Hint: Keep in mind that it wraps.
Modifying our previous solution
$ python net2_solution.py you added them correctly
These challenges were pretty simple to solve with the help of python. Thanks for reading.