diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 24 | ||||
| -rw-r--r-- | main.c | 8 |
3 files changed, 33 insertions, 0 deletions
@@ -1,2 +1,3 @@ *.o /taint-info +*.exe @@ -1,4 +1,11 @@ CC = gcc +RM = rm +RMFLAGS = -f + +ifeq ($(OS),Windows_NT) + RM = del + RMFLAGS = /F /Q +endif CFLAGS = -c LDFLAGS = @@ -7,6 +14,23 @@ LIBS = -lm OBJS = main.o +.PHONY: all debug release clean + +all: debug + +debug: CFLAGS += -g -Og +debug: LDFLAGS += -g -Og +debug: taint-info + +release: CFLAGS += -O3 -s +release: LDFLAGS += -O3 -s +release: taint-info + +clean: + -$(RM) $(RMFLAGS) $(OBJS) + -$(RM) $(RMFLAGS) taint-info.exe + -$(RM) $(RMFLAGS) taint-info + %.o: %.c $(CC) $(CFLAGS) -o $@ $< @@ -62,6 +62,7 @@ void check_flags(int taintval) { } void check_proc() { +#ifndef _WIN32 char buf[2048]; FILE* fh; size_t size; @@ -85,6 +86,13 @@ void check_proc() { // Check the taint check_flags(taintval); +#endif +#ifdef _WIN32 + printf("Kernel is tainted :(\n"); + printf("Taint value: 133742069\n"); + printf("Taint flags: \n"); + printf("WINDOWS: You are running Windows, you fucking noob.\n"); +#endif } void check_flags_cli(char* flagstr) { |
