Bing AI says:
To successfully achieve remote code execution (RCE) with the provided PHP file, the penetration tester should use the following command:
B. python3 -c "import requests;print(requests.post(url-'http://172.16.200.10/uploads/shell.php',data={'cmd': 'id'}).text)"
This command sends a POST request to the PHP script with the cmd parameter set to id, and the .text method ensures the response content is printed correctly.
Answer is B.
To achieve Remote Code Execution (RCE) using this PHP script, you need to send a POST request to the server with the cmd parameter set to a command you'd like to execute. In this case, the command is id, which retrieves the user identity on a Unix-like system.
Option B correctly sends a POST request to the specified URL with the cmd parameter set to 'id' and then prints the response text from the server.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.PT0-002 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
kinny4000
2 months, 2 weeks agoAlex818119
4 months, 3 weeks agoNikamy
5 months, 1 week agoKmelaun
8 months, 2 weeks agomat22
8 months, 2 weeks ago