diff --git a/term/src/main/java/com/offsec/nhterm/ShellType.java b/term/src/main/java/com/offsec/nhterm/ShellType.java index f6f7153..235e766 100644 --- a/term/src/main/java/com/offsec/nhterm/ShellType.java +++ b/term/src/main/java/com/offsec/nhterm/ShellType.java @@ -12,8 +12,8 @@ import java.io.InputStreamReader; class ShellType { static final String ANDROID_SHELL = whichCMD("sh") + " -"; static final String ANDROID_SU_SHELL = whichCMD("su"); - static final String KALI_SHELL = whichCMD("su") + " -c /system/bin/bootkali"; - static final String KALI_LOGIN_SHELL = whichCMD("su") +" -c /system/bin/bootkali_login"; + static final String KALI_SHELL = whichCMD("su") + " -c /data/data/com.offsec.nethunter/files/scripts/bootkali"; + static final String KALI_LOGIN_SHELL = whichCMD("su") +" -c /data/data/com.offsec.nethunter/files/scripts/bootkali_login"; private static String whichCMD(String theCmd){ String output = null; diff --git a/term/src/main/java/com/offsec/nhterm/Term.java b/term/src/main/java/com/offsec/nhterm/Term.java index e5f0b1f..db3c693 100644 --- a/term/src/main/java/com/offsec/nhterm/Term.java +++ b/term/src/main/java/com/offsec/nhterm/Term.java @@ -1003,7 +1003,7 @@ public class Term extends Activity implements UpdateCallback, SharedPreferences. String msg = ""; - if (Objects.equals(text, "/system/bin/bootkali_login")){ + if (Objects.equals(text, "/data/data/com.offsec.nethunter/files/scripts/bootkali")){ msg = "Please run Nethunter Application to generate!"; } else if (Objects.equals(text, "/data/local/nhsystem/kali-armhf")){ msg = "Missing chroot. You need to install from Chroot Manager";