I am working on a binary bomb assignment, and have been stuck on phase 2 for a long time. please help! i've read the other forums on this assignment and feel like I know what's going on (I'm stuck on the making ebp/input = 40 so that it passes the $1== test) but I still can't figure it out. How do you make a 6-digit number with all different digits be 40?
08048bed <phase_2>:
8048bed: 55 push %ebp
8048bee: 89 e5 mov %esp,%ebp
8048bf0: 53 push %ebx
8048bf1: 83 ec 2c sub $0x2c,%esp
8048bf4: 8d 45 d8 lea 0xffffffd8(%ebp),%eax
8048bf7: 50 push %eax
8048bf8: ff 75 08 pushl 0x8(%ebp)
8048bfb: e8 29 03 00 00 call 8048f29 <read_six_numbers>
8048c00: 83 c4 10 add $0x10,%esp
8048c03: 83 7d d8 01 cmpl $0x1,0xffffffd8(%ebp)
8048c07: 74 05 je 8048c0e <phase_2+0x21>
8048c09: e8 ee 08 00 00 call 80494fc <explode_bomb>
8048c0e: bb 01 00 00 00 mov $0x1,%ebx
8048c13: 8d 43 01 lea 0x1(%ebx),%eax
8048c16: 0f af 44 9d d4 imul 0xffffffd4(%ebp,%ebx,4),%e
ax
8048c1b: 39 44 9d d8 cmp %eax,0xffffffd8(%ebp,%ebx,
4)
8048c1f: 74 05 je 8048c26 <phase_2+0x39>
8048c21: e8 d6 08 00 00 call 80494fc <explode_bomb>
8048c26: 43 inc %ebx
8048c27: 83 fb 05 cmp $0x5,%ebx
8048c2a: 7e e7 jle 8048c13 <phase_2+0x26>
8048c2c: 8b 5d fc mov 0xfffffffc(%ebp),%ebx
8048c2f: c9 leave
8048c30: c3 ret