Disable --no-ibss, pwndfu works on some devices

This commit is contained in:
Cryptiiiic 2021-08-12 23:26:01 -07:00
parent 1092eb2e68
commit ae8f3b9a08
No known key found for this signature in database
GPG key ID: 6027B509EFE3A76B
2 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View file

@ -23,3 +23,4 @@ missing
*/futurerestore*
stamp-h1
xcuserdata
.build_complete

View file

@ -517,7 +517,7 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, string bootargs){
info("Booting iBSS, waiting for device to reconnect...\n");
mutex_lock(&_client->device_event_mutex);
cond_wait_timeout(&_client->device_event_cond, &_client->device_event_mutex, 10000);
retassure(((_client->mode->index == MODE_DFU) || (mutex_unlock(&_client->device_event_mutex),0)), "Device did not reconnect. Possibly invalid iBSS. Reset device and try again");
retassure(((_client->mode->index == MODE_RECOVERY) || (mutex_unlock(&_client->device_event_mutex),0)), "Device did not reconnect. Possibly invalid iBSS. Reset device and try again");
mutex_unlock(&_client->device_event_mutex);
retassure(((dfu_client_new(_client) == IRECV_E_SUCCESS) || (mutex_unlock(&_client->device_event_mutex),0)), "Failed to connect to device in DFU Mode!");
mutex_lock(&_client->device_event_mutex);
@ -1137,7 +1137,9 @@ void futurerestore::doRestore(const char *ipsw){
if (_enterPwnRecoveryRequested){
retassure(getDeviceMode(true) == MODE_DFU, "unexpected device mode\n");
if(_noIBSS)
enterPwnRecovery2(build_identity);
info("RIPBOZO W.I.P. no eta bet patient!\n");
exit(1);
// enterPwnRecovery2(build_identity);
else
enterPwnRecovery(build_identity);
}