Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

There has been some suspicious activity from IP addresses that start with 6 8 . 9 9 . In the file last _

There has been some suspicious activity from IP addresses that start with "68.99". In the file "last_log" they are listed as "68.99." or "68-99-" or "ip68-99-" and they may have ".om" or ".o"
on the end. (These are Cox users in Omaha. For the correct answer you will need to figure out how to eliminate the extra junk and just use the IP address.) Provide one command that gives a sorted list of these suspicious users in the following format:
adammuno 68.99.4.45
ajgehrin 68.99.5.15
(snip -28 records not shown)
wmahoney 68.99.3.88
zfaulkne 68.99.28.102
You may need to use the combination of "grep", "sed" (with multiple -e options), "awk", "sort", and "uniq". The correct output should have 32 rows that match. Check that the usernames are not being mangled by your commands. So for example the wmahoney user should have all its letters and be outputted as wmahoney.
Hint: find out all the lines with that IP pattern, eliminate the possible "ip", eliminate the possible ".om" or ".o", find out the first and third fields, lastly sort and uniq.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions