From 64168381a6af35e1250acb97e22bfa621c3bffd3 Mon Sep 17 00:00:00 2001 From: burrches Date: Thu, 22 Aug 2019 20:03:05 -0400 Subject: [PATCH] Add a simple Makefile for ease of compiling and teardown --- Makefile | 8 ++++++++ README.md | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..63538cc --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index a888bc5..787d748 100644 --- a/README.md +++ b/README.md @@ -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 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 +```