W2_3 - ROP Attacks

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 7

  • @trojanhorse8278
    @trojanhorse8278 8 місяців тому +1

    @28:52 I guess instead of storing A in the memory we need to store A-4 , then when pop happens first esp = A-4 and then A since pop consists of two steps then on ret call since esp = A, eip = A and esp will increment , again because ret also comprises of two steps.

  • @elliotpwn4444
    @elliotpwn4444 3 роки тому +7

    Just a small correction....the gadgetaddr2 doesn't get overwritten....push decrements esp first , so esp = esp-4 , then it gets written by push edi ...anyways we don't have gadget2 now to subvert execution to .

    • @naveedulmustafa4518
      @naveedulmustafa4518 3 роки тому +2

      agree, stack grows down words not upward

    • @amoldhamale3202
      @amoldhamale3202 2 роки тому

      Exactly, this is what I realized too! He explained that incorrectly, push will always decrement the stack pointer overwriting previous return address

  • @saifurrahmanbhuiyan925
    @saifurrahmanbhuiyan925 Рік тому

    Extremely high Quality lecture, such nice and simple presentation. kudos Sir

  • @chethanb6406
    @chethanb6406 4 роки тому +2

    amazing video sir

  • @RahulU-n5k
    @RahulU-n5k Рік тому

    @18:08, I think he is wrong ? The contents of eax register is copied into a location edx + 64.