Exploit databaseDownload repository ZIP
GH-8958357e96f9d8f8c98383150c404283
notkmhn/cve-2022-21449-tls-poc
Sources for CVE-2022-21449
14 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files41
notkmhn/cve-2022-21449-tls-pocRevision fa239eebae2b
- ↑..Parent directory
- asm_aix_ppc64.s
- asm_darwin.s
- asm_solaris.s
- at.go
- at_aix.go
- at_darwin.go
- at_freebsd.go
- at_libc.go
- at_solaris.go
- at_sysnum_darwin.go
- at_sysnum_dragonfly.go
- at_sysnum_fstatat64_linux.go
- at_sysnum_fstatat_linux.go
- at_sysnum_linux.go
- at_sysnum_netbsd.go
- at_sysnum_newfstatat_linux.go
- at_sysnum_openbsd.go
- copy_file_range_linux.go
- fcntl_linux_32bit.go
- getentropy_darwin.go
- getentropy_openbsd.go
- getrandom.go
- getrandom_dragonfly.go
- getrandom_freebsd.go
- getrandom_linux.go
- getrandom_solaris.go
- ioctl_aix.go
- net.go
- net_js.go
- nonblocking.go
- nonblocking_js.go
- nonblocking_libc.go
- sysnum_linux_386.go
- sysnum_linux_amd64.go
- sysnum_linux_arm.go
- sysnum_linux_generic.go
- sysnum_linux_mips64x.go
- sysnum_linux_mipsx.go
- sysnum_linux_ppc64x.go
- sysnum_linux_s390x.go
- writev_illumos.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
go/src/internal/syscall/unix/at_freebsd.go
Go · 1,058 bytes// Copyright 2018 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 unix
import (
"syscall"
"unsafe"
)
const (
AT_REMOVEDIR = 0x800
AT_SYMLINK_NOFOLLOW = 0x200
)
func Unlinkat(dirfd int, path string, flags int) error {
p, err := syscall.BytePtrFromString(path)
if err != nil {
return err
}
_, _, errno := syscall.Syscall(syscall.SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(flags))
if errno != 0 {
return errno
}
return nil
}
func Openat(dirfd int, path string, flags int, perm uint32) (int, error) {
p, err := syscall.BytePtrFromString(path)
if err != nil {
return 0, err
}
fd, _, errno := syscall.Syscall6(syscall.SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(flags), uintptr(perm), 0, 0)
if errno != 0 {
return 0, errno
}
return int(fd), nil
}
func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error {
return syscall.Fstatat(dirfd, path, stat, flags)
}