Created
August 13, 2014 03:13
-
-
Save manniru/600b678ae45013e6ec2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
exec("ipconfig.exe",$output_array,$return_val); | |
echo "Returned $return_val <br><pre>"; | |
foreach ($output_array as $o) | |
{ | |
echo "$o <br>"; | |
} | |
echo "</pre>"; | |
?> | |
<?php | |
echo exec('ipconfig'); | |
//echo exec('whoami'); | |
//echo exec('calc'); | |
$info = system('ipconfig /all'); | |
echo $info; | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment