Home Hackvent 2016 Dec 5: Boolean Fun
Writeup
Cancel

Dec 5: Boolean Fun

Challenge

Santa found a paper with some strange logical stuff on it. On the back of it there is the hint: “use 32 bit”.

He has no clue what this means - can you show him, what “???” should be?

Solution

Just some bitwise logic operators, we can calculate answer in python as follows:

1
2
3
$ python
>>> ~((4 | 7) ^ (1337 & 424242)) | 0xb055
-291

Put -291 in Ball-o-matic to get the bauble with the nugget

Flag

HV16-2wGq-wOX3-T2oe-n8si-hZ0A