Page 1 of 1

-bash-3.2#

PostPosted: Mon Apr 10, 2017 4:36 pm
by iosusr
SSHing into my apple tv 4 on 10.1

ssh root@192.168.1.5
The authenticity of host '192.168.1.5 (192.168.1.5)' can't be established.
ECDSA key fingerprint is SHA256:XXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.5' (ECDSA) to the list of known hosts.
root@192.168.1.5's password:
-bash-3.2#

------------------------

SSHing into my iPhone 6s on 10.2
ssh root@192.168.1.5
The authenticity of host '192.168.1.3 (192.168.1.3)' can't be established.
ECDSA key fingerprint is SHA256:XXXXXXXXXXXXX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.3' (ECDSA) to the list of known hosts.
root@192.168.1.3's password:
iPhone6s-root:

I'm missing something here and I'm very confused, i dont understand why I'm getting bash, when i get bash i can't move around in the filesystem

Re: -bash-3.2#

PostPosted: Tue Apr 11, 2017 12:51 pm
by morpheus
it's just the prompt. You're still in a shell.
PLEASE READ THE FAQ DETAILING HOW TO WORK IN THE SHELL. You can move around, but anything but the built-ins are in /tmp/bin , etc.. so set your PATH= accordingly. When you are CERTAIN you know what you are doing, you can move files from /tmp/bin to /bin, including dropbear itself (to /usr/local/bin) so that they will survive /tmp purging that some people were complaining about.

CAVEAT: IF YOU DONT KNOW WHAT YOU ARE DOING AND YOU MOVE FILES, YOU *WILL* BRICK YOUR ATV. And since the 10.1.1 JB I currently have requires a zero day, it will NOT be made public anytime soon.

Re: -bash-3.2#

PostPosted: Tue Apr 11, 2017 11:34 pm
by iosusr
Where in the FAQ does it have details about how to work in the shell?

Re: -bash-3.2#

PostPosted: Wed Apr 12, 2017 2:47 pm
by Siguza
morpheus wrote:So what's in the IPA? A modified 64-bit only bootstrap.tar, containing /bin/sh -> /bin/bash, Some of my tools (in /usr/local/bin), dropbear (a free standing ssh daemon, with its keys in /etc/dropbear), and a few select binaries. Dropbear has been modified to run from /tmp, and the entire tar opens up in /tmp as well, so as to negate any remote chance of bricking.

How do I add more? Two options: Either extract bootstrap.tar to some directory, add whatever you want, and repackage into .tar and into the ipa, or - once you are in the JB:

cd /tmp

and then /tmp/bin/ls your way around, followed by /tmp/bin/mv ... files to their usual locations, taking care not to overwrite any system binaries.

alternatively: you can

Code: Select all
export PATH=/tmp/bin:/tmp/usr/bin:/tmp/usr/local/bin:/tmp/sbin

which makes your life real easy.