The major version doesn't change however the patch number and minor version numbers do change between yum / apt updates.
You can't do any serious damage if we don't use zsudo to run this command, just use system without privileges:
This way we can get the version and there is no way of changing this code via injection as there is no user input.
You can't do any serious damage if we don't use zsudo to run this command, just use system without privileges:
Code:
<?php
echo system('httpd -V');
?>
This way we can get the version and there is no way of changing this code via injection as there is no user input.