fwaeytens / dnsenum

dnsenum is a perl script that enumerates DNS information
614 stars 132 forks source link

Split DNS records into 5 parts at most #17

Open wasamasa opened 5 years ago

wasamasa commented 5 years ago

When enumerating a domain containing TXT records with spaces inside them, only the first part before the space is displayed. This change avoids splitting anything after the final part.

Before:

dnsenum.pl VERSION:1.2.4

-----   zonetransfer.me   -----


Host's addresses:
__________________

zonetransfer.me.                         5813     IN    A        5.196.105.14


Name Servers:
______________

nsztm1.digi.ninja.                       9414     IN    A        81.4.108.41
nsztm2.digi.ninja.                       9414     IN    A        34.225.33.2


Mail (MX) Servers:
___________________

ASPMX3.GOOGLEMAIL.COM.                   252      IN    A        172.217.194.27
ASPMX4.GOOGLEMAIL.COM.                   252      IN    A        108.177.97.27
ASPMX2.GOOGLEMAIL.COM.                   252      IN    A        209.85.233.27
ASPMX.L.GOOGLE.COM.                      252      IN    A        74.125.140.27
ALT1.ASPMX.L.GOOGLE.COM.                 252      IN    A        209.85.233.27
ASPMX5.GOOGLEMAIL.COM.                   252      IN    A        173.194.202.27
ALT2.ASPMX.L.GOOGLE.COM.                 253      IN    A        172.217.194.26


Trying Zone Transfers and getting Bind Versions:
_________________________________________________


