Add a simple Makefile for ease of compiling and teardown

This commit is contained in:
burrches
2019-08-22 20:03:05 -04:00
parent 5e33d29a33
commit 64168381a6
2 changed files with 19 additions and 0 deletions

8
Makefile Normal file
View File

@@ -0,0 +1,8 @@
# Small makefile to make compiling watershell easier to do
# TODO implement C and Linker FLAGS if desired
watershell:
gcc watershell.c -o $@
clean:
rm watershell *.o

View File

@@ -18,3 +18,14 @@ You can hard code values at the top of watershell.c or you can use command line
- DEBUG: verbose logging output to display to the user running the binary - DEBUG: verbose logging output to display to the user running the binary
If promiscuous mode is on any traffic that goes over the network that is UDP and matches the spectfied port will trigger the program, for example sending UDP traffic with a payload of run:reboot to 8.8.8.8 will reboot the listening machine if it is on the same network as the originator. This is useful if you don't want to make direct contact with the machine but still want to send it commands. The status reply will have a spoofed source of the destination host you specified. If promiscuous mode is on any traffic that goes over the network that is UDP and matches the spectfied port will trigger the program, for example sending UDP traffic with a payload of run:reboot to 8.8.8.8 will reboot the listening machine if it is on the same network as the originator. This is useful if you don't want to make direct contact with the machine but still want to send it commands. The status reply will have a spoofed source of the destination host you specified.
Compiling
---------
Compile by hand or use the Makefile.
```
gcc watershell.c -o watershell
# OR
make
# OR
make watershell
```