How to conduct buffer overflow in PHP/Python?

后端 未结 6 659
梦谈多话
梦谈多话 2020-12-11 05:18

Here is an example in c:

#include 
#include 

void bad() {
    printf(\"Oh shit really bad~!\\r\\n\");
}

void foo() {
    cha         


        
6条回答
  •  死守一世寂寞
    2020-12-11 05:44

    Doing something similar in PHP will not result in the same behavior.

    PHP is interpreted and always checks whether the operation you are doing or not is valid.. So you can't - for example - overrun a buffer.

提交回复
热议问题