Skip to content

Commit

Permalink
rename exploit to 0xdeadbeef
Browse files Browse the repository at this point in the history
  • Loading branch information
scumjr committed Oct 22, 2016
1 parent b2413ce commit cbae3f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.o
*.h
payload
dirtyvds0
0xdeadbeef
File renamed without changes.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
CFLAGS := -Wall
LDFLAGS := -lpthread

all: dirtyvds0
all: 0xdeadbeef

dirtyvds0: dirtyvds0.o
0xdeadbeef: 0xdeadbeef.o
$(CC) -o $@ $^ $(LDFLAGS)

dirtyvds0.o: dirtyvds0.c payload.h
0xdeadbeef.o: 0xdeadbeef.c payload.h
$(CC) -o $@ -c $< $(CFLAGS)

payload.h: payload
Expand All @@ -16,4 +16,4 @@ payload: payload.s
nasm -f bin -o $@ $^

clean:
rm -f *.o *.h dirtyvds0
rm -f *.o *.h 0xdeadbeef
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 0xdeadbeef

PoC for [Dirty COW](http://dirtycow.ninja/) (CVE-2016-5195).

This PoC relies on ptrace (instead of `/proc/self/mem`) to patch vDSO. It has a
Expand Down

0 comments on commit cbae3f0

Please sign in to comment.