Exploit databaseDownload repository ZIP
GH-01444087b01aeb1dee1796a8839b8ee1
297855/nwctbf
Sources for CVE-2025-22870
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files11
297855/nwctbfRevision 281652541089
- ↑..Parent directory
- conn.go
- map.go
- mux.go
- mux_test.go
- netpackager.go
- pool.go
- queue.go
- rate.go
- sysGetsock_nowindows.go
- sysGetsock_windows.go
- tc.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/nps_mux/sysGetsock_windows.go
Go · 715 bytes//go:build windows
// +build windows
package nps_mux
import (
"net"
"os"
)
func sysGetSock(fd *os.File) (bufferSize int, err error) {
// https://github.com/golang/sys/blob/master/windows/syscall_windows.go#L1184
// not support, WTF???
// Todo
// return syscall.GetsockoptInt((syscall.Handle)(unsafe.Pointer(fd.Fd())), syscall.SOL_SOCKET, syscall.SO_RCVBUF)
bufferSize = 15 * 1024 * 1024
return
}
func getConnFd(c net.Conn) (fd *os.File, err error) {
switch c.(type) {
case *net.TCPConn:
//fd, err = c.(*net.TCPConn).File()
//if err != nil {
// return
//}
return
case *net.UDPConn:
//fd, err = c.(*net.UDPConn).File()
//if err != nil {
// return
//}
return
default:
return
}
}