# Shell Upgrade

Check python version

```
which python
```

Upgrade

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

Background process

```
Ctrl+Z
```

From Kali

```
stty raw -echo; fg
```

Finalize full shell

```
Export TERM=xterm
```

Barebones (No python, etc.)

```
script -qc /bin/bash /dev/null
stty raw -echo
```

Fix PATH

```
export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
```
