rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
34.19k stars 13.99k forks source link

Cydia_default_ssh module failing to maintain shell #9094

Closed tbonegrady closed 4 years ago

tbonegrady commented 7 years ago

Steps to reproduce

So I'm performing a pentest at a local company fond of apple products thats overly smug and I by chance found a jailbroken one with default password. So I decided to test this module out. It does spawn a shell and session but the shell dies.

How Did you do it

set SSH_TIMEOUT 60
set WfsDelay 2
set VERBOSE true
set SSH_DEBUG true
set RHOST [IP Address]
exploit
msf exploit(cydia_default_ssh) > exploit

[*] 192.168.1.xx:22 - Attempt to login as 'root' with password 'alpine'
D, [2017-10-17T10:42:58.141711 #2469] DEBUG -- net.ssh.transport.session[650a2e8]: establishing connection to 192.168.1.xx:xx through proxy
[*] 192.168.1.xx:22 - Attempt to login as 'mobile' with password 'dottie'
D, [2017-10-17T10:43:01.217229 #2469] DEBUG -- net.ssh.transport.session[64ebc6c]: establishing connection to 192.168.1.xx:xx through proxy
[*] Exploit completed, but no session was created.
msf exploit(cydia_default_ssh) > exploit -j
[*] Exploit running as background job 0.

[*] 192.168.1.xx:xx - Attempt to login as 'root' with password 'alpine'
D, [2017-10-17T10:43:49.429982 #2469] DEBUG -- net.ssh.transport.session[625a2c8]: establishing connection to 192.168.1,xx:xx through proxy
msf exploit(cydia_default_ssh) > D, [2017-10-17T10:43:49.579728 #2469] DEBUG -- net.ssh.transport.session[625a2c8]: connection established
I, [2017-10-17T10:43:49.580033 #2469]  INFO -- net.ssh.transport.server_version[6254a80]: negotiating protocol version
D, [2017-10-17T10:43:49.580116 #2469] DEBUG -- net.ssh.transport.server_version[6254a80]: local is `SSH-2.0-Ruby/Net::SSH_4.2.0 x86_64-linux'
D, [2017-10-17T10:43:49.857115 #2469] DEBUG -- net.ssh.transport.server_version[6254a80]: remote is `SSH-2.0-OpenSSH_6.7'
I, [2017-10-17T10:43:49.857786 #2469]  INFO -- net.ssh.transport.algorithms[624d1a4]: sending KEXINIT
D, [2017-10-17T10:43:49.858309 #2469] DEBUG -- socket[6256e84]: queueing packet nr 0 type 20 len 1164
D, [2017-10-17T10:43:49.858639 #2469] DEBUG -- socket[6256e84]: sent 1168 bytes
D, [2017-10-17T10:43:49.878080 #2469] DEBUG -- socket[6256e84]: read 832 bytes
D, [2017-10-17T10:43:49.878190 #2469] DEBUG -- socket[6256e84]: received packet nr 0 type 20 len 828
I, [2017-10-17T10:43:49.878252 #2469]  INFO -- net.ssh.transport.algorithms[624d1a4]: got KEXINIT from server
I, [2017-10-17T10:43:49.878375 #2469]  INFO -- net.ssh.transport.algorithms[624d1a4]: negotiating algorithms
D, [2017-10-17T10:43:49.878496 #2469] DEBUG -- net.ssh.transport.algorithms[624d1a4]: negotiated:
* kex: diffie-hellman-group14-sha1
* host_key: ssh-rsa
* encryption_server: aes128-ctr
* encryption_client: aes128-ctr
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client: 
* language_server: 
D, [2017-10-17T10:43:49.878526 #2469] DEBUG -- net.ssh.transport.algorithms[624d1a4]: exchanging keys
D, [2017-10-17T10:43:49.884411 #2469] DEBUG -- socket[6256e84]: queueing packet nr 1 type 30 len 268
D, [2017-10-17T10:43:49.884548 #2469] DEBUG -- socket[6256e84]: sent 272 bytes
D, [2017-10-17T10:43:50.098075 #2469] DEBUG -- socket[6256e84]: read 848 bytes
D, [2017-10-17T10:43:50.098333 #2469] DEBUG -- socket[6256e84]: received packet nr 1 type 31 len 828
D, [2017-10-17T10:43:50.100973 #2469] DEBUG -- socket[6256e84]: queueing packet nr 2 type 21 len 20
D, [2017-10-17T10:43:50.101186 #2469] DEBUG -- socket[6256e84]: sent 24 bytes
D, [2017-10-17T10:43:50.101333 #2469] DEBUG -- socket[6256e84]: received packet nr 2 type 21 len 12
D, [2017-10-17T10:43:50.102055 #2469] DEBUG -- net.ssh.authentication.session[604f4ec]: beginning authentication of `root'
D, [2017-10-17T10:43:50.102451 #2469] DEBUG -- socket[6256e84]: queueing packet nr 3 type 5 len 28
D, [2017-10-17T10:43:50.102577 #2469] DEBUG -- socket[6256e84]: sent 52 bytes
D, [2017-10-17T10:43:50.160117 #2469] DEBUG -- socket[6256e84]: read 52 bytes
D, [2017-10-17T10:43:50.160408 #2469] DEBUG -- socket[6256e84]: received packet nr 3 type 6 len 28
D, [2017-10-17T10:43:50.160729 #2469] DEBUG -- net.ssh.authentication.session[604f4ec]: trying password
D, [2017-10-17T10:43:50.161094 #2469] DEBUG -- socket[6256e84]: queueing packet nr 4 type 50 len 60
D, [2017-10-17T10:43:50.161254 #2469] DEBUG -- socket[6256e84]: sent 84 bytes
D, [2017-10-17T10:43:50.196139 #2469] DEBUG -- socket[6256e84]: read 36 bytes
D, [2017-10-17T10:43:50.196403 #2469] DEBUG -- socket[6256e84]: received packet nr 4 type 52 len 12
D, [2017-10-17T10:43:50.196580 #2469] DEBUG -- net.ssh.authentication.methods.password[6047044]: password succeeded
[+] 192.168.1.xx:22 - Login Successful ('root:alpine)
D, [2017-10-17T10:43:50.199668 #2469] DEBUG -- socket[6256e84]: queueing packet nr 5 type 90 len 44
D, [2017-10-17T10:43:50.200442 #2469] DEBUG -- socket[6256e84]: sent 68 bytes
D, [2017-10-17T10:43:50.210514 #2469] DEBUG -- socket[6256e84]: read 52 bytes
D, [2017-10-17T10:43:50.211015 #2469] DEBUG -- socket[6256e84]: received packet nr 5 type 91 len 28
I, [2017-10-17T10:43:50.211231 #2469]  INFO -- net.ssh.connection.session[60407f8]: channel_open_confirmation: 0 0 0 32768
I, [2017-10-17T10:43:50.211366 #2469]  INFO -- net.ssh.connection.channel[6031348]: sending channel request "exec"
D, [2017-10-17T10:43:50.211706 #2469] DEBUG -- socket[6256e84]: queueing packet nr 6 type 98 len 44
D, [2017-10-17T10:43:50.211971 #2469] DEBUG -- socket[6256e84]: sent 68 bytes
D, [2017-10-17T10:43:50.231823 #2469] DEBUG -- socket[6256e84]: read 88 bytes
D, [2017-10-17T10:43:50.232240 #2469] DEBUG -- socket[6256e84]: received packet nr 6 type 93 len 28
I, [2017-10-17T10:43:50.232445 #2469]  INFO -- net.ssh.connection.session[60407f8]: channel_window_adjust: 0 +2097152
D, [2017-10-17T10:43:50.232635 #2469] DEBUG -- socket[6256e84]: received packet nr 7 type 99 len 12
I, [2017-10-17T10:43:50.232749 #2469]  INFO -- net.ssh.connection.session[60407f8]: channel_success: 0
D, [2017-10-17T10:43:54.239996 #2469] DEBUG -- socket[6256e84]: queueing packet nr 7 type 94 len 44
D, [2017-10-17T10:43:54.240571 #2469] DEBUG -- socket[6256e84]: sent 68 bytes
D, [2017-10-17T10:43:54.288044 #2469] DEBUG -- socket[6256e84]: read 68 bytes
D, [2017-10-17T10:43:54.288549 #2469] DEBUG -- socket[6256e84]: received packet nr 8 type 94 len 44
I, [2017-10-17T10:43:54.288708 #2469]  INFO -- net.ssh.connection.session[60407f8]: channel_data: 0 17b
[*] Found shell.
[*] Command shell session 1 opened (192.168.1.xx:xxxxx -> 192.168.1.xx:xx) at 2017-10-17 10:43:54 -0700
I, [2017-10-17T10:43:54.790213 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.790463 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.790812 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.790954 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791084 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791206 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791329 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791449 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791685 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791817 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.791943 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792072 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792203 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792341 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792471 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792594 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792725 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792852 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.792985 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793123 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793256 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793432 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793578 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793707 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793845 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.793987 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.794118 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.794252 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.794391 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.794608 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.794760 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.794903 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795043 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795178 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795317 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795458 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795589 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795728 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.795865 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796013 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796147 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796285 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796423 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796603 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796750 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.796894 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797035 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797177 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797325 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797497 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797646 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797788 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.797938 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.798079 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.798262 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.798409 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.798578 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.798728 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.798909 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.799069 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.799218 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.799371 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.799524 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.799673 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.799829 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800022 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800171 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800332 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800492 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800653 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800810 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.800965 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.801119 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.801305 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.801480 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.801642 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.801797 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.801958 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802155 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802327 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802488 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802620 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802699 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802774 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802853 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.802956 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803036 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803114 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803192 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803268 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803350 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803425 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803505 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803588 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803669 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803753 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803859 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803925 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.803992 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804058 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804128 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804195 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804262 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804328 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804394 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804464 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804556 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804642 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804728 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804807 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804860 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804910 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.804960 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805009 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805060 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805110 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805199 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805464 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805531 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805644 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.805704 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
[*] 192.168.1.xx - Command shell session 1 closed.  Reason: Died from EOFError
I, [2017-10-17T10:43:54.806176 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806270 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806318 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806353 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806386 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806436 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806469 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806501 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806569 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806606 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806640 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806672 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806723 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806756 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806789 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806835 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806881 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806937 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.806982 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807037 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807105 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807151 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807197 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807244 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807292 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807339 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807403 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807451 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807497 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807545 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807605 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807655 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807705 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807753 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807818 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807864 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807899 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807952 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.807989 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808024 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808062 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808116 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808154 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808191 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808228 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808265 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808303 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808351 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808389 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808426 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808487 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808526 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808565 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808604 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808643 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808681 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808732 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808774 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808814 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808853 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808900 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808941 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.808988 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809037 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809078 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809120 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809163 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809222 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809264 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809306 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809350 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809391 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809433 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809475 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809527 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809569 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809612 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809665 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809709 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809754 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809797 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809852 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809898 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809940 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.809995 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810041 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810085 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810129 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810173 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810231 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810276 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810322 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810379 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810424 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810470 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810529 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810587 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810634 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810681 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810738 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810785 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810833 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810879 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810936 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.810985 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811032 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811094 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811143 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811190 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811238 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811308 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811355 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811405 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
I, [2017-10-17T10:43:54.811453 #2469]  INFO -- net.ssh.connection.session[60407f8]: closing remaining channels (1 open)
Segmentation fault

This section should also tell us any relevant information about the environment; for example, if an exploit that used to work is failing, tell us the victim operating system and service versions.

Expected behavior

What should happen?

Current behavior

What happens instead?

The shell spawns and makes a session but then the shell dies

You might also want to check the last ~1k lines of /opt/metasploit/apps/pro/engine/config/logs/framework.log or ~/.msf4/logs/framework.log for relevant stack traces

Their wasnt anything regarding the module in the log files Backbox linux only has metasploit-framework installed

System stuff

Metasploit version

Framework: 4.16.12-dev- Console : 4.16.12-dev-

Get this with the version command in msfconsole (or git log -1 --pretty=oneline for a source install).

I installed Metasploit with:

OS

What OS are you running Metasploit on? Backbox Linux

jmartin-tech commented 7 years ago

It might be worth attempting to login to the device directly with SSH as that is all this module is intended to do. I am guessing that device may be newer and the path to the command shell is not /bin/sh as the module expects.

tbonegrady commented 7 years ago

I have tried that the device is a ipad mini 1st gen

tbonegrady commented 7 years ago

Should I go into the module and change it or leave it be?

jmartin-tech commented 7 years ago

If you have a fix, we are happy to review a PR. @wvu-r7 seems to remember something about Net::SSH::CommandStream implements an exec channel request, but no shell channel request

ccondon-r7 commented 4 years ago

Hi there! We're closing this because it hasn't been active in several years. If you'd like to re-confirm the bug and re-open it, feel free to do so!