Last active
September 7, 2020 21:55
-
-
Save galehrizky/9ba3bb86c6df072a0dd50ff76421c279 to your computer and use it in GitHub Desktop.
Python Script
This file contains 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 characters
# ====================================================== | |
# Change the author name don't make you become a coder | |
# contact : [email protected] | |
# Priv8 tools | |
# requirement : python3 | |
# use : python3 clear_url.py | |
# @2020 galehdotid | fb.com/hax0rtersakiti | |
# ======================================================= | |
import os,time | |
from concurrent.futures import ThreadPoolExecutor | |
from urllib.parse import urlparse | |
def Extract(url): | |
aw = urlparse(url).netloc | |
return aw | |
def GaspOOll(url): | |
extract = Extract(url) | |
save(extract,"result_domain_clean.txt") | |
def save(sites, names): | |
s = open(names, "a+") | |
s.write(sites+"\n") | |
return s | |
def main(): | |
try: | |
print(''' ┏━┓━┏┓━━━━━━━━━━━━━━━━━━━━┏━━┓━━━━━━┏┓━ | |
┃┃┗┓┃┃━━━━━━━━━━━━━━━━━━━━┃┏┓┃━━━━━┏┛┗┓ | |
┃┏┓┗┛┃┏━━┓┏┓┏━━┓┏┓┏━┓━┏━━┓┃┗┛┗┓┏━━┓┗┓┏┛ | |
┃┃┗┓┃┃┃┏┓┃┣┫┃━━┫┣┫┃┏┓┓┃┏┓┃┃┏━┓┃┃┏┓┃━┃┃━ | |
┃┃━┃┃┃┃┗┛┃┃┃┣━━┃┃┃┃┃┃┃┃┗┛┃┃┗━┛┃┃┗┛┃━┃┗┓ | |
┗┛━┗━┛┗━┓┃┗┛┗━━┛┗┛┗┛┗┛┗━┓┃┗━━━┛┗━━┛━┗━┛ | |
━━━━━━┏━┛┃━━━━━━━━━━━━┏━┛┃━━━━━━━━━━━━━ | |
━━━━━━┗━━┛━━━━━━━━━━━━┗━━┛━━━━━━━━━━━━━ | |
Galerzz x Botsssss v.1 Bajingan Berotak | |
Still crack your brain ! | |
''') | |
lisnya = input("Your name list -> ") | |
trit = int(input("Put Your Thread Number -> ")) | |
os.system('cls' if os.name == 'nt' else 'clear') | |
try: | |
print("[System Running with threads : {} ]".format(trit)) | |
print("[Result name : result_domain_clean.txt]") | |
with ThreadPoolExecutor(max_workers=trit) as executor: | |
with open(lisnya, 'r') as url: | |
for x in url: | |
executor.submit(GaspOOll,x.rstrip()) | |
except IOError as e: | |
print("[-] YOUR LIST NOT FOUND !") | |
sys.exit() | |
pass | |
except Exception as e: | |
pass | |
print("[Clear done ~]") | |
if __name__ == '__main__': | |
try: | |
main() | |
except KeyboardInterrupt as e: | |
print("[!] Exit Program....") | |
sys.exit() | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment