A. nmap -sn -n -exclude 10.1.1.15 10.1.1.0/24 -oA target_txt is the best command to enable the attacker to conduct host discovery and write the discovery to files without returning results of the attack machine. This command will perform a ping sweep scan, excluding the address of the attack machine, within a given network, outputs the finding in all the formats (txt, xml,grepable) and write them to target_txt file.
The command nmap -sn -n -exclude 10.1.1.15 10.1.1.0/24 -oA target_txt will perform a ping sweep scan, which sends ICMP Echo Requests to every host in a specified network range to detect active hosts and identify their IP addresses. The "-exclude" option allows you to exclude certain hosts from being scanned, such as the attack machine in this case. The "-oA" option outputs the results in all the formats (txt, xml,grepable) and write them to target_txt file. Using this command, the attacker can conduct host discovery without returning results of the attack machine.