How to conduct buffer overflow in PHP/Python?

后端 未结 6 662
梦谈多话
梦谈多话 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:39

    We're sorry: you've reached a weakness in Python. Unfortunately, it's by design, so little can be done about it. Perhaps you should stay with C.

    As Martin v. Löwis said:

    Python does not support buffer overflows, sorry.

    PS Wow. It seems like a few months ago that I read that post, and yet it's been 7 years and a day.

提交回复
热议问题