@@ -190,15 +190,12 @@ - (void) dismissKeyboard {
190190
191191int populateVulnerableReposFromSignatures () {
192192 SecurityRiskRepos = [[NSMutableArray alloc ] init ];
193- NSString *textFilePath = @" /var/mobile/iSecureOS/repo-signatures" ;
194- NSError *error;
195- NSString *fileContentsUrls = [NSString stringWithContentsOfFile: textFilePath encoding: NSUTF8StringEncoding error: &error];
196- NSData *decodedData = [[NSData alloc ] initWithBase64EncodedString: fileContentsUrls options: NSDataBase64DecodingIgnoreUnknownCharacters ];
197- NSString *base64DecodedString = [[NSString alloc ] initWithData: decodedData encoding: NSUTF8StringEncoding];
193+ NSString *repoDefinitionsPath = @" /var/mobile/iSecureOS/repo-signatures" ;
194+ NSError *repoFileErr;
195+ NSString *fileContentsUrls = [NSString stringWithContentsOfFile: repoDefinitionsPath encoding: NSUTF8StringEncoding error: &repoFileErr];
196+ SecurityRiskRepos = [[fileContentsUrls componentsSeparatedByString: @" \n " ] mutableCopy ];
198197
199- SecurityRiskRepos = [[base64DecodedString componentsSeparatedByString: @" \n " ] mutableCopy ];
200- NSLog (@" %@ " , base64DecodedString);
201- if (error == nil ) {
198+ if (repoFileErr == nil ) {
202199 printf (" Successfully loaded Repo Signatures into iSecureOS\n " );
203200 return 0 ;
204201 } else {
@@ -628,6 +625,7 @@ void performSuspectRepoScanning() {
628625 printf (" [ i ] You do not seem to have problematic repos installed. GREAT!\n\n " );
629626 }
630627}
628+
631629int execprog (const char *prog, const char * args[]) {
632630 if (args == NULL ) {
633631 args = (const char **)&(const char *[]){ prog, NULL };
@@ -662,6 +660,12 @@ int execprog(const char *prog, const char* args[]) {
662660 return 0 ;
663661}
664662
663+ void respringDeviceNow () {
664+ const char * arguments = " backboardd" ;
665+ execprog (" killall" , &arguments);
666+ return ;
667+ }
668+
665669int checkActiveSSHConnection () {
666670 // Check if an active root connection is found
667671 int rootAccess = warnaxActiveSSHConnection (" sshd: root@ttys" );
0 commit comments