Skip to content

Commit c1b94e3

Browse files
authored
Add files via upload
0 parents  commit c1b94e3

File tree

2 files changed

+115
-0
lines changed

2 files changed

+115
-0
lines changed

index.html

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<link rel="stylesheet" href="style.css">
7+
<title>Simple Python3 Obfuscator</title>
8+
</head>
9+
<body>
10+
11+
<script>
12+
13+
function setObfuscatedCodeText(value){
14+
document.getElementById('obfuscated_code').value = value
15+
}
16+
17+
function obfuscate(){
18+
var normal_code = document.getElementById('normal_code').value
19+
var content = normal_code;
20+
for (let i = 0; i < getSliderValue(); i++) {
21+
content = formatText(btoa(content))
22+
}
23+
setObfuscatedCodeText(content)
24+
}
25+
26+
function getSliderValue(){
27+
return document.getElementById("slider").value
28+
}
29+
30+
function updateSlider() {
31+
var x = getSliderValue();
32+
document.getElementById("sliderValue").innerHTML = x;
33+
}
34+
35+
function formatText(text){
36+
return "exec(__import__('base64').b64decode(__import__('codecs').getencoder('utf-8')('"+text+"')[0]))"
37+
}
38+
39+
</script>
40+
41+
<center>
42+
43+
<h1 id="shadowtext">Python3 Code Obfuscator</h1>
44+
45+
<textarea id="normal_code" rows="15" cols="70"></textarea>
46+
<br><br><br><br><br>
47+
48+
<label for="slider", id="shadowtext">Interactions: <span id="sliderValue">30</span></label><br>
49+
<input oninput="updateSlider()" type="range" id="slider" name="slider" min="0" max="60" step="1" value="30">
50+
<br>
51+
52+
<button onclick="obfuscate()">Obfuscate!</button>
53+
54+
<br><br><br><br><br>
55+
<textarea id="obfuscated_code" rows="15" cols="70"></textarea>
56+
</center>
57+
58+
<br><br><br>
59+
<p id="shadowtext"><u>Made by github.com/n0nexist</u></p>
60+
61+
</body>
62+
</html>

style.css

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
html, body {
2+
width: 100%;
3+
height:100%;
4+
}
5+
6+
body {
7+
background: linear-gradient(-20deg, #161c26, #3d4757, #6f7378);
8+
background-size: 400% 400%;
9+
animation: gradient 15s ease infinite;
10+
}
11+
12+
@keyframes gradient {
13+
0% {
14+
background-position: 0% 50%;
15+
}
16+
50% {
17+
background-position: 100% 50%;
18+
}
19+
100% {
20+
background-position: 0% 50%;
21+
}
22+
}
23+
24+
25+
textarea {
26+
resize: none;
27+
outline: none !important;
28+
box-shadow: 0 0 20px #719ECE;
29+
font-size: 12px;
30+
}
31+
32+
p {
33+
position: fixed;
34+
bottom: 0;
35+
}
36+
37+
#shadowtext {
38+
color: #a5b7bb;
39+
text-shadow: 2px 2px #616161;
40+
}
41+
42+
button {
43+
background: linear-gradient(-20deg, #3d4757, #6f7378);
44+
border: none;
45+
color: #a5b7bb;
46+
text-shadow: 2px 2px #616161;
47+
padding: 15px 32px;
48+
text-align: center;
49+
text-decoration: none;
50+
display: inline-block;
51+
box-shadow: 0 0 20px #719ECE;
52+
font-size: 17.5px;
53+
}

0 commit comments

Comments
 (0)