having trouble with bomb lab phase 4 [closed]

匿名 (未验证) 提交于 2019-12-03 02:43:01

问题:

I'm having a really hard time understanding what to do here. I thought one of the numbers I would be able to work with was going to be 85 but it seems I am wrong with this. I know I should only get 2 decimals out of it but I just cant seem to do it. Help would be very appreciated.

phase_4

Dump of assembler code for function phase_4: 0x08048cd1 <+0>:    push   %ebp 0x08048cd2 <+1>:    mov    %esp,%ebp 0x08048cd4 <+3>:    sub    $0x28,%esp 0x08048cd7 <+6>:    lea    -0xc(%ebp),%eax 0x08048cda <+9>:    mov    %eax,0xc(%esp) 0x08048cde <+13>:   lea    -0x10(%ebp),%eax 0x08048ce1 <+16>:   mov    %eax,0x8(%esp) 0x08048ce5 <+20>:   movl   $0x804a5d7,0x4(%esp) 0x08048ced <+28>:   mov    0x8(%ebp),%eax 0x08048cf0 <+31>:   mov    %eax,(%esp) 0x08048cf3 <+34>:   call   0x8048860 <__isoc99_sscanf@plt> 0x08048cf8 <+39>:   cmp    $0x2,%eax 0x08048cfb <+42>:   jne    0x8048d03 <phase_4+50> 0x08048cfd <+44>:   cmpl   $0xe,-0x10(%ebp) 0x08048d01 <+48>:   jbe    0x8048d08 <phase_4+55> 0x08048d03 <+50>:   call   0x80491d7 <explode_bomb> 0x08048d08 <+55>:   movl   $0xe,0x8(%esp) 0x08048d10 <+63>:   movl   $0x0,0x4(%esp) 0x08048d18 <+71>:   mov    -0x10(%ebp),%eax 0x08048d1b <+74>:   mov    %eax,(%esp) 0x08048d1e <+77>:   call   0x8048c80 <func4> 0x08048d23 <+82>:   test   %eax,%eax 0x08048d25 <+84>:   jne    0x8048d2d <phase_4+92> 0x08048d27 <+86>:   cmpl   $0x0,-0xc(%ebp) 0x08048d2b <+90>:   je     0x8048d32 <phase_4+97> 0x08048d2d <+92>:   call   0x80491d7 <explode_bomb> 0x08048d32 <+97>:   leave   0x08048d33 <+98>:   ret   

function 4:

Dump of assembler code for function func4: 0x08048c80 <+0>:    push   %ebp 0x08048c81 <+1>:    mov    %esp,%ebp 0x08048c83 <+3>:    sub    $0x18,%esp 0x08048c86 <+6>:    mov    0x8(%ebp),%edx 0x08048c89 <+9>:    mov    0xc(%ebp),%eax 0x08048c8c <+12>:   mov    0x10(%ebp),%ecx 0x08048c8f <+15>:   sub    %eax,%ecx 0x08048c91 <+17>:   shr    %ecx 0x08048c93 <+19>:   add    %eax,%ecx 0x08048c95 <+
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!