Skip to content

Commit

Permalink
add ndkstager to data/exploits
Browse files Browse the repository at this point in the history
  • Loading branch information
timwr committed Oct 5, 2018
1 parent dbfe675 commit 4a4c759
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Binary file not shown.
Binary file added data/exploits/CVE-2012-6636/mips/libndkstager.so
Binary file not shown.
Binary file added data/exploits/CVE-2012-6636/x86/libndkstager.so
Binary file not shown.
3 changes: 2 additions & 1 deletion lib/msf/core/exploit/android.rb
Expand Up @@ -114,7 +114,8 @@ def linux_exe_js(arch)

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

Expand Down

0 comments on commit 4a4c759

Please sign in to comment.