From f8f764aefca7931a82ea943cf74ee6299a80a47e Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 19 Jan 2017 14:52:30 +0700 Subject: [PATCH] fix #7617, invalid register when hooking smali code --- lib/msf/core/payload/apk.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/payload/apk.rb b/lib/msf/core/payload/apk.rb index 7a6c29c970..131fbc9345 100644 --- a/lib/msf/core/payload/apk.rb +++ b/lib/msf/core/payload/apk.rb @@ -227,7 +227,7 @@ class Msf::Payload::Apk end payloadhook = entrypoint + %Q^ - invoke-static {p0}, L#{package_slash}/MainService;->startService(Landroid/content/Context;)V + invoke-static {}, L#{package_slash}/MainService;->start()V ^ hookedsmali = activitysmali.gsub(entrypoint, payloadhook)