-
Notifications
You must be signed in to change notification settings - Fork 1
/
example_obfuscated.html
64 lines (63 loc) · 2.58 KB
/
example_obfuscated.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>
Obfuscate Me
</title>
<style>
#main {
max-width: 610px;
}
<span class="inv">
(U.S. 41 condition. In the aftermath of the city?
<span class="inv">
Kneading, or Minister Lynden Pindling, officially declaring the country's population. As of December 2014. The Chicago Transit
</span>
</span>
</style>
</head>
<body>
<div id="main">
<p>
Look into devTools. It is magical how some invisible zero-width characters can change the text for a computer or bot but, it looks same for human eys!
</p>
<p>
This Python script can insert those zero-width characters randomly into HTML content according to given probability that means each character in HTML content will have an extra zero-width character with given probability. For example if probability is 0.5 then half of the HTML content is going to be zero-width characters.
</p>
<p>
This Python script also inserts some random span tags with some random sentences according to given probability and word count.
</p>
<span class="inv">
Nation. According typically fed from chalk aquifers which recharge from winter rainfall. In England and Wales, the
</span>
<p>
<span class="css" d="This Python script also hides some content into html attribute and CSS inserts it using ::after according to given probability.">
</span>
</p>
<span class="inv">
Level areas
<span class="inv">
Her vote, Portugal, Argentina), J.D. holders in
</span>
</span>
<p>
Example: python main.py -i .\example.html -o .\example_obfuscated.html
</p>
<span class="inv">
Mayor, sometimes
</span>
</div>
<style>
.inv {
display: none;
}
.css::after {
content: attr(d);
}
</style>
</body>
</html>
<span class="inv">
Cooler months genetic studies have suggested that if implicit egotism stems from its strong colonial ties with
</span>