Binary Bomb Lab Assignment Phase 5 - Stuck on a XOR line

85 views Asked by At

In phase 5 of my bomb lab, I need to input seven integers.

Here's the assembly code for the part I'm stuck on:

0x00005555555568cc <+11>:    xor    0x8(%rsp),%esi
0x00005555555568d0 <+15>:    cmp    $0xffffffff,%esi
0x00005555555568d3 <+18>:    jne    0x555555556900 <fun5+63>

The value at 0x8(%rsp) is my 7th input, and the value at %esi is my 6th input. I'm stuck on what I should make these inputs to make the cmp line equal so that my code does not jump.

1

There are 1 answers

0
FelipeFR On

See Eric's comment: you need 6th_input XOR 7th_input to be 0xffffffff. For example, one of them could be 4294967295 and the other 0.

Presumably you have a 6th input already in which case you can trivially use bash to determine what the 7th input must be:

sixth=0 # Set your 6th input here.
echo $((4294967295 ^ ${sixth}))