Update networktools.php

networktools.php a php script with network and system functions.
i tryied to put as many as i can to make it an general purpose network script.runs on cli, its not finished yet