How to hack C/C++ Programs With GDB on Mac / Linux (for Beginners)

In today’s video, I am going to show you how to use GDB (GNU Debugger) in order to hack a small C/C++ program we’ve made. The purpose of the #hack is to redirect the control flow of our program, from the normal functionality to a secret function that is normally inaccessible.

Using GDB, we’re able to see the disassembly of a function, we can see the available functions (using the command info functions), we can see the current status of the the registers (info registers), and so on.

It is best to start with small steps, the smaller the C/C++ program you try to hack is, the more chances you have to understand the assembly printout. The C++ program I made for this video is available on my GitHub account for macOS, or as a source code if you wanna compile it in ELF for Linux.

By the way, speaking about Linux, everything I did in this video is possible on Linux, with the same tools and the same commands.

▽ Resources ▽
▶ The source code / macOS Binary: https://goo.gl/QCQrDA
▶ GDB Documentation: https://goo.gl/7wba94

▽ Social Media ▽
▶ Our Sub-Reddit: https://www.reddit.com/r/idevicecentral/
▶ Facebook: https://facebook.com/fce365official
▶ Twitter: https://twitter.com/FCE365
▶ Our Website: https://fce365.info
Video Rating: / 5


Are you looking for products for hacking, cybersecurity, and penetration testing? Do you need to cleanse your smartphone, PC, or website from viruses and malware? Do you need to track down a person or recover urgent information? Do you need to regain control of an account, email, or password that has been stolen from you? Interested in purchasing pre-configured devices to easily and quickly experiment with hacking techniques? Do you have specific requirements in software or hardware? We can assist you!

Contact us immediately for immediate assistance: provide us with details via email or WhatsApp about the type of support you need, and we will respond you promptly!

Fill out and submit the form below to send us an immediate support request

Write your email address here

Write here how we can help you - we provide immediate support for all your needs!

chevron_left
chevron_right