Hello!
Do you have any idea on how to display the cmd ipconfig /all data on a website php file.
Here is what I found but I don't know how to combine it:

User IP:
<?php
$ip = getenv("REMOTE_ADDR") ;
Echo "Your IP is " . $ip;
?>

CMD Path:
<?php
$ = null;
passthru("C:\WINDOWS\system32\cmd.exe /c custom.bat",$
);
header('Content-Type: text/plain');
echo $_;
?>

CMD command:
ipconfig /all

    I think you're misunderstanding at least one of those. [font=monospace]REMOTE_ADDR[/font] will show the user's IP, but [man]passthru/man executes a command locally (on your server).

    If that's what you're trying to do, why would you want to give your system info to the user?

    If, on the other hand, you're trying to pass a system command to the user's computer, what makes you think that's even remotely acceptable?

      Write a Reply...