This pop-rdi/system('/bin/sh') chain is the canonical first ROP exploit taught in every pwn-focused CTF and in ir0nstone's and pwn.college's binary exploitation courses, and the same construction technique underlies real-world exploits against unpatched network services. Getting the 16-byte stack alignment right before calling system() is a detail that trips up most first-time exploit writers.