Forum Discussion

ralyn1234's avatar
ralyn1234
Icon for Bronze I rankBronze I
4 months ago
Solved

Linux Stack Overflow Ep.6

I am having trouble figuring how this lab. I got the other questions, but can't get the token. This is the code I am running, but it just causing a segmentation fault.   #include <assert.h> #inc...
  • steven's avatar
    4 months ago

    hmm. it's been a long time but I found this lab in my notes.


    your script is amost identical to mine.
    except: I'm writing the exploit to a file

    FILE *exploit_file = fopen("exploit_input", "wb");
    ....
    close(exploit_file)

    and then execut it and pass the larger input file.

     

     then copy file, execute, get flag