ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 55 - PT0-002 discussion

Report
Export

A penetration tester has obtained root access to a Linux-based file server and would like to maintain persistence after reboot. Which of the following techniques would BEST support this objective?

A.
Create a one-shot system service to establish a reverse shell.
Answers
A.
Create a one-shot system service to establish a reverse shell.
B.
Obtain /etc/shadow and brute force the root password.
Answers
B.
Obtain /etc/shadow and brute force the root password.
C.
Run the nc -e /bin/sh <...> command.
Answers
C.
Run the nc -e /bin/sh <...> command.
D.
Move laterally to create a user account on LDAP
Answers
D.
Move laterally to create a user account on LDAP
Suggested answer: A

Explanation:

https://hosakacorp.net/p/systemd-user.html

Creating a one-shot system service to establish a reverse shell is a technique that would best support maintaining persistence after reboot on a Linux-based file server. A system service is a program that runs in the background and performs various tasks without user interaction. A one-shot system service is a type of service that runs only once and then exits. A reverse shell is a type of shell that connects back to an attacker-controlled machine and allows remote command execution. By creating a one-shot system service that runs a reverse shell script at boot time, the penetration tester can ensure persistent access to the file server even after reboot.

asked 02/10/2024
Naveen Kotipalli
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first