Skip to content

Commit 8e2de6d

Browse files
committed
Updates js_property_spray documentation
After many tests, it turns out address 0x0c0d2020 is the most consistent location acorss various IE versions. For dev purposes, it's rather important to have this documented somewhere. Thanks to corelanc0d3r for the data.
1 parent b34c3fb commit 8e2de6d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/msf/core/exploit/http/server.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,9 @@ def js_mstime_malloc
924924
#
925925
# This heap spray technique takes advantage of MSHTML's SetStringProperty (or SetProperty)
926926
# function to trigger allocations by ntdll!RtlAllocateHeap. It is based on Corelan's
927-
# publication on "DEPS – Precise Heap Spray on Firefox and IE10".
927+
# publication on "DEPS – Precise Heap Spray on Firefox and IE10". In IE, the shellcode
928+
# should land at address 0x0c0d2020, as this is the most consistent location across
929+
# various versions.
928930
#
929931
# The "sprayHeap" JavaScript function supports the following arguments:
930932
# shellcode => The shellcode to spray in JavaScript. Note: Avoid null bytes.

0 commit comments

Comments
 (0)