Last active
May 9, 2022 07:57
-
-
Save stevenswafford/51e6a9f84540c607027a to your computer and use it in GitHub Desktop.
Revisions
-
stevenswafford revised this gist
Jun 3, 2015 . 1 changed file with 0 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,5 @@ #!/usr/bin/env python # Description : Maps DNS from a given domain. import socket -
stevenswafford revised this gist
Jun 3, 2015 . 1 changed file with 0 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,18 +10,6 @@ # Description : Maps DNS from a given domain. import socket import sys -
stevenswafford created this gist
Jun 3, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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