nerdexam
EC-Council

312-50V11 · Question #725

You are performing a penetration test for a client and have gained shell access to a Windows machine on the internal network. You intend to retrieve all DNS records for the internal domain. If the…

The correct answer is B. Is -d accorp.local. Within the nslookup interactive prompt, the 'ls -d' command is used to request a DNS zone transfer, listing all DNS records for the specified domain.

Enumeration

Question

You are performing a penetration test for a client and have gained shell access to a Windows machine on the internal network. You intend to retrieve all DNS records for the internal domain. If the DNS server is at 192.168.10.2 and the domain name is abccorp.local, what command would you type at the nslookup prompt to attempt a zone transfer?

Options

  • Alist domain=abccorp.local type=zone
  • BIs -d accorp.local
  • Clist server=192.168.10.2 type=all
  • DIserver 192.168.10.2 -t all

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    74% (23)
  • C
    10% (3)
  • D
    13% (4)

Why each option

Within the nslookup interactive prompt, the 'ls -d' command is used to request a DNS zone transfer, listing all DNS records for the specified domain.

Alist domain=abccorp.local type=zone

'list domain=' is not valid nslookup interactive syntax; nslookup does not recognize this command format.

BIs -d accorp.localCorrect

In nslookup's interactive mode, 'ls -d domainname' requests a full zone transfer from the authoritative DNS server, retrieving all resource records for the domain. After pointing nslookup at the target server (192.168.10.2), issuing 'ls -d abccorp.local' attempts the zone transfer and returns all DNS records if the server permits it.

Clist server=192.168.10.2 type=all

'list server=' is also invalid nslookup syntax; there is no such command structure in the nslookup interactive shell.

DIserver 192.168.10.2 -t all

'Iserver' is not a valid nslookup command; 'lserver' changes the default DNS server but does not initiate a zone transfer or retrieve records.

Concept tested: DNS zone transfer using nslookup ls -d command

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/nslookup-ls

Topics

#DNS zone transfer#nslookup#internal DNS#enumeration commands

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice