A security analyst is trying to identify possible network addresses from different source networks belonging to the same company and region. Which of the following shell script functions could help achieve the goal?
A.
function w() { a=$(ping -c 1 $1 | awk-F ”/” ’END{print $1}’) && echo “$1 | $a” }
B.
function x() { b=traceroute -m 40 $1 | awk ’END{print $1}’) && echo “$1 | $b” }
This function takes an IP address as an argument and performs two DNS lookups using the dig command. The first lookup uses the -x option to perform a reverse DNS lookup and get the hostname associated with the IP address. The second lookup uses the origin.asn.cymru.com domain to get the
autonomous system number (ASN) and other information related to the IP address, such as the country code, registry, or allocation date. The function then prints the IP address and the ASN information, which can help identify any network addresses that belong to the same ASN or region
ChatGPT is wrong here again... Answer is D. Straight forward geo ip lookup. Question states same company and region, so Geo search is the most plausible.
has anyone tried this in live environment? from testing, it appears C is the best option here. try running this command in linux shell to compare result. output from options A and B does not make any sense.
C. dig 8.8.8.8.origin.asn.cymru.com TXT +short
D. geoiplookup 8.8.8.8
Correct Answer: C. function y() (ASN Lookup via dig)
Why?
The goal is to identify possible network addresses from different source networks belonging to the same company and region.
ASN (Autonomous System Number) lookups help correlate IPs to the same organization or network.
function y() uses dig to perform a reverse DNS lookup and query ASN records, which can group related IPs under the same network.
Key request is "different source networks belonging to the same company and region"
geoiplookup will give you regions, but not confirm that different source networks belong to the same company.
Using dig to will give you the ASNs of all the IPs so you will know who owns it as well as the regions.
Option C is more likely to help identify network addresses from the same company and region. It uses the dig command to perform a reverse DNS lookup, extracts information about the origin ASN (Autonomous System Number), and can be useful for identifying networks. Option D uses geoiplookup and may not provide as detailed information about the network and its region.
Except the question isn't asking about region lookup. The question is saying that the analyst is looking for possible network addresses from different source networks.
Answer is D. Straight forward geo ip lookup. Question states same company and region, so Geo search is the most plausible.
c=$(geoiplookup $1)/ This is a command to look up the geo location of the IP address specified
it does but how does this command ensures it belongs to the company? the dig command and PTR should give enough information about the company ownership of the IP address.
THEY ARE TRYING TO TRICK YOU
Be careful with the syntax; it looks like there might be a typo in the original function ("geoiplookup$1" should be "geoiplookup $1").
Sorry, I meant D.
"To identify possible network addresses from different source networks belonging to the same company and region, you would likely benefit from geolocation information and perhaps some network routing information. Among the choices given, function z() using geoiplookup "
upvoted 1 times
...
...
This section is not available anymore. Please use the main Exam Page.CS0-003 Exam Questions
Log in to ExamTopics
Sign in:
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.
kmordalv
Highly Voted 1 year, 8 months ago[Removed]
1 year, 5 months agodeeden
Highly Voted 1 year, 5 months agoyecaced
Most Recent 1 month, 2 weeks agoLilik
8 months, 2 weeks agob0ad9e1
1 year, 4 months agoRobV
1 year, 4 months agoVVV4WIN
1 year, 5 months agodaddylonglegs
1 year, 3 months agoLoneStarChief
10 months ago[Removed]
1 year, 5 months agoocord14
1 year, 4 months agoFrog_Man
1 year, 7 months agodaddylonglegs
1 year, 3 months ago[Removed]
1 year, 7 months ago[Removed]
1 year, 7 months ago