Переполнение буфера

Discussion in 'С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby' started by EuroCreer, 12 Sep 2011.

  1. EuroCreer

    EuroCreer New Member

    Joined:
    30 Aug 2011
    Messages:
    17
    Likes Received:
    1
    Reputations:
    0
    deleted

    deleted
     
    #1 EuroCreer, 12 Sep 2011
    Last edited: 15 Mar 2013
  2. tim-oleksii

    tim-oleksii Member

    Joined:
    14 Mar 2011
    Messages:
    199
    Likes Received:
    10
    Reputations:
    0
    Коды возврата printf, strcpy были записаны в стек.
     
  3. Jingo Bo

    Jingo Bo Member

    Joined:
    25 Oct 2009
    Messages:
    372
    Likes Received:
    51
    Reputations:
    7
    Относительно типа вызова, числа параметров считаем офсет у стека и в самом начале функции через ассемблер в стеке по просчитанному офсету определяем адрес возврата.
     
  4. Ins3t

    Ins3t Харьковчанин

    Joined:
    18 Jul 2009
    Messages:
    944
    Likes Received:
    427
    Reputations:
    139
    поксорь на 0xFFFFFFFF
     
  5. xophet

    xophet Member

    Joined:
    16 Apr 2011
    Messages:
    621
    Likes Received:
    49
    Reputations:
    5
    00506110 XOR 0xFFFFFFFF, а потом уже передаешь
     
Loading...