Skip to content

Commit

Permalink
Release v0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Emery Ferrari committed Feb 20, 2020
1 parent e601fab commit 7456d3a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/com/emeryferrari/iosrr/RRConst.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.emeryferrari.iosrr;
public class RRConst {
private RRConst() {}
public static final String VERSION = "0.3.2";
public static final String VERSION = "0.3.3";
}
22 changes: 13 additions & 9 deletions src/com/emeryferrari/iosrr/RestrictionsRecovery.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,19 @@ private static void calculate(String key, String salt) throws NoSuchAlgorithmExc
System.exit(0);
}
private static void downloadViaSSH(String ip, int port, String password) throws IOException {
SSHClient ssh = new SSHClient();
ssh.addHostKeyVerifier(new PromiscuousVerifier());
ssh.loadKnownHosts();
ssh.connect(ip, port);
ssh.authPassword("root", password);
ssh.newSCPFileTransfer().download("/private/var/mobile/Library/Preferences/com.apple.restrictionspassword.plist", "password.plist");
ssh.disconnect();
ssh.close();
System.exit(0);
if (RestrictionsRecovery.identifyHostOS() != OperatingSystem.OTHER) {
SSHClient ssh = new SSHClient();
ssh.addHostKeyVerifier(new PromiscuousVerifier());
ssh.loadKnownHosts();
ssh.connect(ip, port);
ssh.authPassword("root", password);
ssh.newSCPFileTransfer().download("/private/var/mobile/Library/Preferences/com.apple.restrictionspassword.plist", "password.plist");
ssh.disconnect();
ssh.close();
System.exit(0);
} else {
RestrictionsRecovery.printUnsupportedOS();
}
}
private static OperatingSystem identifyHostOS() {
String os = System.getProperty("os.name").toLowerCase();
Expand Down

0 comments on commit 7456d3a

Please sign in to comment.