Level 1: Sparkler (10 pts)

Within the file bufbomb, there is a function fizz having the following C code: 
    void fizz(int val)
        if (val == cookie) {
            printf("Fizz!: You called fizz(0x%x)\n", val);
        } else
            printf("Misfire: You called fizz(0x%x)\n", val);
Similar to Level 0, your task is to get bufbomb to execute the code for fizz when getbuf executes its return statement, rather than returning to test.  In this case, however, you must make it appear to fizz as if you have passed your cookie as its argument.  You can do this by encoding your cookie in the appropropriate place within your exploit string. 

Some Advice

Back to the assignment page

Last Change: 21 December 2017 / Michael Scott's email address