From 6bdac12bc9d817725cbe8e7231173d1877a6c56f Mon Sep 17 00:00:00 2001 From: Jonathan Knapp Date: Wed, 8 Jul 2020 13:51:46 -0700 Subject: [PATCH 1/2] Add fmt submodule --- .gitmodules | 3 +++ fmt | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 fmt diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c8edf6a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "fmt"] + path = fmt + url = https://github.com/fmtlib/fmt diff --git a/fmt b/fmt new file mode 160000 index 0000000..638db5c --- /dev/null +++ b/fmt @@ -0,0 +1 @@ +Subproject commit 638db5ca5e47066b0b9ac297bdcfcae69ccd0276 From 39b72273fd820c4b9ecf6e663b5c03a32b8c274e Mon Sep 17 00:00:00 2001 From: Jonathan Knapp Date: Wed, 8 Jul 2020 14:08:24 -0700 Subject: [PATCH 2/2] WIP: makefile for linux --- BottlEye/.gitignore | 3 +++ BottlEye/Makefile | 19 +++++++++++++++++++ BottlEye/loggr.hpp | 2 +- README.md | 8 ++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 BottlEye/.gitignore create mode 100644 BottlEye/Makefile diff --git a/BottlEye/.gitignore b/BottlEye/.gitignore new file mode 100644 index 0000000..9c843c3 --- /dev/null +++ b/BottlEye/.gitignore @@ -0,0 +1,3 @@ +*.o +*.dll +*.dll.a diff --git a/BottlEye/Makefile b/BottlEye/Makefile new file mode 100644 index 0000000..5514bbb --- /dev/null +++ b/BottlEye/Makefile @@ -0,0 +1,19 @@ + +IDIR=../fmt/include +CXX=x86_64-w64-mingw32-g++ +CFLAGS=-I$(IDIR) -std=c++17 -D ADD_EXPORTS +OBJ=entry.o emulator.o delegate.o singleton.o format.o + +BEClient_x64.dll: $(OBJ) + $(CXX) -shared -o BEClient_x64.dll $(OBJ) -Wl,--out-implib,BEClient_x64.dll.a + +%.o: %.cpp + $(CXX) -c -o $@ $< $(CFLAGS) + +format.o: ../fmt/src/format.cc + $(CXX) -c -o $@ $< $(CFLAGS) + +.PHONY: clean + +clean: + rm -f *.o *.dll *.dll.a diff --git a/BottlEye/loggr.hpp b/BottlEye/loggr.hpp index d541ee3..785643a 100644 --- a/BottlEye/loggr.hpp +++ b/BottlEye/loggr.hpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include class loggr { diff --git a/README.md b/README.md index c9dd564..67e5e27 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,11 @@ BottlEye is a usermode emulator for the commercial anti-cheat [BattlEye](battley First you need to set up a man-in-the-middle environment that allows you to capture the responses sent by the real BEClient. When those are logged, implement them into BottlEye and compile it. Replace the BEClient_x64.dll module on disk with your BottlEye build and launch the game. If you are having issues figuring out the ip address and port to monitor with Wireshark (or whatever tool you choose to use), build BottlEye without the responses and launch the game with it. BottlEye will print the ip and port, which you can later use to filter traffic with. + + +### Linux +```bash +git submodule update --init +cd BottlEye +make +```