douzaoqu4447 2016-06-26 16:06
浏览 25
已采纳

执行时捕获php命令

Are there any methods to catch the php commands instead of executing them? There's a backdoor which is encoded in my server, I was able to get declared classes and methods names, of the backdoor, but I need to find out the real code.

  • 写回答

1条回答 默认 最新

  • dongyu5104 2016-06-26 16:11
    关注

    I can think of 2 things.

    1. Use a profiler tool.

    2. In your own code define a class with the same name. Then when the backdoor class is loaded, it will give a fatal error ('class name already defined') and tell you where the other class resides. Do enable stacktraces in case the backdoor is obfuscated/eval'd/remote included.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?