Skip to content

Linux payload implementing HV exploits to run a custom bootloader

C

Remove --no-warn-rwx-segments flag.

Andy Nguyen64637c177eae
diff --git a/shellcode_0607/Makefile b/shellcode_0607/Makefile
index 43d775b..25bda74 100644
--- a/shellcode_0607/Makefile
+++ b/shellcode_0607/Makefile
@@ -8,7 +8,7 @@ LD = ld
OBJCOPY = objcopy
endif
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -fcf-protection=none -mno-sse -mno-sse2 -m64
-LDFLAGS = -T linker.ld -Wl,--no-warn-rwx-segments
+LDFLAGS = -T linker.ld
TARGET = shellcode_0607.elf
TEXT_BIN = shellcode_0607.bin
dump = shellcode_0607.h
diff --git a/shellcode_hv/Makefile b/shellcode_hv/Makefile
index bafd641..74a74d2 100644
--- a/shellcode_hv/Makefile
+++ b/shellcode_hv/Makefile
@@ -8,7 +8,7 @@ LD = ld
OBJCOPY = objcopy
endif
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -fcf-protection=none -mno-sse -mno-sse2 -m64
-LDFLAGS = -T linker.ld -Wl,--no-warn-rwx-segments
+LDFLAGS = -T linker.ld
TARGET = shellcode_hv.elf
TEXT_BIN = shellcode_hv.bin
dump = shellcode_hv.h
diff --git a/shellcode_kernel/Makefile b/shellcode_kernel/Makefile
index c4b0a5e..91732fd 100644
--- a/shellcode_kernel/Makefile
+++ b/shellcode_kernel/Makefile
@@ -8,7 +8,7 @@ LD = ld
OBJCOPY = objcopy
endif
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -fcf-protection=none -mno-sse -mno-sse2 -m64
-LDFLAGS = -T linker.ld -Wl,--no-warn-rwx-segments
+LDFLAGS = -T linker.ld
TARGET = shellcode_kernel.elf
TEXT_BIN = shellcode_kernel.bin
dump = shellcode_kernel.h