-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
135 lines (124 loc) · 4.33 KB
/
index.html
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Javascript Obfuscator</title>
<script src="js/jquery-3.5.1.min.js"></script>
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="description" content="Ofuscando javascript simples e rápido" />
<meta property="og:url" content="https://leodhb.github.io/js-obfuscator" />
<meta property="og:title" content="Javascript Obfuscator" />
<meta
property="og:description"
content="Ofuscando javascript simples e rápido"
/>
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Javascript Obfuscator" />
<meta
name="twitter:description"
content="Ofuscando javascript simples e rápido"
/>
<script type="application/ld+json">
[
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://leodhb.github.io/js-obfuscator",
"name": "Javascript Obfuscator",
"alternateName": "Javascript Obfuscator"
}
]
</script>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/codemirror.css" />
<script src="js/lib/CodeMirror/codemirror.js"></script>
<script src="js/lib/CodeMirror/mode/javascript/javascript.js"></script>
<script src="js/lib/CodeMirror/addon/edit/closetag.js"></script>
<script src="js/lib/CodeMirror/addon/edit/closebrackets.js"></script>
<script src="js/lib/CodeMirror/addon/wrap/hardwrap.js"></script>
<script src="js/lib/Clipboard/clipboard.js"></script>
</head>
<body>
<style>
body {
background-color: #222;
color: white;
}
.scriptxt {
resize: none;
}
.CodeMirror {
border: solid 1px #aaa;
border-radius: 10px;
}
</style>
<main class="container">
<div class="row justify-content-center">
<header class="col-lg-12 text-center mt-4">
<h1 class="mt-4">Javascript Obfuscator</h1>
</header>
<section class="col-lg-5">
<div class="form-group">
<label for="scriptOriginal">Script para ofuscar</label>
<textarea
class="form-control scriptxt"
id="scriptOriginal"
rows="13"
></textarea>
</div>
</section>
<section class="col-lg-2 my-auto">
<button class="btn btn-block btn-primary" id="ofuscar">
Ofuscar
</button>
<button class="btn btn-block btn-success" id="copiar">Copiar</button>
<a
class="btn btn-block btn-light"
target="blank"
href="https://github.com/leodhb/js-obfuscator"
>
GitHub
</a>
</section>
<section class="col-lg-5">
<div class="form-group">
<label for="scriptOfuscado">Script ofuscado</label>
<textarea
class="form-control scriptxt"
id="scriptOfuscado"
rows="13"
></textarea>
</div>
</section>
<footer class="row">
<div class="col-lg-12 text-center">
<h1 class="mt-4">Como funciona?</h1>
<p>
O JavaScript Obfuscator usa a Biblioteca HunterObfuscator para
gerar um código difícil de entender mas que, por baixo dos panos,
é a mesma coisa.
</p>
<p>
O HunterObfuscator é um algoritmo de ofuscaçao de código
javascript escrito em PHP, que se utiliza de um algorítmo próprio
de hash e salt, que no final gera uma cadeia de manupulaçao de
Strings muito complicado de reverter.
</p>
<p>
Este website é uma interface gráfica para o algoritmo. Que se
comunica via AJAX com o backend e codifica os requests e responses
usando base64 (para evitar possíveis error envolvendo aspas e
afins).
</p>
</div>
</footer>
</div>
</main>
<script type="module" src="js/scripts.js"></script>
</body>
</html>