mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-02 20:36:40 +01:00
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
VPATH=../../source/extensions/sniffer
|
|
|
|
OPENSSL=../../source/openssl/include
|
|
COMMON=../../source/common
|
|
SERVER=../../source/server
|
|
PCAP=../../source/libpcap
|
|
|
|
CFLAGS=-fno-stack-protector -nostdinc -nostdlib -fPIC -DPIC -g -Wall
|
|
CFLAGS+=-D_UNIX -D__linux__
|
|
CFLAGS+=-I${COMMON} -I${SERVER} -I${OPENSSL} -I${PCAP}
|
|
CFLAGS+= -I ../../source/bionic/libc/include -I ../../source/bionic/libc/kernel/common/linux/ -I ../../source/bionic/libc/kernel/common/ -I ../../source/bionic/libc/arch-x86/include/
|
|
CFLAGS+= -I ../../source/bionic/libc/kernel/arch-x86/
|
|
CFLAGS+= -Dwchar_t="char" -fno-builtin -D_SIZE_T_DECLARED -DElf_Size="u_int32_t"
|
|
CFLAGS+= -D_BYTE_ORDER=_LITTLE_ENDIAN
|
|
CFLAGS+= -lgcc -L../../source/bionic/compiled
|
|
CFLAGS+= -fPIC -Os
|
|
CFLAGS+= -I../../source/extensions/networkpug -lc -lpcap -lsupport -lmetsrv_main
|
|
CFLAGS+= -I.
|
|
|
|
CFLAGS+= -march=i386 -m32
|
|
|
|
objects = sniffer.o
|
|
|
|
all: ext_server_sniffer.so
|
|
|
|
|
|
debug: CFLAGS+= -ggdb
|
|
debug: all
|
|
|
|
|
|
ext_server_sniffer.so: $(objects)
|
|
$(CC) -Wl,--hash-style=sysv -shared $(CFLAGS) $(objects) -lpcap -lssl -o $@
|
|
|
|
.PHONY: clean debug
|
|
clean:
|
|
rm -f *.o *.so *~; rm -f $(objects)
|