Skip to content

Commit

Permalink
Create sitetoipv2.py
Browse files Browse the repository at this point in the history
Update tool:
Python 3
Multithread
Beautiful Interface
  • Loading branch information
Tux-MacG1v authored Apr 20, 2022
1 parent 8d083ba commit 6778774
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions sitetoipv2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env python3
import os, requests, sys, time
from colorama import init, Fore, Style
from concurrent.futures import ThreadPoolExecutor
from socket import gethostbyname

init()
r = Fore.RED + Style.BRIGHT
g = Fore.GREEN + Style.BRIGHT
c = Fore.CYAN + Style.BRIGHT
oo = Fore.YELLOW + Style.BRIGHT
o = Fore.RESET + Style.RESET_ALL

banner = """
{} ____ ___ _____ _____ _____ ___ ___ ____
{}/ ___|_ _|_ _| ____| |_ _/ _ \ |_ _| _ \
{}\___ \| | | | | _| _____ | || | | | _____ | || |_) |
{} ___) | | | | | |___ |_____| | || |_| | |_____| | || __/
{}|____/___| |_| |_____| |_| \___/ |___|_|v2
{}CODED BY TUX-MACG1V
TG:https://t.me/I_am_a_silent_killer
{}Note : Domaine List Shoud Be Without http:// & /
""".format(g, r, oo, c, r, g, r, o)


def sitetoip(i):
try:
ip = gethostbyname(i)
print('{}[+] '"{}{} ""{} == ""{}[{}]".format(g, oo, i, o, g, ip))
open('ips.txt', 'a').write(ip + '\n')
except:
print('{}[-] '"{}{}""{} == ""{}[ ERROR ]".format(r, oo, i, o, r))

def Main():
os.system('cls' if os.name == 'nt' else 'clear')
print(banner)

lists = input('\n{}[+] {}Website List{} > {}'.format(o, g, o, g))
thread = input('{}[+] {}Thread{} > {}'.format(o, g, o, r))
print('')
try:
domain = lists.replace('"','')
process = open(domain, 'r').read().splitlines()
with ThreadPoolExecutor(max_workers=int(thread)) as e:
[e.submit(sitetoip, i) for i in process]
except:
print('{}[!] {}Incorrect'.format(o, r))

if __name__ == '__main__':
Main()

0 comments on commit 6778774

Please sign in to comment.