1

Is there any way to identify which built-in PHP function is used in some given script only by sending a request and receiving a response from the remote server?

To keep it simple we might assume that it is very simple PHP script which contains only one PHP function. I understand that it seems rather impossible to accomplish that since we might have an overlap of different effects which might delay the request/response time (network, server itself, ..) and make it impossible to find such a correlation.

But maybe it is anyhow possible to create an extremly limited case where it is still possible to reliably identify which PHP functions are used in a given script. It must not be necessarily a PHP scripting language.

I'm searching for different ways to fingerprint a PHP version running on a server.

Awaaaaarghhh
  • 562
  • 2
  • 18
  • I'm exporting this question from here: https://security.stackexchange.com/questions/159180/guessing-php-version-and-info-from-phpinfo-using-black-box-analysis – Awaaaaarghhh May 16 '17 at 21:02

1 Answers1

2

That's not possible I think. The response may change because a lot of factors: server hardware and resources, server load, connection status, etc.

I think is not possible even in the extremely case of reproduce exactly the same script in same hardware. You'll never get the same miliseconds of response. Maybe even micro electric variations can affect.

OscarAkaElvis
  • 5,185
  • 3
  • 17
  • 48