can I execute a windows cmd command from the web?

1

If I have a console, can I create an application or something like for example with c # q that executes commands in my cmd console depending on a php web? I read something about rcon password, depending on server but I do not find any information; (

    
asked by segote 22.01.2018 в 00:19
source

1 answer

1

You can execute cmd commands directly from php with the shel_exec function.

for example:

echo shell_exec("dir");

would show you the contents of the folder on windows.

More information on shel_exec here

    
answered by 22.01.2018 в 00:45