Uploaded September 2021 | Updated November 2026, 6 days ago
In this video you can see me working over 10h on hacking an Ethereum smart contract. The attack was done on a private chain, so no actual Ethereum users have been affected.
This was a challenge called Montagy from the Real World CTF 2019 competition.
Even though this was part of a competition, the methodology and technologies used are the tools used in real-life Ethereum hacking as well.
LEARN ON HEXTREE (ad)
Learn hacking on Hextree: hextree.io
Watch this video and more on Hextree: app.hextree.io/courses/yt-web3/ethereum-smart-contracts
Join the Hextree Discord: discord.gg/xgQpCQCpvy
More Ethereum hacking:
- Ethereum Smart Contract Hacking #1 - Real World CTF 2018: youtube.com/watch?v=ozqOlUVKL1s
- Jump Oriented Programming: Ethereum Smart Contract #2 - Real World CTF 2018: youtube.com/watch?v=RfL3FcnVbJg
- Ethereum Smart Contract Backdoored Using Malicious Constructor:
youtube.com/watch?v=WP-EnGhIYEc
CHAPTERS
00:00:00 - Backstory
00:03:58 - Smart Contract Challenge Overview
00:20:17 - Blockchain Transaction Investigation
00:22:13 - Rough Plan & Research Setup
00:34:27 - Looking more into the Contracts
00:41:18 - Debugging with remix
01:08:43 - What we learned so far
01:09:31 - Researching custom hash
01:34:26 - Breaking hash algorithm with z3
02:02:37 - Realizing winning condition is different...
02:03:20 - Developing exploit pwn.js
02:15:10 - Exploit doesn't work... debugging.
02:31:30 - Exploit finally works
02:33:55 - Sending Exploit to the Team in China
02:35:05 - The Flag
02:36:10 - Opinion and Conclusion
SUPPORT
Per video: patreon.com/join/liveoverflow
Per month: youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w/join
Buy my handwriting font (ad): shop.liveoverflow.com
WATCH, FOLLOW & READ
Second channel: youtube.com/LiveUnderflow
Twitch: twitch.tv/LiveOverflow
Twitter: twitter.com/LiveOverflow
Instagram: instagram.com/LiveOverflow
TikTok: tiktok.com/@liveoverflow_
LiveOverflow blog: liveoverflow.com
Hextree blog (ad): hextree.io/blog
#CTF #Cryptography #LiveOverflow
(ad) LiveOverflow YouTube channel is supported by advertisement and product placement.
In this video you can see me working over 10h on hacking an Ethereum smart contract. The attack was done on a private chain, so no actual Ethereum users have been affected.
This was a challenge called Montagy from the Real World CTF 2019 competition.
Even though this was part of a competition, the methodology and technologies used are the tools used in real-life Ethereum hacking as well.
LEARN ON HEXTREE (ad)
Learn hacking on Hextree: hextree.io
Watch this video and more on Hextree: app.hextree.io/courses/yt-web3/ethereum-smart-contracts
Join the Hextree Discord: discord.gg/xgQpCQCpvy
More Ethereum hacking:
- Ethereum Smart Contract Hacking #1 - Real World CTF 2018: youtube.com/watch?v=ozqOlUVKL1s
- Jump Oriented Programming: Ethereum Smart Contract #2 - Real World CTF 2018: youtube.com/watch?v=RfL3FcnVbJg
- Ethereum Smart Contract Backdoored Using Malicious Constructor:
youtube.com/watch?v=WP-EnGhIYEc
CHAPTERS
00:00:00 - Backstory
00:03:58 - Smart Contract Challenge Overview
00:20:17 - Blockchain Transaction Investigation
00:22:13 - Rough Plan & Research Setup
00:34:27 - Looking more into the Contracts
00:41:18 - Debugging with remix
01:08:43 - What we learned so far
01:09:31 - Researching custom hash
01:34:26 - Breaking hash algorithm with z3
02:02:37 - Realizing winning condition is different...
02:03:20 - Developing exploit pwn.js
02:15:10 - Exploit doesn't work... debugging.
02:31:30 - Exploit finally works
02:33:55 - Sending Exploit to the Team in China
02:35:05 - The Flag
02:36:10 - Opinion and Conclusion
SUPPORT
Per video: patreon.com/join/liveoverflow
Per month: youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w/join
Buy my handwriting font (ad): shop.liveoverflow.com
WATCH, FOLLOW & READ
Second channel: youtube.com/LiveUnderflow
Twitch: twitch.tv/LiveOverflow
Twitter: twitter.com/LiveOverflow
Instagram: instagram.com/LiveOverflow
TikTok: tiktok.com/@liveoverflow_
LiveOverflow blog: liveoverflow.com
Hextree blog (ad): hextree.io/blog
#CTF #Cryptography #LiveOverflow
(ad) LiveOverflow YouTube channel is supported by advertisement and product placement.










