Skip to content

Commit b65f467

Browse files
committed
Land rapid7#10851, add ndkstager to data/exploits
2 parents e992b63 + 4a4c759 commit b65f467

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.

lib/msf/core/exploit/android.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def linux_exe_js(arch)
114114

115115
# The NDK stager is used to launch a hidden APK
116116
def ndkstager(stagename, arch)
117-
data = MetasploitPayloads.read('android', 'libs', NDK_FILES[arch] || arch, 'libndkstager.so')
117+
stager_file = File.join( Msf::Config.data_directory, "exploits", "CVE-2012-6636", NDK_FILES[arch] || arch, 'libndkstager.so')
118+
data = File.read(stager_file, {:mode => 'rb'})
118119
data.gsub!('PLOAD', stagename)
119120
end
120121

0 commit comments

Comments
 (0)