Trying Zone Transfer for zonetransfer.me on nsztm1.digi.ninja ... 
zonetransfer.me.                         7200     IN    SOA               (
zonetransfer.me.                         300      IN    HINFO        "Casio
zonetransfer.me.                         301      IN    TXT               (
zonetransfer.me.                         7200     IN    MX                0
zonetransfer.me.                         7200     IN    MX               10
zonetransfer.me.                         7200     IN    MX               10
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    A        5.196.105.14
zonetransfer.me.                         7200     IN    NS       nsztm1.digi.ninja.
zonetransfer.me.                         7200     IN    NS       nsztm2.digi.ninja.
_sip._tcp.zonetransfer.me.               14000    IN    SRV               0
14.105.196.5.IN-ADDR.ARPA.zonetransfer.me. 7200     IN    PTR      www.zonetransfer.me.
asfdbauthdns.zonetransfer.me.            7900     IN    AFSDB             1
asfdbbox.zonetransfer.me.                7200     IN    A         127.0.0.1
asfdbvolume.zonetransfer.me.             7800     IN    AFSDB             1
canberra-office.zonetransfer.me.         7200     IN    A        202.14.81.230
cmdexec.zonetransfer.me.                 300      IN    TXT              ";
contact.zonetransfer.me.                 2592000  IN    TXT               (
dc-office.zonetransfer.me.               7200     IN    A        143.228.181.132
deadbeef.zonetransfer.me.                7201     IN    AAAA     dead:beaf::
dr.zonetransfer.me.                      300      IN    LOC              53
DZC.zonetransfer.me.                     7200     IN    TXT         AbCdEfG
email.zonetransfer.me.                   2222     IN    NAPTR             (
email.zonetransfer.me.                   7200     IN    A        74.125.206.26
Hello.zonetransfer.me.                   7200     IN    TXT             "Hi
home.zonetransfer.me.                    7200     IN    A         127.0.0.1
Info.zonetransfer.me.                    7200     IN    TXT               (
internal.zonetransfer.me.                300      IN    NS       intns1.zonetransfer.me.
internal.zonetransfer.me.                300      IN    NS       intns2.zonetransfer.me.
intns1.zonetransfer.me.                  300      IN    A        81.4.108.41
intns2.zonetransfer.me.                  300      IN    A        167.88.42.94
office.zonetransfer.me.                  7200     IN    A        4.23.39.254
ipv6actnow.org.zonetransfer.me.          7200     IN    AAAA     2001:67c:2e8:11::c100:1332
owa.zonetransfer.me.                     7200     IN    A        207.46.197.32
robinwood.zonetransfer.me.               302      IN    TXT          "Robin
rp.zonetransfer.me.                      321      IN    RP                (
sip.zonetransfer.me.                     3333     IN    NAPTR             (
sqli.zonetransfer.me.                    300      IN    TXT              "'
sshock.zonetransfer.me.                  7200     IN    TXT             "()
staging.zonetransfer.me.                 7200     IN    CNAME    www.sydneyoperahouse.com.
alltcpportsopen.firewall.test.zonetransfer.me. 301      IN    A         127.0.0.1
testing.zonetransfer.me.                 301      IN    CNAME    www.zonetransfer.me.
vpn.zonetransfer.me.                     4000     IN    A        174.36.59.154
www.zonetransfer.me.                     7200     IN    A        5.196.105.14
xss.zonetransfer.me.                     300      IN    TXT      '><script>alert\('Boo'\)</script>

Trying Zone Transfer for zonetransfer.me on nsztm2.digi.ninja ... 
zonetransfer.me.                         7200     IN    SOA               (
zonetransfer.me.                         300      IN    HINFO        "Casio
zonetransfer.me.                         301      IN    TXT               (
zonetransfer.me.                         7200     IN    MX                0
zonetransfer.me.                         7200     IN    MX               10
zonetransfer.me.                         7200     IN    MX               10
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    MX               20
zonetransfer.me.                         7200     IN    A        5.196.105.14
zonetransfer.me.                         7200     IN    NS       nsztm1.digi.ninja.
zonetransfer.me.                         7200     IN    NS       nsztm2.digi.ninja.
_sip._tcp.zonetransfer.me.               14000    IN    SRV               0
14.105.196.5.IN-ADDR.ARPA.zonetransfer.me. 7200     IN    PTR      www.zonetransfer.me.
asfdbauthdns.zonetransfer.me.            7900     IN    AFSDB             1
asfdbbox.zonetransfer.me.                7200     IN    A         127.0.0.1
asfdbvolume.zonetransfer.me.             7800     IN    AFSDB             1
canberra-office.zonetransfer.me.         7200     IN    A        202.14.81.230
cmdexec.zonetransfer.me.                 300      IN    TXT              ";
contact.zonetransfer.me.                 2592000  IN    TXT               (
dc-office.zonetransfer.me.               7200     IN    A        143.228.181.132
deadbeef.zonetransfer.me.                7201     IN    AAAA     dead:beaf::
dr.zonetransfer.me.                      300      IN    LOC              53
DZC.zonetransfer.me.                     7200     IN    TXT         AbCdEfG
email.zonetransfer.me.                   2222     IN    NAPTR             (
email.zonetransfer.me.                   7200     IN    A        74.125.206.26
Hello.zonetransfer.me.                   7200     IN    TXT             "Hi
home.zonetransfer.me.                    7200     IN    A         127.0.0.1
Info.zonetransfer.me.                    7200     IN    TXT               (
internal.zonetransfer.me.                300      IN    NS       intns1.zonetransfer.me.
internal.zonetransfer.me.                300      IN    NS       intns2.zonetransfer.me.
intns1.zonetransfer.me.                  300      IN    A        81.4.108.41
intns2.zonetransfer.me.                  300      IN    A        52.91.28.78
office.zonetransfer.me.                  7200     IN    A        4.23.39.254
ipv6actnow.org.zonetransfer.me.          7200     IN    AAAA     2001:67c:2e8:11::c100:1332
owa.zonetransfer.me.                     7200     IN    A        207.46.197.32
robinwood.zonetransfer.me.               302      IN    TXT          "Robin
rp.zonetransfer.me.                      321      IN    RP                (
sip.zonetransfer.me.                     3333     IN    NAPTR             (
sqli.zonetransfer.me.                    300      IN    TXT              "'
sshock.zonetransfer.me.                  7200     IN    TXT             "()
staging.zonetransfer.me.                 7200     IN    CNAME    www.sydneyoperahouse.com.
alltcpportsopen.firewall.test.zonetransfer.me. 301      IN    A         127.0.0.1
testing.zonetransfer.me.                 301      IN    CNAME    www.zonetransfer.me.
vpn.zonetransfer.me.                     4000     IN    A        174.36.59.154
www.zonetransfer.me.                     7200     IN    A        5.196.105.14
xss.zonetransfer.me.                     300      IN    TXT      '><script>alert\('Boo'\)</script>

brute force file not specified, bay.

After:

dnsenum.pl VERSION:1.2.4

-----   zonetransfer.me   -----


Host's addresses:
__________________

zonetransfer.me.                         5854     IN    A        5.196.105.14


Name Servers:
______________

nsztm1.digi.ninja.                       9455     IN    A        81.4.108.41
nsztm2.digi.ninja.                       9455     IN    A        34.225.33.2


Mail (MX) Servers:
___________________

ASPMX3.GOOGLEMAIL.COM.                   293      IN    A        172.217.194.27
ASPMX4.GOOGLEMAIL.COM.                   293      IN    A        108.177.97.27
ASPMX2.GOOGLEMAIL.COM.                   293      IN    A        209.85.233.27
ASPMX.L.GOOGLE.COM.                      293      IN    A        74.125.140.27
ALT1.ASPMX.L.GOOGLE.COM.                 293      IN    A        209.85.233.27
ASPMX5.GOOGLEMAIL.COM.                   293      IN    A        173.194.202.27
ALT2.ASPMX.L.GOOGLE.COM.                 293      IN    A        172.217.194.26


Trying Zone Transfers and getting Bind Versions:
_________________________________________________


Trying Zone Transfer for zonetransfer.me on nsztm1.digi.ninja ... 
zonetransfer.me.                         7200     IN    SOA      ( nsztm1.digi.ninja. robin.digi.ninja.
                2019100801  ;serial
                172800      ;refresh
                900     ;retry
                1209600     ;expire
                3600        ;minimum
    )
zonetransfer.me.                         300      IN    HINFO    "Casio fx-700G" "Windows XP"
zonetransfer.me.                         301      IN    TXT      (
    google-site-verification=tyP28J7JAUHA9fw2sHXMgcCC0I6XBmmoVi04VlMewxA )
zonetransfer.me.                         7200     IN    MX       0 ASPMX.L.GOOGLE.COM.
zonetransfer.me.                         7200     IN    MX       10 ALT1.ASPMX.L.GOOGLE.COM.
zonetransfer.me.                         7200     IN    MX       10 ALT2.ASPMX.L.GOOGLE.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX2.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX3.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX4.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX5.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    A        5.196.105.14
zonetransfer.me.                         7200     IN    NS       nsztm1.digi.ninja.
zonetransfer.me.                         7200     IN    NS       nsztm2.digi.ninja.
_sip._tcp.zonetransfer.me.               14000    IN    SRV      0 0 5060 www.zonetransfer.me.
14.105.196.5.IN-ADDR.ARPA.zonetransfer.me. 7200     IN    PTR      www.zonetransfer.me.
asfdbauthdns.zonetransfer.me.            7900     IN    AFSDB    1 asfdbbox.zonetransfer.me.
asfdbbox.zonetransfer.me.                7200     IN    A         127.0.0.1
asfdbvolume.zonetransfer.me.             7800     IN    AFSDB    1 asfdbbox.zonetransfer.me.
canberra-office.zonetransfer.me.         7200     IN    A        202.14.81.230
cmdexec.zonetransfer.me.                 300      IN    TXT          "; ls"
contact.zonetransfer.me.                 2592000  IN    TXT      (
    "Remember to call or email Pippa on +44 123 4567890 or pippa@zonetransfer.me when making DNS changes"
    )
dc-office.zonetransfer.me.               7200     IN    A        143.228.181.132
deadbeef.zonetransfer.me.                7201     IN    AAAA     dead:beaf::
dr.zonetransfer.me.                      300      IN    LOC      53 20 56.558 N  1 38 33.526 W  0m 
DZC.zonetransfer.me.                     7200     IN    TXT         AbCdEfG
email.zonetransfer.me.                   2222     IN    NAPTR    ( 1 1 P E2U+email ""
    email.zonetransfer.me.zonetransfer.me. )
email.zonetransfer.me.                   7200     IN    A        74.125.206.26
Hello.zonetransfer.me.                   7200     IN    TXT      "Hi to Josh and all his class"
home.zonetransfer.me.                    7200     IN    A         127.0.0.1
Info.zonetransfer.me.                    7200     IN    TXT      (
    "ZoneTransfer.me service provided by Robin Wood - robin@digi.ninja. See http://digi.ninja/projects/zonetransferme.php for more information."
    )
internal.zonetransfer.me.                300      IN    NS       intns1.zonetransfer.me.
internal.zonetransfer.me.                300      IN    NS       intns2.zonetransfer.me.
intns1.zonetransfer.me.                  300      IN    A        81.4.108.41
intns2.zonetransfer.me.                  300      IN    A        167.88.42.94
office.zonetransfer.me.                  7200     IN    A        4.23.39.254
ipv6actnow.org.zonetransfer.me.          7200     IN    AAAA     2001:67c:2e8:11::c100:1332
owa.zonetransfer.me.                     7200     IN    A        207.46.197.32
robinwood.zonetransfer.me.               302      IN    TXT      "Robin Wood"
rp.zonetransfer.me.                      321      IN    RP       ( robin.zonetransfer.me.
    robinwood.zonetransfer.me. )
sip.zonetransfer.me.                     3333     IN    NAPTR    ( 2 3 P E2U+sip
    !^.*$!sip:customer-service@zonetransfer.me! . )
sqli.zonetransfer.me.                    300      IN    TXT      "' or 1=1 --"
sshock.zonetransfer.me.                  7200     IN    TXT      "() { :]}; echo ShellShocked"
staging.zonetransfer.me.                 7200     IN    CNAME    www.sydneyoperahouse.com.
alltcpportsopen.firewall.test.zonetransfer.me. 301      IN    A         127.0.0.1
testing.zonetransfer.me.                 301      IN    CNAME    www.zonetransfer.me.
vpn.zonetransfer.me.                     4000     IN    A        174.36.59.154
www.zonetransfer.me.                     7200     IN    A        5.196.105.14
xss.zonetransfer.me.                     300      IN    TXT      '><script>alert\('Boo'\)</script>

Trying Zone Transfer for zonetransfer.me on nsztm2.digi.ninja ... 
zonetransfer.me.                         7200     IN    SOA      ( nsztm1.digi.ninja. robin.digi.ninja.
                2019100801  ;serial
                172800      ;refresh
                900     ;retry
                1209600     ;expire
                3600        ;minimum
    )
zonetransfer.me.                         300      IN    HINFO    "Casio fx-700G" "Windows XP"
zonetransfer.me.                         301      IN    TXT      (
    google-site-verification=tyP28J7JAUHA9fw2sHXMgcCC0I6XBmmoVi04VlMewxA )
zonetransfer.me.                         7200     IN    MX       0 ASPMX.L.GOOGLE.COM.
zonetransfer.me.                         7200     IN    MX       10 ALT1.ASPMX.L.GOOGLE.COM.
zonetransfer.me.                         7200     IN    MX       10 ALT2.ASPMX.L.GOOGLE.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX2.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX3.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX4.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    MX       20 ASPMX5.GOOGLEMAIL.COM.
zonetransfer.me.                         7200     IN    A        5.196.105.14
zonetransfer.me.                         7200     IN    NS       nsztm1.digi.ninja.
zonetransfer.me.                         7200     IN    NS       nsztm2.digi.ninja.
_sip._tcp.zonetransfer.me.               14000    IN    SRV      0 0 5060 www.zonetransfer.me.
14.105.196.5.IN-ADDR.ARPA.zonetransfer.me. 7200     IN    PTR      www.zonetransfer.me.
asfdbauthdns.zonetransfer.me.            7900     IN    AFSDB    1 asfdbbox.zonetransfer.me.
asfdbbox.zonetransfer.me.                7200     IN    A         127.0.0.1
asfdbvolume.zonetransfer.me.             7800     IN    AFSDB    1 asfdbbox.zonetransfer.me.
canberra-office.zonetransfer.me.         7200     IN    A        202.14.81.230
cmdexec.zonetransfer.me.                 300      IN    TXT          "; ls"
contact.zonetransfer.me.                 2592000  IN    TXT      (
    "Remember to call or email Pippa on +44 123 4567890 or pippa@zonetransfer.me when making DNS changes"
    )
dc-office.zonetransfer.me.               7200     IN    A        143.228.181.132
deadbeef.zonetransfer.me.                7201     IN    AAAA     dead:beaf::
dr.zonetransfer.me.                      300      IN    LOC      53 20 56.558 N  1 38 33.526 W  0m 
DZC.zonetransfer.me.                     7200     IN    TXT         AbCdEfG
email.zonetransfer.me.                   2222     IN    NAPTR    ( 1 1 P E2U+email ""
    email.zonetransfer.me.zonetransfer.me. )
email.zonetransfer.me.                   7200     IN    A        74.125.206.26
Hello.zonetransfer.me.                   7200     IN    TXT      "Hi to Josh and all his class"
home.zonetransfer.me.                    7200     IN    A         127.0.0.1
Info.zonetransfer.me.                    7200     IN    TXT      (
    "ZoneTransfer.me service provided by Robin Wood - robin@digi.ninja. See http://digi.ninja/projects/zonetransferme.php for more information."
    )
internal.zonetransfer.me.                300      IN    NS       intns1.zonetransfer.me.
internal.zonetransfer.me.                300      IN    NS       intns2.zonetransfer.me.
intns1.zonetransfer.me.                  300      IN    A        81.4.108.41
intns2.zonetransfer.me.                  300      IN    A        52.91.28.78
office.zonetransfer.me.                  7200     IN    A        4.23.39.254
ipv6actnow.org.zonetransfer.me.          7200     IN    AAAA     2001:67c:2e8:11::c100:1332
owa.zonetransfer.me.                     7200     IN    A        207.46.197.32
robinwood.zonetransfer.me.               302      IN    TXT      "Robin Wood"
rp.zonetransfer.me.                      321      IN    RP       ( robin.zonetransfer.me.
    robinwood.zonetransfer.me. )
sip.zonetransfer.me.                     3333     IN    NAPTR    ( 2 3 P E2U+sip
    !^.*$!sip:customer-service@zonetransfer.me! . )
sqli.zonetransfer.me.                    300      IN    TXT      "' or 1=1 --"
sshock.zonetransfer.me.                  7200     IN    TXT      "() { :]}; echo ShellShocked"
staging.zonetransfer.me.                 7200     IN    CNAME    www.sydneyoperahouse.com.
alltcpportsopen.firewall.test.zonetransfer.me. 301      IN    A         127.0.0.1
testing.zonetransfer.me.                 301      IN    CNAME    www.zonetransfer.me.
vpn.zonetransfer.me.                     4000     IN    A        174.36.59.154
www.zonetransfer.me.                     7200     IN    A        5.196.105.14
xss.zonetransfer.me.                     300      IN    TXT      '><script>alert\('Boo'\)</script>

brute force file not specified, bay.