exam questions

Exam 312-50v11 All Questions

View all questions & answers for the 312-50v11 exam

Exam 312-50v11 topic 1 question 153 discussion

Actual exam question from ECCouncil's 312-50v11
Question #: 153
Topic #: 1
[All 312-50v11 Questions]

By performing a penetration test, you gained access under a user account. During the test, you established a connection with your own machine via the SMB service and occasionally entered your login and password in plaintext.
Which file do you have to clean to clear the password?

  • A. .xsession-log
  • B. .profile
  • C. .bashrc
  • D. .bash_history
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cerzocuspi
Highly Voted 2 years, 6 months ago
.bash_history is correct answer. Bash history stores command that you write cleartext .bash_history File created by Bash, a Unix-based shell program commonly used on Mac OS X and Linux operating systems; stores a history of user commands entered at the command prompt; used for viewing old commands that are executed. BASH_HISTORY files are hidden files with no filename prefix. They always use the filename .bash_history. NOTE: Bash is that the shell program employed by Apple Terminal. Our goal is to assist you understand what a file with a *.bash_history suffix is and the way to open it. The Bash History file type, file format description, and Mac and Linux programs listed on this page are individually researched and verified by the FileInfo team. we attempt for 100% accuracy and only publish information about file formats that we’ve tested and validated.
upvoted 16 times
tille
2 years, 5 months ago
I think this is the .bash_history also.
upvoted 2 times
...
...
javiergarridomellado
Most Recent 7 months, 3 weeks ago
Selected Answer: D
The SMB command uses the password to perform the login, this is stored in the bash_history. However, a log (xsession-log) never saves the credentials in its records.
upvoted 2 times
...
josevirtual
10 months ago
Selected Answer: D
.bash_history
upvoted 1 times
...
Daniel8660
1 year ago
Selected Answer: D
Covering BASH Shell Tracks The BASH is an sh-compatible shell that stores command history in a file called bash_history. This feature of Bash is a problem for hackers, as investigators could use the bash_history file to track the origin of an attack and the exact commands used by an intruder to compromise a system. (P.830/814)
upvoted 2 times
...
cazzobsb
1 year, 7 months ago
Selected Answer: D
correct
upvoted 1 times
...
[Removed]
1 year, 8 months ago
Selected Answer: D
.bash_history seems to be the best answer, there is also absolutely no mention of xsession in the CEH V11 book so I will go with D.
upvoted 1 times
...
semselim
1 year, 8 months ago
Selected Answer: A
https://www.maths.cam.ac.uk/computing/linux/X/xsession
upvoted 2 times
...
spydog
1 year, 9 months ago
Selected Answer: D
My vote goes to bash_history. xsession-log should be related to Xorg session - the graphical environment. I cannot imagine how this log can relate to SMB login.
upvoted 1 times
...
egz21
1 year, 9 months ago
Selected Answer: D
in my opinion is d).bash_history If you would like to seek out more information a few problem during a session or want to repair it, consult the system log, which stores log data for your user session and applications. The ~/.xsession-errors X session log file has been deprecated and is not any longer used. On systemd-based systems, you’ll find the session log data within the systemd journal, which stores the info during a binary format. to look at the logs, use the journalctl command. To view your user session logs: 1. Determine your user ID (uid) by running the subsequent command: 2. $ id –user 1000 3. View the journal logs for the user ID determined above: $ journalctl _UID=1000 For more information on the systemd journal, see the journalctl(1) man page.
upvoted 1 times
...
ProveCert
1 year, 10 months ago
Selected Answer: A
(A) is the correct answer
upvoted 1 times
...
AjaxFar
1 year, 11 months ago
I go for session log option
upvoted 1 times
...
NIKUU9898dik
1 year, 11 months ago
what is the correct answer?
upvoted 2 times
...
LIBUNB
2 years ago
Correct answer is A. .xsession-log
upvoted 2 times
...
blacksheep6r
2 years ago
the answer is A. .X session-log. If you would like to seek out more information a few problem during a session or want to repair it, consult the system log, which stores log data for your user session and applications. The ~/.xsession-errors X session log file has been deprecated and is not any longer used. On systemd-based systems, you’ll find the session log data within the systemd journal, which stores the info during a binary format. to look at the logs, use the journalctl command. To view your user session logs:1. Determine your user ID (uid) by running the subsequent command:2. $ id Cuser10003. View the journal logs for the user ID determined above:$ journalctl _UID=1000For more information on the systemd journal, see the journalctl(1) man page.
upvoted 3 times
...
jinjection
2 years, 1 month ago
correct
upvoted 1 times
...
Scryptic
2 years, 2 months ago
History does not show the content of ~/.bash_history. Instead, it shows the current content of Bash's history list in memory for this session. Whenever you open a Bash shell, it will read in the content of your .bash_history file and append that to its session history list. As you type in commands, Bash appends them to its session history list. When you close your shell again, Bash will save its history list to the disk by appending the contained entries to your .bash_history file. The history file doesn’t get updated until the current shell session ends, so everything you did in your current terminal window is not written to the disk yet. It resides only in your history list in memory.
upvoted 1 times
...
ANDRESCB1988
2 years, 3 months ago
correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago