mandibule icon indicating copy to clipboard operation
mandibule copied to clipboard

fake stack argv ptr incorrect

Open Hackerl opened this issue 3 years ago • 0 comments

    FSTACK_PUSH_LONG(sp, 0);
    for(int i=0; i<ac; i++)
        FSTACK_PUSH_LONG(sp, (unsigned long)av_0 + (ac - i - 1) * sizeof(unsigned long));
    // argc
    FSTACK_PUSH_LONG(sp, ac);

"(unsigned long)av_0 + (ac - i - 1) * sizeof(unsigned long)" not the correct string pointer, each parameter has a different length. The correct pointer should be temporarily saved after the parameter is pushed onto the stack. commit: https://github.com/Hackerl/mandibule/commit/0ba0a46f4443b3307d037aa34bc402d6eb756515

Hackerl avatar Nov 04 '20 03:11 Hackerl