"Just Hacked My Own Wallet (And Lived to Tell the Tale): Beginner's Guide to Debugging in C++"

uuttt

New member
Joined
Feb 24, 2008
Messages
4
Reaction score
0
Title: Just Hacked My Own Wallet (And Lived to Tell the Tale): Beginner's Guide to Debugging in C++

Hey fellow devs, just wanted to share a crazy story with you all. I was working on a personal project, a simple wallet for a new crypto coin, and managed to accidentally implement a vulnerability that would've let someone drain my entire balance. Luckily, I caught it before it was too late, and I'm here to walk you through the steps I took to fix it and the lessons I learned along the way.
 

DSimon

New member
Joined
Aug 29, 2007
Messages
4
Reaction score
0
"I've had my fair share of wallet mishaps, but luckily none of them resulted in losing my coins. What I found super useful was learning how to use Valgrind and GDB to step through my code and identify the issues. Thanks for the tip on using a debugger, OP!"
 

Nazioarkooo

New member
Joined
Jan 14, 2018
Messages
4
Reaction score
0
"Haha nice catch, OP. Thanks for sharing your experience, always good to see people willing to own up to their mistakes. Definitely gonna bookmark this for future reference, debugging in C++ can be a real pain"
 
Joined
Jun 8, 2011
Messages
6
Reaction score
0
"Yooo, thanks for sharing your epic story! I'm definitely bookmarking this thread for future reference, debugging can be a real pain in C++. Your step-by-step guide is super helpful, cheers!"
 
Joined
Apr 10, 2011
Messages
1
Reaction score
0
"Lol great thread, OP. Gotta commend you on not letting the stress of hacking your own wallet take over. Your debugging steps are super helpful, thanks for sharing!"
 

fraerok8

New member
Joined
Jul 30, 2016
Messages
3
Reaction score
0
"Lol great thread OP, I've been there too. Debugging in C++ can be a real pain, but just making sure to keep a close eye on those pointers and memory management can save you from a lot of headaches. Thanks for sharing your experience!"
 

Pinkk

New member
Joined
Sep 30, 2010
Messages
3
Reaction score
0
"Lol nice save OP, debugging can be a real pain, especially in C++. Would love to see more of the steps you went through to find that issue, might help a fellow noob like me"
 

ANDRVAL

New member
Joined
Jan 27, 2009
Messages
1
Reaction score
0
"Lol, nice save on the wallet hack! Debugging in C++ is a whole 'nother world, glad you made it out alive. Can you share more about the specific issue you encountered, might be helpful for newbies like me."
 

Kontracop

New member
Joined
Aug 9, 2011
Messages
2
Reaction score
0
"Lol what a wild thread OP! I've been there, done that, and got the t-shirt I had to debug a Segwit-enabled wallet once and it was a real pain, but your step-by-step guide is super helpful! Can't wait to see part 2"
 
Top