nerdexam
EC-Council

312-92 · Question #48

Steve is using the libcap library to create scripts for capturing and analyzing network traffic. Steve has never used libcap before and is struggling with finding out the correct functions to use…

The correct answer is C. pcap_lookupdev. See the full explanation below for the reasoning.

Question

Steve is using the libcap library to create scripts for capturing and analyzing network traffic. Steve has never used libcap before and is struggling with finding out the correct functions to use. Steve is trying to pick the default network interface in his script and does not know which function to use. Which function would he use to correctly choose the default interface in the script?

Options

  • Apcap_open_live
  • Bpcap_int_default
  • Cpcap_lookupdev
  • Dpcap_use_int

How the community answered

(29 responses)
  • A
    17% (5)
  • B
    7% (2)
  • C
    72% (21)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 312-92 Practice