Resources

People often ask me "How did you learn how to hack?" The answer: by reading. This page is a collection of the blog posts and other articles that I have accumulated over the years of my journey. Enjoy!

Problems with Fork & Signal- 264

rachelbythebayPosted 5 Years Ago
  • Fork can fail! What does it fail when it returns? -1!
  • What happens when you send a signal with kill with -1? It targets ALL processes!
  • So, if you can get fork to fail (and it is not the checked), you can trick the signal call to send the signal to ALL processes!
  • I did a similar thing with -1 while writing a CTF challenge. So, this was a fun little thing that I wanted to mark down.