Skip to content

Commit

Permalink
Resolver subdominios encontrados en bingsub.py y goosub.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alguien-gh committed May 2, 2014
1 parent a237736 commit 93781f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion infogathe/bingsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re
import urlparse
import time
import socket


CONFIG = {
Expand Down Expand Up @@ -94,7 +95,12 @@ def main():
mensaje("[+] Se encontraron %d subdominios" % len(dominios), 1, NORM)
mensaje("[+] Resultados: \n", 1, NORM)
for dominio in dominios:
mensaje(dominio, 0, NORM)
try:
_, _, ips = socket.gethostbyname_ex(dominio)
for ip in ips:
mensaje("%s\t%s" % (dominio, ip), 0, NORM)
except:
mensaje("%s\t-" % (dominio), 0, ERRO)
return 0


Expand Down
8 changes: 7 additions & 1 deletion infogathe/goosub.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import re
import urlparse
import time
import socket


CONFIG = {
Expand Down Expand Up @@ -94,7 +95,12 @@ def main():
mensaje("[+] Se encontraron %d subdominios" % len(dominios), 1, NORM)
mensaje("[+] Resultados: \n", 1, NORM)
for dominio in dominios:
mensaje(dominio, 0, NORM)
try:
_, _, ips = socket.gethostbyname_ex(dominio)
for ip in ips:
mensaje("%s\t%s" % (dominio, ip), 0, NORM)
except:
mensaje("%s\t-" % (dominio), 0, ERRO)
return 0


Expand Down

0 comments on commit 93781f4

Please sign in to comment.