ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 257 - PT0-002 discussion

Report
Export

A penetration tester was able to compromise a web server and move laterally into a Linux web server. The tester now wants to determine the identity of the last user who signed in to the web server. Which of the following log files will show this activity?

A.
/var/log/messages
Answers
A.
/var/log/messages
B.
/var/log/last_user
Answers
B.
/var/log/last_user
C.
/var/log/user_log
Answers
C.
/var/log/user_log
D.
/var/log/lastlog
Answers
D.
/var/log/lastlog
Suggested answer: D

Explanation:

The /var/log/lastlog file is a log file that stores information about the last user to sign in to the server.

This file stores information such as the username, IP address, and timestamp of the last user to sign in to the server. It can be used by a penetration tester to determine the identity of the last user who signed in to the web server, which can be helpful in identifying the user who may have set up the backdoors and other malicious activities.

asked 02/10/2024
Anupam Ojha
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first