Exploit database

GH-22bf53a29a1d58db7308d50418bca56b

andersundsehr/ca-trust-audit

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-111943

4 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files9
andersundsehr/ca-trust-auditRevision ff58f5f1990e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

cmd/ca-trust-audit/terminal_linux.go

Go · 452 bytes
//go:build linux

package main

import (
	"os"
	"syscall"
	"unsafe"
)

// Query the actual terminal without an external command or cgo dependency.
func terminalColumns(f *os.File) int {
	var size struct{ rows, columns, xpixel, ypixel uint16 }
	_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), syscall.TIOCGWINSZ, uintptr(unsafe.Pointer(&size)))
	if errno != 0 {
		return 0
	}
	if size.columns == 0 {
		return 80
	}
	return int(size.columns)
}