ペネトレーション テスターが Linux Web サーバーでリバース シェルを開き、root への権限昇格に成功しました。 エンゲージメント中に、テスターは、別のユーザーが root として頻繁にログインして作業タスクを実行していることに気付きました。 このユーザーの作業の中断を避けるために、侵入テスターがテスト中にこのサーバーでルートレベルの永続性を維持するための最良のオプションは次のうちどれですか?
正解:C
The best option for the penetration tester to maintain root-level persistence on this server during the test is to add a new user with ID 0 to the /etc/passwd file. This will allow the penetration tester to use the same user account as the other user, but with root privileges, meaning that it won't disrupt the other user's work. This can be done by adding a new line with the username and the numerical user ID 0 to the /etc/passwd file. For example, if the username for the other user is "johndoe", the line to add would be "johndoe:x:0:0:John Doe:/root:/bin/bash". After the user is added, the penetration tester can use the "su" command to switch to the new user and gain root privileges.