QuestionQ7

VerifiedVulnerability Discovery and Analysis

A penetration tester accesses and enumerates a host, then executes these commands:

$ runlevel  
$ ls -l /etc/rc5.d  
$ vi /etc/rc5.d/S01ssh.dd  

Which action is the tester most likely trying to perform?

Explanation

Runlevel startup scripts in /etc/rc5.d are executed when the system enters runlevel 5. Editing an SSH-related script there can make a service or command start automatically, maintaining access across reboots.

Community Discussion

No comments yet. Be the first to start the discussion!