ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 351 - XK0-005 discussion

Report
Export

A security analyst is monitoring the network to identify latency or slowdowns during a vulnerability scan.

bash

function x() {

info=$(ping -c 1 $1 | awk -F '/' 'END {print $5}')

echo '$1 | $info'

}

Which of the following functions will best achieve this?

A.

function x() { info=$(dig $(dig -x $1 | grep ptr | tail -n 1 | awk -F '.in-addr' '{print $1}').origin.asn.cymru.com TXT +short); echo '$1 | $info' }

Answers
A.

function x() { info=$(dig $(dig -x $1 | grep ptr | tail -n 1 | awk -F '.in-addr' '{print $1}').origin.asn.cymru.com TXT +short); echo '$1 | $info' }

B.

function x() { info=$(ping -c 1 $1 | awk -F '/' 'END {print $5}'); echo '$1 | $info' }

Answers
B.

function x() { info=$(ping -c 1 $1 | awk -F '/' 'END {print $5}'); echo '$1 | $info' }

C.

function x() { info=$(nc -m 40 $1 | awk 'END {print $1}'); echo '$1 | $info' }

Answers
C.

function x() { info=$(nc -m 40 $1 | awk 'END {print $1}'); echo '$1 | $info' }

D.

function x() { info=$(geoiplookup $1); echo '$1 | $info' }

Answers
D.

function x() { info=$(geoiplookup $1); echo '$1 | $info' }

Suggested answer: B

Explanation:

The ping command is used to measure network latency. The function provided uses ping -c 1 to ping the target once and extracts the average round-trip time using awk. This is a simple and effective way to monitor network latency during a scan or other network activity.

asked 09/10/2024
Matthew Sain
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first