Exam GPEN All QuestionsBrowse all questions from this exam
Question 12

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?

    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
kgboiOption: B

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