1

I'm new to Linux operating system. Last day, I practice "heap exploitation", and they give me an ELF file, and a libc.so.6 file, and they said I must debug/exploit with that libc file, but I don't know how to use it.

I try to run the ELF file, and I receive "Illegal instruction (core dumped)". After googling, I try with LD_PRELOAD, LD_LIBRARY_PATH but no luck. I'm using LUbuntu 18.04.

So can you guys help me with this case?

  • If it fails when attempting to run it, it doesn't appear to be GLIBC or is a modified or older version or one that has been modified. Or do you mean another ELF file? Because on a system for which GLIBC was built, you can execute it as a standalone binary and it will output version and copyright information and some other stuff. Could you perhaps give us the output of running file on both your specific libc.so.6 and the ELF file you were given? – 0xC0000022L Dec 17 '19 at 22:58
1

I can almost guarantee 'they' are wanting you to perform a return to libc exploit.

Some good references

  • Hi, it would be good to include some more information about the topic, such as an excerpt what encompasses "return to libc". – 0xC0000022L Dec 17 '19 at 22:56
  • The four resources I included encompass everything u need to knows about return to libc – kr1tzb1tz Dec 18 '19 at 23:55
  • I didn't doubt that. My point was this one. The problem could be succinctly called "link rot". So it makes sense to include an excerpt to aid future internauts to find sources once those links have gone stale ... – 0xC0000022L Dec 19 '19 at 10:05
  • Fair enough. Thanks for the tip. – kr1tzb1tz Dec 20 '19 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.