dmayer / idb

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

IDB does not connect to device #102

Open rortega opened 6 years ago

rortega commented 6 years ago

I am attempting to connect to an Jailbroken device (iPhone 10.3.1 G0blin) but IDB never connects. Please advice. Thanks in advance

xxxx-mbp:~ xxxx$ idb /Users/xxxx/.rvm/gems/ruby-2.4.1/gems/plist4r-1.2.2/lib/plist4r/mixin/data_methods.rb:13: warning: constant ::Fixnum is deprecated /Users/xxxx/.rvm/gems/ruby-2.4.1/gems/plist4r-1.2.2/lib/plist4r/mixin/data_methods.rb:16: warning: constant ::Fixnum is deprecated /Users/xxxx/.rvm/gems/ruby-2.4.1/gems/plist4r-1.2.2/lib/plist4r/mixin/data_methods.rb:20: warning: constant ::Fixnum is deprecated /Users/xxxx/.idb/tmp/ [INFO] 2018-03-08 20:41:20 :: idb :: Loading configuration from /Users/xxxx/.idb/settings.yml QLayout: Cannot add null widget to QGridLayout/ QLayout: Cannot add null widget to QGridLayout/ [DEBUG] 2018-03-08 20:41:29 :: idb :: Connecting via USB [DEBUG] 2018-03-08 20:41:29 :: idb :: Using port 54200 for SSH forwarding [INFO] 2018-03-08 20:41:29 :: idb :: Launching SSH proxy on port 54200 waiting for connection [INFO] 2018-03-08 20:41:30 :: idb :: Establishing SSH Session for root@localhost:54200 accepted connection, fd = 4 waiting for connection Number of available devices == 1 Requesting connecion to device handle == 2 (serial: 65dxxx73953xxxxxxxxxxxxxc0a), port 22 run_ctos_loop: fd = 4 run_stoc_loop: fd = 4

rortega commented 6 years ago

This issue has been solved. IDB was unable to connect since g0blin does not have SSH on the standard port 22. Instead this jailbreak installs dropbear and uses port 2222 for SSH. The issue was resolved by configuring IDB to use 2222 instead of 22.