List of questions
Related questions
Question 351 - XK0-005 discussion
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' }
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' }
D.
function x() { info=$(geoiplookup $1); echo '$1 | $info' }
Your answer:
0 comments
Sorted by
Leave a comment first