-
Notifications
You must be signed in to change notification settings - Fork 4
/
sitetoip.py
67 lines (55 loc) · 2.01 KB
/
sitetoip.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import sys,os,re,socket,binascii,time,json,random,threading,Queue,pprint,urlparse,smtplib,telnetlib,os.path,hashlib,string,urllib2,glob,sqlite3,urllib,argparse,marshal,base64,colorama,requests
from colorama import *
from random import choice
from colorama import Fore,Back,init
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from platform import system
from Queue import Queue
from time import strftime
from urlparse import urlparse
from urllib2 import urlopen
colorama.init()
# Now regular ANSI codes should work, even in Windows
CLEAR_SCREEN = "\033[2J"
RED = "\033[31m" # mode 31 = red forground
RESET = "\033[0m" # mode 0 = reset
BLUE = "\033[34m"
YELLOW = "\033[1;33m"
CYAN = "\033[36m"
GREEN = "\033[32m"
RESET = "\033[0m"
BOLD = "\033[m"
REVERSE = "\033[m"
WHITE = "\033[1;37m"
def logo():
clear = "\x1b[0m"
colors = [36, 32, 34, 35, 31, 37 ]
x = """
____ ___ _____ _____ _____ ___ ___ ____
/ ___|_ _|_ _| ____| |_ _/ _ \ |_ _| _ \
\___ \| | | | | _| _____ | || | | | _____ | || |_) |
___) | | | | | |___ |_____| | || |_| | |_____| | || __/
|____/___| |_| |_____| |_| \___/ |___|_|
CODED BY TUX-MACG1V
<%%%%|==========>
Note : Domaine List Shoud Be Without http://
"""
for N, line in enumerate(x.split("\n")):
sys.stdout.write("\x1b[1;%dm%s%s\n" % (random.choice(colors), line, clear))
time.sleep(0.02)
logo()
def getIP(site):
site = i.strip()
try:
if 'http://' not in site:
IP1 = socket.gethostbyname(site)
print GREEN + "[+]" + WHITE + "IP: "+ GREEN + IP1
open('ips.txt', 'a').write(IP1+'\n')
except:
print RED + "[-]" + WHITE + "DOMAIN: " + RED + site
pass
list=raw_input('[>]Domain List:~')
with open(list) as f:
for i in f:
getIP(i)