Chankro icon indicating copy to clipboard operation
Chankro copied to clipboard

Doubt regarding calling mb_send_mail()

Open retrymp3 opened this issue 1 year ago • 0 comments

Since the preloadme(void) constructor function will execute the nested functions when the library is loaded, why is there the need to call mb_send_mail()? Is it to seem more authentic or is there some thing I missed. If it does execute the functions when it is loaded, what is the relevance of the mail function in PHP and sendmail binary?

Also is it possible to override the mb_send_mail() in the hook. So that when LD_PRELOAD is set, we can call it and get the arbitrary execution.

retrymp3 avatar Nov 09 '23 16:11 retrymp3