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 /
runtime /
pprof /
internal /
profile /
[ HOME SHELL ]
Name
Size
Permission
Action
encode.go
13.61
KB
-rw-r--r--
filter.go
4.03
KB
-rw-r--r--
legacy_profile.go
31.61
KB
-rw-r--r--
profile.go
13.79
KB
-rw-r--r--
profile_test.go
1.9
KB
-rw-r--r--
proto.go
6.89
KB
-rw-r--r--
proto_test.go
1.55
KB
-rw-r--r--
prune.go
2.42
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : proto_test.go
package profile import ( "reflect" "testing" ) func TestPackedEncoding(t *testing.T) { type testcase struct { uint64s []uint64 int64s []int64 encoded []byte } for i, tc := range []testcase{ { []uint64{0, 1, 10, 100, 1000, 10000}, []int64{1000, 0, 1000}, []byte{10, 8, 0, 1, 10, 100, 232, 7, 144, 78, 18, 5, 232, 7, 0, 232, 7}, }, { []uint64{10000}, nil, []byte{8, 144, 78}, }, { nil, []int64{-10000}, []byte{16, 240, 177, 255, 255, 255, 255, 255, 255, 255, 1}, }, } { source := &packedInts{tc.uint64s, tc.int64s} if got, want := marshal(source), tc.encoded; !reflect.DeepEqual(got, want) { t.Errorf("failed encode %d, got %v, want %v", i, got, want) } dest := new(packedInts) if err := unmarshal(tc.encoded, dest); err != nil { t.Errorf("failed decode %d: %v", i, err) continue } if got, want := dest.uint64s, tc.uint64s; !reflect.DeepEqual(got, want) { t.Errorf("failed decode uint64s %d, got %v, want %v", i, got, want) } if got, want := dest.int64s, tc.int64s; !reflect.DeepEqual(got, want) { t.Errorf("failed decode int64s %d, got %v, want %v", i, got, want) } } } type packedInts struct { uint64s []uint64 int64s []int64 } func (u *packedInts) decoder() []decoder { return []decoder{ nil, func(b *buffer, m message) error { return decodeUint64s(b, &m.(*packedInts).uint64s) }, func(b *buffer, m message) error { return decodeInt64s(b, &m.(*packedInts).int64s) }, } } func (u *packedInts) encode(b *buffer) { encodeUint64s(b, 1, u.uint64s) encodeInt64s(b, 2, u.int64s) }
Close