dmayer / idb

idb is a tool to simplify some common tasks for iOS pentesting and research
MIT License
942 stars 156 forks source link

Crashes when trying to get applications #68

Closed kunal-relan closed 7 years ago

kunal-relan commented 8 years ago

Hey , the application crashes when i click on the button to fetch the list of applciations sending you the log snippet maybe could be of some help

[INFO] 2016-06-26 01:00:13 :: idb :: Parsing plist file.. [ERROR] 2016-06-26 01:00:13 :: idb :: Info.plist not found. [ERROR] 2016-06-26 01:00:13 :: idb :: Info.plist not found. [ERROR] 2016-06-26 01:00:13 :: idb :: Error getting plist file . [DEBUG] 2016-06-26 01:00:13 :: idb :: Exception Details: undefined methodsub' for nil:NilClass. [DEBUG] 2016-06-26 01:00:13 :: idb :: Backtrace: /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/lib/app.rb:255:in cache_file' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/lib/app.rb:271:inparse_info_plist' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/lib/app.rb:17:in initialize' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:76:innew' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:76:in block in refresh_app_list' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:75:ineach' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:75:in refresh_app_list' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:33:ininitialize' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/global_app_details_group_box.rb:43:in new' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/global_app_details_group_box.rb:43:inblock in initialize' /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2470:in invoke' /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:inqt_metacall' /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in method_missing' /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:inexec' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/idb.rb:285:in run' /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/bin/idb:4:in<top (required)>' /usr/local/bin/idb:23:in load' /usr/local/bin/idb:23:in

'. /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/lib/app.rb:24:in initialize': undefined methodbundle_identifier' for nil:NilClass (NoMethodError) from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:76:in new' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:76:inblock in refresh_app_list' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:75:in each' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:75:inrefresh_app_list' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/app_list_dialog.rb:33:in initialize' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/global_app_details_group_box.rb:43:innew' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/gui/global_app_details_group_box.rb:43:in block in initialize' from /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:2470:ininvoke' from /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in qt_metacall' from /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:inmethod_missing' from /usr/local/lib/ruby/gems/2.3.0/gems/qtbindings-4.8.6.2/lib/Qt/qtruby4.rb:479:in exec' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/lib/idb.rb:285:inrun' from /usr/local/lib/ruby/gems/2.3.0/gems/idb-2.8.5/bin/idb:4:in <top (required)>' from /usr/local/bin/idb:23:inload' from /usr/local/bin/idb:23:in <main>' recv failed: Resource temporarily unavailable

tomekr commented 8 years ago

Hi Kunal,

Not sure if you ended up resolving this issue but if not, would you have some more information on the iOS version you were running on?

According to the exception output you pasted, in the line "Error getting plist file .", it looks like there was an issue either getting the devices application directory or finding a valid plist file for a given app. As can be seen here, https://github.com/dmayer/idb/blob/master/lib/lib/app.rb#L273, there should be some file path being printed there and there isn't.

Otherwise, does the /private/var/mobile/Containers/Bundle/Application directory exist on your device? If so, are there directories within that folder?

dmayer commented 7 years ago

closing this due to lack of feedback.