-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
55 lines (37 loc) · 1.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
DOFUSINVOKER = $(LOCALAPPDATA)/Ankama/Dofus/DofusInvoker.swf
FFDEC = $(CURDIR)/FFDec/ffdec.bat
DOFUS_SRC = $(CURDIR)/protocolBuilder/sources
SELECTCLASS = com.ankamagames.dofus.BuildInfos,com.ankamagames.dofus.network.++,com.ankamagames.jerakine.network.++
KEYS_DIR = $(CURDIR)/binaryData
setup:
\python -m venv .venv; \
source .venv/Scripts/activate; \
echo "$(CURDIR)" >> .venv/pyd2bot.pth; \
pip install -r requirements.txt;\
update: decompile gen-protocol gen-msgClasses gen-msgShuffle extract-keys unpack-maps
decompile:
@$(FFDEC) -config parallelSpeedUp=true -selectclass $(SELECTCLASS) -export script $(DOFUS_SRC) $(DOFUSINVOKER)
extract-keys:
@$(FFDEC) -config parallelSpeedUp=true -export binaryData $(KEYS_DIR) $(DOFUSINVOKER)
gen-protocol:
@python protocolBuilder/protocolParser.py $(DOFUS_SRC)
gen-msgClasses:
@python protocolBuilder/exportClasses.py
gen-msgShuffle:
@python protocolBuilder/extractMsgShuffle.py $(DOFUS_SRC)/scripts/com/ankamagames/dofus/network/MessageReceiver.as
unpack-maps:
@python scripts/unpack_maps.py $(DOFUS_SRC)
deps:
@pip install -r requirements.txt
startSniffer:
@python -m snifferApp
activate:
\. $(CURDIR)/.venv/Scripts/activate\
createAccount:
@python $(CURDIR)/hackedLauncher/CredsManager.py $(entryName) $(login) $(password)
createBot:
@python $(CURDIR)/pyd2bot/BotsDataManager.py $(botName) $(account) $(serverId) $(charachterId)
genKeys:
@ssh-keygen -t rsa -b 2056 -m PEM -f $(PASS_ENC_KEYS)/id_rsa
test:
@python $(CURDIR)/pyd2bot/main.py $(bot)