8000 Add files via upload · Err0r-ICA/html64@fe8c948 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe8c948

Browse files
authored
Add files via upload
1 parent 918c245 commit fe8c948

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

html.py

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# -*- coding: utf-8 -*-
2+
#usr/bin/env/python
3+
#Err0r_HB
4+
#Cyb3r Drag0nz Team
5+
6+
import base64
7+
import os
8+
import platform
9+
import time
10+
import pyfiglet
11+
12+
red = "\033[1;91m"
13+
green = "\033[1;92m"
14+
cyan = "\033[1;96m"
15+
16+
# Clear the console screen based on the operating system
17+
def clear():
18+
if platform.system() == "Windows":
19+
os.system("cls")
20+
else:
21+
os.system("clear")
22+
23+
# Print the banner
24+
banner = '''\033[38;5;197m '##::::'##:'########:'##::::'##:'##:::::::
25+
##:::: ##:... ##..:: ###::'###: ##:::::::
26+
##:::: ##:::: ##:::: ####'####: ##:::::::
27+
#########:::: ##:::: ## ### ##: ##:::::::
28+
##.... ##:::: ##:::: ##. #: ##: ##:::::::
29+
##:::: ##:::: ##:::: ##:.:: ##: ##:::::::
30+
##:::: ##:::: ##:::: ##:::: ##: ########:
31+
\033[38;5;202m...:::::..:::::..:::::..:::::..::........::
32+
33+
\033[38;5;092m Coded By Err0r_HB
34+
'''
35+
36+
# Print the progress bar with sleep in between
37+
def main():
38+
clear()
39+
for progress in range(0, 101, 10):
40+
clear()
41+
print(f"{cyan}[{red}{progress}%{cyan}]{green}{'■' * (progress // 10)}")
42+
time.sleep(0.5)
43+
44+
clear()
45+
print(banner)
46+
47+
# Get the input HTML file
48+
html = input(f'{cyan}[!]\033[38;5;021m Enter your html file {cyan}>>> {red}')
49+
code = open(html, 'r', encoding='UTF-8').read()
50+
text = code.encode('utf-8')
51+
bsen = base64.b64encode(text).decode('utf-8')
52+
html_encoding = f"""<!-- Encoding By Err0r_HB | Telegram : t.me/Cyb3r_Drag0nz -->
53+
<!-- GitHub : https://github.com/Err0r-ICA -->
54+
55+
<script type='text/javascript'>document.documentElement.innerHTML=atob('{bsen}');</script>
56+
"""
57+
path = os.getcwd()
58+
output_file = f"{html.replace('.html', '')}_en.html"
59+
open(output_file, 'w').write(html_encoding)
60+
61+
# Print the progress bar again with sleep in between
62+
for progress in range(0, 101, 10):
63+
clear()
64+
print(f"{cyan}[{red}{progress}%{cyan}]{green}{'■' * (progress // 10)}")
65+
time.sleep(1)
66+
67+
clear()
68+
print(banner)
69+
print(f"\n{cyan}[+]{red} The file was encrypted and saved as:‍{green} {os.path.join(path, output_file)}\n")
70+
71+
main()

0 commit comments

Comments
 (0)
0