34 lines
652 B
Markdown
34 lines
652 B
Markdown
# rshell
|
|
|
|
Nothing to worry about.
|
|
|
|
## rhsell.py
|
|
|
|
To run the example execute the rshell skript.
|
|
|
|
```bash
|
|
$ python rshell.py
|
|
```
|
|
|
|
It will open a reverse shell on port 31337 on the local system. You can connect
|
|
to it using
|
|
|
|
```bash
|
|
$ nc 0.0.0.0 31337
|
|
```
|
|
|
|
## self_copy_test.py
|
|
|
|
Code snippet that searches files based on a search string and copies its
|
|
content into all matched files. There is a local `victims` folder for testing
|
|
purposes.
|
|
|
|
## Putting things together
|
|
|
|
```bash
|
|
$ python self_copy_rshell.py
|
|
```
|
|
|
|
Runs code that seraches for victim files and deploys a appends the reverse
|
|
shell snippet. The example only searches the local `victims` folder.
|