GPEN Exam QuestionsBrowse all questions from this exam

GPEN Exam - Question 16


You are pen testing a Linux target from your windows-based attack platform. You just moved a script file from the windows system to the Linux target, but it will not execute properly. What is the most likely problem?

Show Answer
Correct Answer: B

The most likely problem when a script file moved from a Windows system to a Linux system does not execute properly is the difference in end-of-line characters. Windows typically uses a carriage return and line feed (\r\n) for new lines, whereas Linux uses just a line feed (\n). This discrepancy can cause scripts to fail when executed on a different operating system.

Discussion

1 comment
Sign in to comment
kgboiOption: B
Sep 9, 2024

The Answer is B! Microsoft: "\r\n". While in Linux: "\n"