Skip to content

Instantly share code, notes, and snippets.

@stevenswafford
Last active May 9, 2022 07:57
Show Gist options
  • Save stevenswafford/51e6a9f84540c607027a to your computer and use it in GitHub Desktop.
Save stevenswafford/51e6a9f84540c607027a to your computer and use it in GitHub Desktop.

Revisions

  1. stevenswafford revised this gist Jun 3, 2015. 1 changed file with 0 additions and 8 deletions.
    8 changes: 0 additions & 8 deletions dnsmap.py
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,5 @@
    #!/usr/bin/env python

    # Script Name : dnsmap.py
    # Author : Steven Swafford
    # Created : April 2015
    # Last Modified :
    # Version : 1.0

    # Modifications :

    # Description : Maps DNS from a given domain.

    import socket
  2. stevenswafford revised this gist Jun 3, 2015. 1 changed file with 0 additions and 12 deletions.
    12 changes: 0 additions & 12 deletions dnsmap.py
    Original file line number Diff line number Diff line change
    @@ -10,18 +10,6 @@

    # Description : Maps DNS from a given domain.

    print""
    print "It is all fun and games until someone gets hacked!"
    print" _ _ "
    print" _ /|| . . ||\ _ "
    print" ( } \||D ' ' ' C||/ { % "
    print" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
    print" |_\_ |----| |----| _/_|"
    print" | |/ | | | | \| |"
    print" | /_ | | | | _\ |"
    print""
    print""

    import socket
    import sys

  3. stevenswafford created this gist Jun 3, 2015.
    36 changes: 36 additions & 0 deletions dnsmap.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    #!/usr/bin/env python

    # Script Name : dnsmap.py
    # Author : Steven Swafford
    # Created : April 2015
    # Last Modified :
    # Version : 1.0

    # Modifications :

    # Description : Maps DNS from a given domain.

    print""
    print "It is all fun and games until someone gets hacked!"
    print" _ _ "
    print" _ /|| . . ||\ _ "
    print" ( } \||D ' ' ' C||/ { % "
    print" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
    print" |_\_ |----| |----| _/_|"
    print" | |/ | | | | \| |"
    print" | /_ | | | | _\ |"
    print""
    print""

    import socket
    import sys

    domain = raw_input("Enter domain: ")

    try:
    ip = socket.gethostbyname(domain)

    except socket.gaierror:
    print "Invalid Domain: " + domain
    sys.exit()
    print "DNS: " + ip