diff options
author | toni <matzeton@googlemail.com> | 2014-06-29 20:52:59 +0200 |
---|---|---|
committer | toni <matzeton@googlemail.com> | 2014-06-29 20:52:59 +0200 |
commit | f2371a6b48d7f76fc07564f4e1e4d64e643a897e (patch) | |
tree | 91d7f779092ee6fcbbce773e8742ca90b4717bdc /Makefile | |
parent | 7b891a0d5e83dd9c3295397e3af5e78ec5d3f410 (diff) |
- makefile improved
- tcp recv() based overrun works
- automatic exploit && shell spawning script
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,13 +1,22 @@ RM := rm CC := gcc STRIP := strip -CFLAGS = -Wall -g3 +CFLAGS = -Wall -g OCFLAGS = -m32 -mpreferred-stack-boundary=2 -z execstack -fno-stack-protector TARGETS = $(patsubst %.c,%.o,$(wildcard *.c)) all: $(TARGETS) post-build post-build: + @read -p "disable protection stuff? (y/N) " answ; \ + if [ "x$$answ" != "xy" ]; then \ + echo "abort .."; \ + return 0; \ + else \ + ./disable_prot.sh; \ + fi + +disable-prot: if [ `cat /proc/sys/kernel/randomize_va_space` -eq 0 ]; then \ echo "not necessary to run ./disable_prot.sh"; \ else \ @@ -16,7 +25,6 @@ post-build: %.o : %.c $(CC) $(CFLAGS) $(OCFLAGS) -o $(patsubst %.o,%,$@) $< - $(STRIP) $(patsubst %.o,%,$@) clean: $(RM) -f $(patsubst %.o,%,$(TARGETS)) |