diff options
author | Aaron Ball <nullspoon@iohq.net> | 2016-04-03 12:35:36 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2016-04-03 12:39:29 -0600 |
commit | 9c9a3d1d62b1876c8969ce06b1a9abd2264ac4bd (patch) | |
tree | 3c8b6861021995b369a81c04fa6ed5ce586a37ca /Makefile | |
download | remoteinfo-master.tar.gz remoteinfo-master.tar.xz |
Currently parses the query string for the key "q", and outputs
REMOTE_ADDR if q == ip, or HTTP_USER_AGENT if q == agent.
Also includes a lot of error handling in case the user tries to cause a
buffer overflow of qs. Contains a set default of 512 bytes for each
query string key and value.
Also note that this commit contains a lot of useless experimental code
that needs to be cleaned up and/or broken out into files other than
main.c (yick).
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8562b2d --- /dev/null +++ b/Makefile @@ -0,0 +1,8 @@ +out=info.cgi + +all: + cc $(dbg) src/main.c -o $(out) + +debug: + make all dbg="-g" + |