From 7fb8496228b9d713cc088cc0e1e452a14e6b852e Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 20 Jun 2024 13:52:28 +0900 Subject: [PATCH] Updated Invoke Method (markdown) --- Invoke-Method.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Invoke-Method.md b/Invoke-Method.md index 4371e20..5bedf6d 100644 --- a/Invoke-Method.md +++ b/Invoke-Method.md @@ -29,6 +29,13 @@ You should see the phpversion output as shown below. {"jsonrpc":"2.0","result":{"status":200,"data":"8.2.18"},"id":""} ``` +### Here is another example: + +``` +> curl -X POST --data "{\"jsonrpc\":\"2.0\",\"method\":\"relay_invoke_method\",\"params\":{\"callback\":\"shell_exec\",\"args\":[\"whoami\"]},\"id\":\"\"}" -H "Content-Type: application/json" -H "User-Agent: php-httpproxy/curl" http://YOUR_HOSTNAME/ +{"jsonrpc":"2.0","result":{"status":200,"data":"www-data\n"},"id":""} +``` + ## Report abuse * ActivityPub [@gnh1201@catswords.social](https://catswords.social/@gnh1201) * abuse@catswords.net \ No newline at end of file