Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
html /
template /
[ HOME SHELL ]
Name
Size
Permission
Action
attr.go
6.24
KB
-rw-r--r--
attr_string.go
413
B
-rw-r--r--
clone_test.go
8
KB
-rw-r--r--
content.go
6.26
KB
-rw-r--r--
content_test.go
13.29
KB
-rw-r--r--
context.go
8.18
KB
-rw-r--r--
css.go
7
KB
-rw-r--r--
css_test.go
6.91
KB
-rw-r--r--
delim_string.go
416
B
-rw-r--r--
doc.go
7.67
KB
-rw-r--r--
element_string.go
445
B
-rw-r--r--
error.go
8.87
KB
-rw-r--r--
escape.go
29.05
KB
-rw-r--r--
escape_test.go
50.26
KB
-rw-r--r--
example_test.go
3.93
KB
-rw-r--r--
examplefiles_test.go
7.47
KB
-rw-r--r--
html.go
7.31
KB
-rw-r--r--
html_test.go
2.81
KB
-rw-r--r--
js.go
11.52
KB
-rw-r--r--
js_test.go
11.65
KB
-rw-r--r--
jsctx_string.go
387
B
-rw-r--r--
state_string.go
755
B
-rw-r--r--
template.go
15.85
KB
-rw-r--r--
template_test.go
4.55
KB
-rw-r--r--
transition.go
15.18
KB
-rw-r--r--
transition_test.go
1.71
KB
-rw-r--r--
url.go
6.7
KB
-rw-r--r--
url_test.go
3.88
KB
-rw-r--r--
urlpart_string.go
436
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : html_test.go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package template import ( "html" "strings" "testing" ) func TestHTMLNospaceEscaper(t *testing.T) { input := ("\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f" + "\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" + ` !"#$%&'()*+,-./` + `0123456789:;<=>?` + `@ABCDEFGHIJKLMNO` + `PQRSTUVWXYZ[\]^_` + "`abcdefghijklmno" + "pqrstuvwxyz{|}~\x7f" + "\u00A0\u0100\u2028\u2029\ufeff\ufdec\U0001D11E" + "erroneous\x960") // keep at the end want := ("�\x01\x02\x03\x04\x05\x06\x07" + "\x08	  \x0E\x0F" + "\x10\x11\x12\x13\x14\x15\x16\x17" + "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" + ` !"#$%&'()*+,-./` + `0123456789:;<=>?` + `@ABCDEFGHIJKLMNO` + `PQRSTUVWXYZ[\]^_` + ``abcdefghijklmno` + `pqrstuvwxyz{|}~` + "\u007f" + "\u00A0\u0100\u2028\u2029\ufeff\U0001D11E" + "erroneous�0") // keep at the end got := htmlNospaceEscaper(input) if got != want { t.Errorf("encode: want\n\t%q\nbut got\n\t%q", want, got) } r := strings.NewReplacer("\x00", "\ufffd", "\x96", "\ufffd") got, want = html.UnescapeString(got), r.Replace(input) if want != got { t.Errorf("decode: want\n\t%q\nbut got\n\t%q", want, got) } } func TestStripTags(t *testing.T) { tests := []struct { input, want string }{ {"", ""}, {"Hello, World!", "Hello, World!"}, {"foo&bar", "foo&bar"}, {`Hello <a href="www.example.com/">World</a>!`, "Hello World!"}, {"Foo <textarea>Bar</textarea> Baz", "Foo Bar Baz"}, {"Foo <!-- Bar --> Baz", "Foo Baz"}, {"<", "<"}, {"foo < bar", "foo < bar"}, {`Foo<script type="text/javascript">alert(1337)</script>Bar`, "FooBar"}, {`Foo<div title="1>2">Bar`, "FooBar"}, {`I <3 Ponies!`, `I <3 Ponies!`}, {`<script>foo()</script>`, ``}, } for _, test := range tests { if got := stripTags(test.input); got != test.want { t.Errorf("%q: want %q, got %q", test.input, test.want, got) } } } func BenchmarkHTMLNospaceEscaper(b *testing.B) { for i := 0; i < b.N; i++ { htmlNospaceEscaper("The <i>quick</i>,\r\n<span style='color:brown'>brown</span> fox jumps\u2028over the <canine class=\"lazy\">dog</canine>") } } func BenchmarkHTMLNospaceEscaperNoSpecials(b *testing.B) { for i := 0; i < b.N; i++ { htmlNospaceEscaper("The_quick,_brown_fox_jumps_over_the_lazy_dog.") } } func BenchmarkStripTags(b *testing.B) { for i := 0; i < b.N; i++ { stripTags("The <i>quick</i>,\r\n<span style='color:brown'>brown</span> fox jumps\u2028over the <canine class=\"lazy\">dog</canine>") } } func BenchmarkStripTagsNoSpecials(b *testing.B) { for i := 0; i < b.N; i++ { stripTags("The quick, brown fox jumps over the lazy dog.") } }
Close