배너 로고 아이디
를 확인해 주세요. (크롬에서 대문 우클릭하고 검사
누르시면 나옵니다.)
아이디
는 임의로 수정해도 좋지만 다른 태그에서 이 이름(아이디
)이 식별자로 쓰인다는 점에 주의하세요.
-
package main | |
import "syscall" | |
func main() { | |
// equivalent to (HANDLE)GetModuleHandle(NULL); in C | |
handle, _, _ := syscall.Syscall( | |
syscall.NewLazyDLL("kernel32.dll").NewProc("GetModuleHandleW").Addr(), | |
1, 0, 0, 0, |
package main | |
//#include "dllmain.h" | |
import "C" |
MessageBoxW( | |
NULL, | |
(LPCWSTR)L"Resource not available\nDo you want to try again?", | |
(LPCWSTR)L"Account Details 1", | |
MB_ICONWARNING | MB_CANCELTRYCONTINUE | MB_DEFBUTTON2 | |
); |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
) | |
type _ReqRes struct { |
// Hack an unexported (private) member of a struct. | |
// ptrToTargetStruct - a ptr to that struct. | |
// member - name of an unexported field. | |
func Hack(ptrToTargetStruct interface{}, member string) *TYPE_MEMBER { | |
return *(**TYPE_MEMBER)(unsafe.Pointer(reflect.Indirect(reflect.ValueOf(ptrToTargetStruct)).FieldByName(member).UnsafeAddr())) | |
} | |
// | |
// type TARGET struct { | |
// privateMemer *TYPE_MEMBER | |
// } |
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))), |
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io" | |
"os" | |
) |
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"strconv" | |
"strings" | |
) | |
func _UnescapeUnicodeCharactersInJSON(_jsonRaw json.RawMessage) (json.RawMessage, error) { |
package main | |
import ( | |
"fmt" | |
) | |
type HelloWorld struct { | |
Arabic string | |
English string | |
Greek string |