mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
remove logging
This commit is contained in:
parent
0f2d9aca95
commit
29aaec7188
@ -3,7 +3,6 @@ package com.metasploit.meterpreter;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Looper;
|
import android.os.Looper;
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import com.metasploit.meterpreter.android.check_root_android;
|
import com.metasploit.meterpreter.android.check_root_android;
|
||||||
import com.metasploit.meterpreter.android.dump_calllog_android;
|
import com.metasploit.meterpreter.android.dump_calllog_android;
|
||||||
@ -54,7 +53,6 @@ public class AndroidMeterpreter extends Meterpreter {
|
|||||||
final Class<?> activityThreadClass = Class.forName("android.app.ActivityThread");
|
final Class<?> activityThreadClass = Class.forName("android.app.ActivityThread");
|
||||||
final Method currentApplication = activityThreadClass.getMethod("currentApplication");
|
final Method currentApplication = activityThreadClass.getMethod("currentApplication");
|
||||||
context = (Context) currentApplication.invoke(null, (Object[]) null);
|
context = (Context) currentApplication.invoke(null, (Object[]) null);
|
||||||
Log.e(getClass().getName(), "context " + context);
|
|
||||||
if (context == null) {
|
if (context == null) {
|
||||||
Handler handler = new Handler(Looper.getMainLooper());
|
Handler handler = new Handler(Looper.getMainLooper());
|
||||||
handler.post(new Runnable() {
|
handler.post(new Runnable() {
|
||||||
@ -62,7 +60,6 @@ public class AndroidMeterpreter extends Meterpreter {
|
|||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
context = (Context) currentApplication.invoke(null, (Object[]) null);
|
context = (Context) currentApplication.invoke(null, (Object[]) null);
|
||||||
Log.e(getClass().getName(), "curcontext " + context);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user