PHP - Send Shell Commands with shell_exec()

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Watching from a distance while focusing on your face your hands appear blue when they pass in front of your sweater.

TheShittyBeatles
Автор

Hello brother, I want to show you a code. This code runs exe on the server side, but when the remote user logs into the site, this code does not work on the client side. Can you help me? This is the code I wrote:

<?php

shell_exec('c:/test.exe')

?>

adnancoffeeci
Автор

i think i can recognise the place in the images: Venice, Italy (piazza di San Marco?)

brucethomas
Автор

With shellExecPing, couldn't you add a ";" as the first character and have command execution for what ever command you type after it? Im asking because you didn't mention that php file was vulnerable

enderpro
Автор

Hi all, I am working to develop my web site on windows server with php language. I want to show cmd results on my web site. I did this for basic codes as “whoami” but ı cannot do it with below command. How can i do that? The command shows the results of ansible tower job template.
tower-cli job launch -J 6649 - - monitor

bugrasarkaya
Автор

Very good. I got a bit nervous when you were working with the server directly, because I don't have direct access to my server. But I stuck with it, and everything was applicable to me anyway. Maybe next time, just start by letting us know this will still work even if we don't have direct access to the server itself. And also if there's anything people in such a situation need to know going in.

jonydude
Автор

this was really helpful thanks, however m really interested in how u configured ur apache server to be able to run the shell_exec() command

badiskhaled
Автор

Who cares about PHP seriously? Its an outdated language HARDLY used nowdays. Learning this is a huge waste of time. Why not teach something like C++, Python, or C#, the supreme trio of best languages out there! PHP is barely relevant anymore not to mention a huge drag on performance. PHP is slow AF. Why not do Javascript tutorials which is the #1 language of the web

CheckmateStallioN