5 Replies - 10319 Views - Last Post: 10 December 2010 - 03:34 PM

#1 navalhawkeye   User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 12
  • Joined: 11-July 10

Binary Bomb Help

Posted 09 December 2010 - 04:46 PM

I am totally lost on this part of the binary bomb (Phase 5).

Dump of assembler code for function phase_5:
0x08048d89 <phase_5+0>: push   %ebp
0x08048d8a <phase_5+1>: mov    %esp,%ebp
0x08048d8c <phase_5+3>: push   %ebx
0x08048d8d <phase_5+4>: sub    $0x20,%esp
0x08048d90 <phase_5+7>: mov    0x8(%ebp),%ebx
0x08048d93 <phase_5+10>:        push   %ebx
0x08048d94 <phase_5+11>:        call   0x8048fcb <string_length>
0x08048d99 <phase_5+16>:        add    $0x10,%esp
0x08048d9c <phase_5+19>:        cmp    $0x6,%eax
0x08048d9f <phase_5+22>:        je     0x8048da6 <phase_5+29>
0x08048da1 <phase_5+24>:        call   0x8049564 <explode_bomb>
0x08048da6 <phase_5+29>:        mov    $0x0,%edx
0x08048dab <phase_5+34>:        movsbl (%ebx,%edx,1),%eax
0x08048daf <phase_5+38>:        and    $0xf,%eax
0x08048db2 <phase_5+41>:        mov    0x804a5c0(%eax),%al
0x08048db8 <phase_5+47>:        mov    %al,0xffffffe8(%ebp,%edx,1)
0x08048dbc <phase_5+51>:        inc    %edx
0x08048dbd <phase_5+52>:        cmp    $0x5,%edx
0x08048dc0 <phase_5+55>:        jle    0x8048dab <phase_5+34>
0x08048dc2 <phase_5+57>:        movb   $0x0,0xffffffee(%ebp)
0x08048dc6 <phase_5+61>:        sub    $0x8,%esp
0x08048dc9 <phase_5+64>:        push   $0x80498ab
0x08048dce <phase_5+69>:        lea    0xffffffe8(%ebp),%eax
0x08048dd1 <phase_5+72>:        push   %eax
0x08048dd2 <phase_5+73>:        call   0x8048fe4 <strings_not_equal>
0x08048dd7 <phase_5+78>:        add    $0x10,%esp
0x08048dda <phase_5+81>:        test   %eax,%eax
0x08048ddc <phase_5+83>:        je     0x8048de3 <phase_5+90>
0x08048dde <phase_5+85>:        call   0x8049564 <explode_bomb>
0x08048de3 <phase_5+90>:        mov    0xfffffffc(%ebp),%ebx
0x08048de6 <phase_5+93>:        leave
0x08048de7 <phase_5+94>:        ret




I can't figure out what this is doing at all. I was able to struggle my way through the first 4 phases but have run into a brick wall. Could anyone give me some pointers as to what this is trying to do?

I know I have to enter 6 characters...but that is all I can figure out.

Thank you!

This post has been edited by navalhawkeye: 09 December 2010 - 04:48 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Binary Bomb Help

#2 nathanpc   User is offline

  • SCIENCE!
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Binary Bomb Help

Posted 09 December 2010 - 04:55 PM

A good link for you would be this one(found on Google within 20 seconds): http://www.cs.roches...nments/A2.shtml

I don't know why, but I feel that this looks like disassembled code for cracking. Any other agrees?

This post has been edited by nathanpc: 09 December 2010 - 04:55 PM

Was This Post Helpful? 0
  • +
  • -

#3 navalhawkeye   User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 12
  • Joined: 11-July 10

Re: Binary Bomb Help

Posted 09 December 2010 - 05:20 PM

Finally got it!

This is the same assignment that you linked to, except a different school. I suppose this was made out of frustration for the hours I've spent on this phase.

So this can be deleted...sorry.
Was This Post Helpful? 0
  • +
  • -

#4 nathanpc   User is offline

  • SCIENCE!
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Binary Bomb Help

Posted 09 December 2010 - 05:29 PM

Why your going to give up mate? There is no need for this
Was This Post Helpful? 0
  • +
  • -

#5 navalhawkeye   User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 12
  • Joined: 11-July 10

Re: Binary Bomb Help

Posted 09 December 2010 - 07:33 PM

View Postnathanpc, on 09 December 2010 - 04:29 PM, said:

Why your going to give up mate? There is no need for this


No, no...I didn't give up. I figured out that phase.
Was This Post Helpful? 0
  • +
  • -

#6 nathanpc   User is offline

  • SCIENCE!
  • member icon

Reputation: 113
  • View blog
  • Posts: 1,171
  • Joined: 31-July 09

Re: Binary Bomb Help

Posted 10 December 2010 - 03:34 PM

Ahh ok :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1