Skip to content

Commit

Permalink
利用GetProcAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
safe6Sec committed Aug 18, 2021
1 parent 5dd870e commit e295930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test8/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func getEnCode(data []byte) string {
}

var (
kernel32 = syscall.MustLoadDLL("kernel32.dll")
ntdll = syscall.MustLoadDLL("ntdll.dll")
//kernel32 = syscall.MustLoadDLL("kernel32.dll")
ntdll = syscall.MustLoadDLL("ntdll.dll")
//VirtualAlloc = kernel32.MustFindProc("VirtualAlloc")
DllTestDef, _ = syscall.LoadLibrary("kernel32.dll")
RtlCopyMemory = ntdll.MustFindProc("RtlCopyMemory")
Expand Down

0 comments on commit e295930

Please sign in to comment.