From 4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Mon, 9 May 2016 16:08:31 -0400 Subject: Starting working on showing bugs --- ws2a/showbug.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ws2a/showbug.c (limited to 'ws2a/showbug.c') diff --git a/ws2a/showbug.c b/ws2a/showbug.c new file mode 100644 index 0000000..b8c46e2 --- /dev/null +++ b/ws2a/showbug.c @@ -0,0 +1,13 @@ +#include +#include +#include +#include + +int main(){ + char* data = getenv("QUERY_STRING"); + //char data[20] = "?id=1"; + char* hardip = getenv("REMOTE_ADDR"); + printf("%s%c%c\n", + "Content-Type:text/html;charset=iso-8859-1",13,10); + printf("Data:%s",data); +} -- cgit v1.2.3-70-g09d2