Skip to content

Instantly share code, notes, and snippets.

@manniru
Created August 13, 2014 03:13
Show Gist options
  • Save manniru/600b678ae45013e6ec2b to your computer and use it in GitHub Desktop.
Save manniru/600b678ae45013e6ec2b to your computer and use it in GitHub Desktop.
<?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