Skip to content

Commit 9b0b381

Browse files
committed
Fix typos in comments
1 parent 539268d commit 9b0b381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shellcode_windows.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func Run(sc []byte) {
2121
// Make a function ptr
2222
f := func() {}
2323

24-
// Change permsissions on f function ptr
24+
// Change permissions on f function ptr
2525
var oldfperms uint32
2626
if !VirtualProtect(unsafe.Pointer(*(**uintptr)(unsafe.Pointer(&f))), unsafe.Sizeof(uintptr(0)), uint32(0x40), unsafe.Pointer(&oldfperms)) {
2727
panic("Call to VirtualProtect failed!")
@@ -30,7 +30,7 @@ func Run(sc []byte) {
3030
// Override function ptr
3131
**(**uintptr)(unsafe.Pointer(&f)) = *(*uintptr)(unsafe.Pointer(&sc))
3232

33-
// Change permsissions on shellcode string data
33+
// Change permissions on shellcode string data
3434
var oldshellcodeperms uint32
3535
if !VirtualProtect(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(&sc))), uintptr(len(sc)), uint32(0x40), unsafe.Pointer(&oldshellcodeperms)) {
3636
panic("Call to VirtualProtect failed!")

0 commit comments

Comments
 (0)