-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencrypt_html_original.py
More file actions
71 lines (59 loc) · 1.86 KB
/
encrypt_html_original.py
File metadata and controls
71 lines (59 loc) · 1.86 KB
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
68
69
70
71
#!/bin/python2.7
#-*- coding: utf-8 -*-
import os, sys, requests, re
from bs4 import BeautifulSoup as bs
"""
Copyright (c) 2020 DestaGans
Author: DestaGans
Team: Black Coder Crush
Tools: Auto Encript Html Script
Source code: https://pastebin.com/wxaYEgAt
Target-Scrap: https://www.smartgb.com/free_encrypthtml.php
"""
# Ni Warna Bro #
bi = '\x1b[34;1m'
cy = '\x1b[36;1m'
i = '\x1b[32;1m'
ku = '\x1b[33;1m'
lbi = '\x1b[94;1m'
lcy = '\x1b[95;1m'
lpur = '\x1b[95;1m'
me = '\x1b[31;1m'
pu = '\x1b[37;1m'
pur = '\x1b[35;1m'
reset = '\x1b[0;1m'
bekrond = '\x1b[7m'
#--------------#
os.system('clear')
print('''{}
_ _ _ _
| | | | | | | {}[ {}HTML ENCRIPTED {}]
{}| |_| | |_ _ __ ___ | |
| _ | __| '_ ` _ \| | {}Author{}: {}DestaGans / Mr.Đ`HACK
{}| | | | |_| | | | | | | {}Team{}: {}Black Coder Crush
{}\_| |_/\__|_| |_| |_|_|
''').format(bi,me,pu,me,bi,cy,me,pu,bi,cy,me,pu,bi)
sc = raw_input('{}[{}*{}] EnterHtmlScript{}: {}'.format(pu,i,pu,me,cy))
try:
files = open(sc,'r').read()
except:
time.sleep(1)
print('{}[{}!{}] File Not Found{}!{}').format(pu,me,pu,me,reset)
sys.exit()
key = re.findall('<input type="hidden" name="ch" value="(.*?)">',requests.get('https://www.smartgb.com/free_encrypthtml.php').text)
data = {
'h': files,
's':'extented',
'ch': key,
'Skicka': 'Encrypt HTML'
}
try:
res = requests.post('https://www.smartgb.com/free_encrypthtml.php?do=crypt',data=data).text
b = bs(res, "html.parser")
result = b.find('textarea').text
except:
print('{}[{}!{}] Exception{}!').format(pu,me,pu,me)
open(sc.replace('.html','_enc.html'),'w').write('<!-- EncryptedBy: DestaGans -->'+result)
print('{}[{}!{}] Result{}: {}'+sc.replace('.html','_enc.html')).format(pu,i,pu,me,cy)
print(reset)
sys.exit()