What is the LD_PRELOAD trick?

前端 未结 9 1159
攒了一身酷
攒了一身酷 2020-11-21 07:27

I came across a reference to it recently on proggit and (as of now) it is not explained.

I suspect this might be it, but I don\'t know for sure.

9条回答
  •  -上瘾入骨i
    2020-11-21 08:02

    Using LD_PRELOAD path, you can force the application loader to load provided shared object, over the default provided.

    Developers uses this to debug their applications by providing different versions of the shared objects.

    We've used it to hack certain applications, by overriding existing functions using prepared shared objects.

提交回复
热议问题