Wow, thanks for giving me such an obvious solution -- all along I didn't realize you could set breakpoints at a particular address, I thought you could only set them at function calls. D'OH!
Main Topics
Browse All TopicsI am working through the CS:APP textbook (auditing a class at the local state U) and I'm trying to complete the final phase of the binary bomb lab. Basically, I need to figure out what string to send to this function (in C) so that the "bomb" doesn't "explode..." and all I have to work with is the assembly code.
One way to get the answers, I've found, is to try to convert the assembly logic into C. But here, I'm really at a loss as to what this code does... I think there's a linked list with defined nodes and then somehow they're incremented through in some kind of loop, but I can't figure out what it is I need to type in to keep the bomb from detonating. I thought it was simply a value in one of the nodes but that doesn't seem to be working.
Anyway, here's the code. Any help you can offer is much appreciated, I feel like my head's about to explode after going through phases 1-5 :(
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Infinity08Posted on 2008-05-05 at 06:58:05ID: 21500049
>> I think there's a linked list with defined nodes and then somehow they're incremented through in some kind of loop,
That's what happens indeed. There is a linked list in memory, and the code is going through the linked list, stopping at a certain node (which node ?)
>> but I can't figure out what it is I need to type in to keep the bomb from detonating.
Watch the condition for the explosion :
8048f7f: 3b 05 2c a6 04 08 cmp 0x804a62c,%eax
8048f85: 74 05 je 8048f8c <phase_6+0x59>
8048f87: e8 67 03 00 00 call 80492f3 <explode_bomb>
How can you avoid that it explodes ?