Compare commits

...

36 Commits

Author SHA1 Message Date
neru 27b8d3b880 chore: update dlcs
Build / build (push) Successful in 4m3s
2026-04-28 15:26:15 -03:00
neru 3a3f0608a3 feat: blacklist unused / old dlcs 2026-04-28 15:25:29 -03:00
neru b5451b5cbe feat: simplify main 2026-04-28 15:25:19 -03:00
neru 76e9c8eec4 feat: add dlc dumper 2026-04-28 15:24:06 -03:00
neru 13bb48ccce fix: remove unused function 2026-04-28 14:57:10 -03:00
neru a896bc901f chore: update customizations 2026-04-28 14:44:42 -03:00
neru d1316e499e chore: reimplement CUE4Parse build 2026-04-28 14:43:25 -03:00
neru d2d40e7485 chore: update CUE4Parse 2026-04-28 13:20:49 -03:00
neru 89ff8f34e7 chore: remove unused stuff 2026-04-28 13:14:13 -03:00
neru 7aea94a60a feat: use local mappings if available 2026-04-28 13:12:50 -03:00
neru 9dbe4a89c3 chore: update mappings 2026-04-28 13:07:05 -03:00
neru c8577b5545 fix: remove unneeded default initiator
Build / build (push) Successful in 3m32s
2026-04-13 20:47:10 -03:00
neru b8ae9ba743 fix: wrong global offering account
Build / build (push) Successful in 3m34s
2026-04-13 19:00:50 -03:00
neru 9637931164 fix: add missing includes
Build / build (push) Successful in 3m30s
2026-04-13 01:21:45 -03:00
neru 290307aa84 fix: change ShlObj_core to shlobj
Build / build (push) Failing after 2m35s
2026-04-13 01:18:10 -03:00
neru f3552ce79c feat: spoof ownership by default now that DLC unlocking is available
Build / build (push) Has been cancelled
2026-04-13 01:12:37 -03:00
neru 441c49d31a style: run clang-format
Build / build (push) Failing after 2m28s
2026-04-13 01:09:21 -03:00
neru e282a10f4d chore: add dlc dump 2026-04-13 01:09:12 -03:00
neru 8f6fbbb244 feat: initialize cache cleaner 2026-04-13 01:09:06 -03:00
neru 5adf5e6417 feat: add cachecleaner 2026-04-13 01:08:46 -03:00
neru a421793a54 fix: utf8 to 16 conversion missing on encrypt 2026-04-13 01:08:41 -03:00
neru bda519e70a fix: use ends_with instead of find when possible 2026-04-13 01:08:27 -03:00
neru b7aa912e1b style: misc formatting changes 2026-04-13 01:08:17 -03:00
neru 7db8048469 feat: add DLC unlocking 2026-04-13 01:08:02 -03:00
neru 091418eb53 fix: remove leftover print 2026-04-13 00:16:00 -03:00
neru 533b992a45 fix: incorrect str fmt 2026-04-12 23:18:52 -03:00
neru 937734ff7b fix: remove odd characters 2026-04-12 21:09:24 -03:00
neru 72c5466ce6 feat: add accessKey and keyId to config 2026-04-12 20:57:57 -03:00
neru 8a828db908 fix: push type 2 encryption 2026-04-12 20:57:01 -03:00
neru 3b461cd845 feat: add dbdcrypt 2026-04-12 20:56:25 -03:00
neru b2dfd9e1e5 build: link zlib statically 2026-04-12 20:56:18 -03:00
neru 448f6b7167 build: add zlib 2026-04-12 20:10:52 -03:00
neru ebe2000993 feat: send characters on /get-all request 2026-04-12 14:09:58 -03:00
neru 26038a03d1 feat: make body editable on proxy client req listeners 2026-04-12 13:12:42 -03:00
neru 698ac445e0 style: move code to onBloodwebClient 2026-04-12 13:12:24 -03:00
neru 45431e29f1 fix: remove repeated statement 2026-04-12 13:12:00 -03:00
22 changed files with 1786 additions and 93 deletions
+3
View File
@@ -7,3 +7,6 @@
[submodule "vendor/json"] [submodule "vendor/json"]
path = vendor/json path = vendor/json
url = https://github.com/nlohmann/json url = https://github.com/nlohmann/json
[submodule "vendor/zlib"]
path = vendor/zlib
url = https://github.com/madler/zlib
+33 -9
View File
@@ -76,7 +76,7 @@ add_executable(dbd-unlocker ${UNLOCKER_SOURCES})
string(RANDOM LENGTH 12 ALPHABET "abcdefghijklmnopqrstuvwxyz0123456789" RANDOM_EXE_NAME) string(RANDOM LENGTH 12 ALPHABET "abcdefghijklmnopqrstuvwxyz0123456789" RANDOM_EXE_NAME)
set_target_properties(dbd-unlocker PROPERTIES OUTPUT_NAME "${RANDOM_EXE_NAME}") set_target_properties(dbd-unlocker PROPERTIES OUTPUT_NAME "${RANDOM_EXE_NAME}")
target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings OpenSSL::SSL OpenSSL::Crypto nerutils wsock32 ws2_32 wininet crypt32 nlohmann_json) target_link_libraries(dbd-unlocker PRIVATE dbd-unlocker-warnings OpenSSL::SSL OpenSSL::Crypto nerutils wsock32 ws2_32 wininet crypt32 nlohmann_json zlibstatic )
if(NOT MSVC) if(NOT MSVC)
target_link_options(dbd-unlocker PRIVATE -static -static-libgcc -static-libstdc++) target_link_options(dbd-unlocker PRIVATE -static -static-libgcc -static-libstdc++)
@@ -97,14 +97,38 @@ add_custom_command(TARGET dbd-unlocker POST_BUILD
) )
# ------------------------------ # ------------------------------
# dumper (VS only) # VS only
# ------------------------------ # ------------------------------
if(CMAKE_GENERATOR MATCHES "Visual Studio") if(CMAKE_GENERATOR MATCHES "Visual Studio")
include_external_msproject(dbd-dumper "${CMAKE_CURRENT_SOURCE_DIR}/src/dumper/dbd-dumper.csproj") # ------------------------------
include_external_msproject(CUE4Parse "${CMAKE_CURRENT_SOURCE_DIR}/vendor/CUE4Parse/CUE4Parse/CUE4Parse.csproj") # CUE4Parse
set_target_properties(dbd-dumper PROPERTIES VS_PROJECT_TYPE "9A19103F-16F7-4668-BE54-9A1E7A4F7556") # ------------------------------
set_target_properties(CUE4Parse PROPERTIES VS_PROJECT_TYPE "9A19103F-16F7-4668-BE54-9A1E7A4F7556") set(CUE4PARSE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/vendor/CUE4Parse")
add_dependencies(dbd-dumper CUE4Parse)
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT dbd-unlocker)
endif()
# CUE4Parse natives
set(CUE4PARSE_NATIVE_DIR "${CUE4PARSE_DIR}/CUE4Parse-Natives")
add_subdirectory(${CUE4PARSE_NATIVE_DIR})
# CUE4Parse C#
set(CUE4PARSE_NET_DIR "${CUE4PARSE_DIR}/CUE4Parse")
set(CUE4PARSE_OUTPUT_DIR "${CUE4PARSE_NET_DIR}/bin/$(Configuration)/net8.0")
add_custom_target(CUE4Parse-Net
COMMAND dotnet build "${CUE4PARSE_NET_DIR}/CUE4Parse.csproj"
--configuration $(Configuration)
-p:BuildNatives=false
-p:SkipNativeBuild=true
-p:CMakeExitCode=0
--output "${CUE4PARSE_OUTPUT_DIR}"
WORKING_DIRECTORY "${CUE4PARSE_NET_DIR}"
COMMENT "Building CUE4Parse C# library"
)
# dumper
include_external_msproject(dbd-dumper "${CMAKE_CURRENT_SOURCE_DIR}/src/dumper/dbd-dumper.csproj")
set_target_properties(dbd-dumper PROPERTIES VS_PROJECT_TYPE "9A19103F-16F7-4668-BE54-9A1E7A4F7556")
add_dependencies(dbd-dumper CUE4Parse-Natives CUE4Parse-Net)
# startup project
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT dbd-unlocker)
endif()
+95
View File
@@ -0,0 +1,95 @@
[
"Ace",
"Adam",
"Ash",
"Bear",
"Bill",
"Bob",
"Cannibal",
"Chuckles",
"Claudette",
"Clown",
"Demogorgon",
"Dwight",
"Eric",
"Feng",
"Ghostface",
"Gunslinger",
"HillBilly",
"Jake",
"Jane",
"Jeff",
"K20",
"K21",
"K22",
"K23",
"K24",
"K25",
"K26",
"K27",
"K28",
"K29",
"K30",
"K31",
"K32",
"K33",
"K34",
"K35",
"K36",
"K37",
"K38",
"K39",
"K40",
"K41",
"K42",
"Kate",
"Killer07",
"Laurie",
"Legion",
"Meg",
"Nancy",
"Nea",
"Nightmare",
"Nurse",
"Oni",
"Pig",
"Plague",
"Quentin",
"S22",
"S23",
"S24",
"S25",
"S26",
"S27",
"S28",
"S29",
"S30",
"S31",
"S32",
"S33",
"S34",
"S35",
"S36",
"S37",
"S38",
"S39",
"S40",
"S41",
"S42",
"S43",
"S44",
"S45",
"S46",
"S47",
"S48",
"S49",
"S50",
"S51",
"Shape",
"Smoke",
"Spirit",
"Steve",
"Witch",
"Yui",
"Zarina"
]
+166
View File
@@ -186,6 +186,7 @@
"BE_Body027_01", "BE_Body027_01",
"BE_Body028", "BE_Body028",
"BE_Body03", "BE_Body03",
"BE_Body030",
"BE_Body04", "BE_Body04",
"BE_Body04_01", "BE_Body04_01",
"BE_Head01_4A", "BE_Head01_4A",
@@ -222,6 +223,7 @@
"BE_Mask028", "BE_Mask028",
"BE_Mask03", "BE_Mask03",
"BE_Mask03_01", "BE_Mask03_01",
"BE_Mask030",
"BE_Mask04", "BE_Mask04",
"BE_Mask04_01", "BE_Mask04_01",
"BE_W006", "BE_W006",
@@ -260,6 +262,7 @@
"BE_W03", "BE_W03",
"BE_W03_01", "BE_W03_01",
"BE_W03_02", "BE_W03_02",
"BE_W030",
"BE_W04_01", "BE_W04_01",
"BO_Head007", "BO_Head007",
"BO_Head008", "BO_Head008",
@@ -728,6 +731,9 @@
"DK_Head028", "DK_Head028",
"DK_Head030", "DK_Head030",
"DK_Head031", "DK_Head031",
"DK_Head032",
"DK_Head032_01",
"DK_Head032_02",
"DK_Legs001", "DK_Legs001",
"DK_Legs001_01", "DK_Legs001_01",
"DK_Legs001_02", "DK_Legs001_02",
@@ -772,6 +778,9 @@
"DK_Legs027_01", "DK_Legs027_01",
"DK_Legs030", "DK_Legs030",
"DK_Legs031", "DK_Legs031",
"DK_Legs032",
"DK_Legs032_01",
"DK_Legs032_02",
"DK_Torso001", "DK_Torso001",
"DK_Torso001_01", "DK_Torso001_01",
"DK_Torso001_02", "DK_Torso001_02",
@@ -827,6 +836,9 @@
"DK_Torso027_01", "DK_Torso027_01",
"DK_Torso030", "DK_Torso030",
"DK_Torso031", "DK_Torso031",
"DK_Torso032",
"DK_Torso032_01",
"DK_Torso032_02",
"DO_Body006", "DO_Body006",
"DO_Body007", "DO_Body007",
"DO_Body007_01", "DO_Body007_01",
@@ -1082,6 +1094,7 @@
"FM_Legs042", "FM_Legs042",
"FM_Legs042_01", "FM_Legs042_01",
"FM_Legs042_02", "FM_Legs042_02",
"FM_Legs043",
"FM_Torso001", "FM_Torso001",
"FM_Torso001_01", "FM_Torso001_01",
"FM_Torso001_02", "FM_Torso001_02",
@@ -1153,6 +1166,7 @@
"FM_Torso042", "FM_Torso042",
"FM_Torso042_01", "FM_Torso042_01",
"FM_Torso042_02", "FM_Torso042_02",
"FM_Torso043",
"FS_Head006", "FS_Head006",
"FS_Head007", "FS_Head007",
"FS_Head008", "FS_Head008",
@@ -1628,6 +1642,7 @@
"HS_Legs030_02", "HS_Legs030_02",
"HS_Legs030_03", "HS_Legs030_03",
"HS_Legs031", "HS_Legs031",
"HS_Legs032",
"HS_Torso006", "HS_Torso006",
"HS_Torso007", "HS_Torso007",
"HS_Torso008", "HS_Torso008",
@@ -1679,6 +1694,7 @@
"HS_Torso030_02", "HS_Torso030_02",
"HS_Torso030_03", "HS_Torso030_03",
"HS_Torso031", "HS_Torso031",
"HS_Torso032",
"J_Head01", "J_Head01",
"J_Head01_P01", "J_Head01_P01",
"J_Head02", "J_Head02",
@@ -1734,6 +1750,7 @@
"JP_Head030", "JP_Head030",
"JP_Head031", "JP_Head031",
"JP_Head033", "JP_Head033",
"JP_Head034",
"JP_Head04", "JP_Head04",
"JP_Head04_01", "JP_Head04_01",
"JP_Head05", "JP_Head05",
@@ -1785,6 +1802,7 @@
"JP_Legs027", "JP_Legs027",
"JP_Legs030", "JP_Legs030",
"JP_Legs033", "JP_Legs033",
"JP_Legs034",
"JP_Legs05", "JP_Legs05",
"JP_Legs08", "JP_Legs08",
"JP_Legs08_01", "JP_Legs08_01",
@@ -1838,6 +1856,7 @@
"JP_Torso030", "JP_Torso030",
"JP_Torso032", "JP_Torso032",
"JP_Torso033", "JP_Torso033",
"JP_Torso034",
"JP_Torso04_01", "JP_Torso04_01",
"JP_Torso04_02", "JP_Torso04_02",
"JP_Torso04_03", "JP_Torso04_03",
@@ -1898,6 +1917,9 @@
"K21_Body021", "K21_Body021",
"K21_Body021_01", "K21_Body021_01",
"K21_Body022", "K21_Body022",
"K21_Body023",
"K21_Body023_01",
"K21_Body023_02",
"K21_Head006", "K21_Head006",
"K21_Head006_01", "K21_Head006_01",
"K21_Head006_02", "K21_Head006_02",
@@ -1931,6 +1953,9 @@
"K21_Head021", "K21_Head021",
"K21_Head021_01", "K21_Head021_01",
"K21_Head022", "K21_Head022",
"K21_Head023",
"K21_Head023_01",
"K21_Head023_02",
"K21_W006", "K21_W006",
"K21_W007", "K21_W007",
"K21_W008", "K21_W008",
@@ -1960,6 +1985,9 @@
"K21_W021", "K21_W021",
"K21_W021_01", "K21_W021_01",
"K21_W022", "K21_W022",
"K21_W023",
"K21_W023_01",
"K21_W023_02",
"K21_Weapon01", "K21_Weapon01",
"K22_Body006", "K22_Body006",
"K22_Body007", "K22_Body007",
@@ -1978,6 +2006,7 @@
"K22_Body011", "K22_Body011",
"K22_Body013", "K22_Body013",
"K22_Body015", "K22_Body015",
"K22_Body015_01",
"K22_Body02", "K22_Body02",
"K22_Body02_01", "K22_Body02_01",
"K22_Body02_02", "K22_Body02_02",
@@ -2003,6 +2032,7 @@
"K22_Head012", "K22_Head012",
"K22_Head013", "K22_Head013",
"K22_Head015", "K22_Head015",
"K22_Head015_01",
"K22_Head02", "K22_Head02",
"K22_Head02_01", "K22_Head02_01",
"K22_W006", "K22_W006",
@@ -2024,6 +2054,7 @@
"K22_W013", "K22_W013",
"K22_W014", "K22_W014",
"K22_W015", "K22_W015",
"K22_W015_01",
"K22_W02", "K22_W02",
"K22_W02_01", "K22_W02_01",
"K22_Weapon01", "K22_Weapon01",
@@ -2357,6 +2388,7 @@
"K30_Body011", "K30_Body011",
"K30_Body012", "K30_Body012",
"K30_Body013", "K30_Body013",
"K30_Body013_01",
"K30_Body014", "K30_Body014",
"K30_Body017", "K30_Body017",
"K30_Body017_01", "K30_Body017_01",
@@ -2382,6 +2414,7 @@
"K30_Head011", "K30_Head011",
"K30_Head012", "K30_Head012",
"K30_Head013", "K30_Head013",
"K30_Head013_01",
"K30_Head014", "K30_Head014",
"K30_Head017", "K30_Head017",
"K30_Head017_01", "K30_Head017_01",
@@ -2397,6 +2430,7 @@
"K30_W007_01", "K30_W007_01",
"K30_W008", "K30_W008",
"K30_W008_01", "K30_W008_01",
"K30_W008_02",
"K30_W01_01", "K30_W01_01",
"K30_W01_02", "K30_W01_02",
"K30_W01_03", "K30_W01_03",
@@ -2443,6 +2477,7 @@
"K31_Body016", "K31_Body016",
"K31_Body017", "K31_Body017",
"K31_Body018", "K31_Body018",
"K31_Body019",
"K31_Head006", "K31_Head006",
"K31_Head007", "K31_Head007",
"K31_Head008", "K31_Head008",
@@ -2466,6 +2501,7 @@
"K31_Head016", "K31_Head016",
"K31_Head017", "K31_Head017",
"K31_Head018", "K31_Head018",
"K31_Head019",
"K31_W006", "K31_W006",
"K31_W007", "K31_W007",
"K31_W008", "K31_W008",
@@ -2484,6 +2520,7 @@
"K31_W016", "K31_W016",
"K31_W017", "K31_W017",
"K31_W018", "K31_W018",
"K31_W019",
"K31_Weapon01", "K31_Weapon01",
"K31_Weapon01_04", "K31_Weapon01_04",
"K32_Body006", "K32_Body006",
@@ -2975,6 +3012,7 @@
"KS_Head011_01", "KS_Head011_01",
"KS_Head012", "KS_Head012",
"KS_Head012_02", "KS_Head012_02",
"KS_Head012_03",
"KS_Head014", "KS_Head014",
"KS_Head015", "KS_Head015",
"KS_Head016", "KS_Head016",
@@ -3003,6 +3041,7 @@
"KS_Legs01_CV04", "KS_Legs01_CV04",
"KS_Legs01_P01", "KS_Legs01_P01",
"KS_Legs010", "KS_Legs010",
"KS_Legs010_01",
"KS_Legs011", "KS_Legs011",
"KS_Legs011_01", "KS_Legs011_01",
"KS_Legs011_02", "KS_Legs011_02",
@@ -3047,6 +3086,7 @@
"KS_Torso013", "KS_Torso013",
"KS_Torso014", "KS_Torso014",
"KS_Torso015", "KS_Torso015",
"KS_Torso015_01",
"KS_Torso016", "KS_Torso016",
"KS_Torso016_01", "KS_Torso016_01",
"KS_Torso017", "KS_Torso017",
@@ -3256,6 +3296,7 @@
"MS_Head025", "MS_Head025",
"MS_Head025_01", "MS_Head025_01",
"MS_Head026", "MS_Head026",
"MS_Head027",
"MS_Legs006", "MS_Legs006",
"MS_Legs007", "MS_Legs007",
"MS_Legs008", "MS_Legs008",
@@ -3290,6 +3331,7 @@
"MS_Legs025", "MS_Legs025",
"MS_Legs025_01", "MS_Legs025_01",
"MS_Legs026", "MS_Legs026",
"MS_Legs027",
"MS_Torso006", "MS_Torso006",
"MS_Torso007", "MS_Torso007",
"MS_Torso007_01", "MS_Torso007_01",
@@ -3334,6 +3376,7 @@
"MS_Torso025", "MS_Torso025",
"MS_Torso025_01", "MS_Torso025_01",
"MS_Torso026", "MS_Torso026",
"MS_Torso027",
"MT_Head001", "MT_Head001",
"MT_Head001_01", "MT_Head001_01",
"MT_Head002", "MT_Head002",
@@ -3390,6 +3433,9 @@
"MT_Head03_01", "MT_Head03_01",
"MT_Head030", "MT_Head030",
"MT_Head032", "MT_Head032",
"MT_Head036",
"MT_Head036_01",
"MT_Head036_02",
"MT_Head05", "MT_Head05",
"MT_Head06", "MT_Head06",
"MT_Head07", "MT_Head07",
@@ -3447,6 +3493,9 @@
"MT_Legs03_01", "MT_Legs03_01",
"MT_Legs030", "MT_Legs030",
"MT_Legs032", "MT_Legs032",
"MT_Legs036",
"MT_Legs036_01",
"MT_Legs036_02",
"MT_Legs04_01", "MT_Legs04_01",
"MT_Legs04_02", "MT_Legs04_02",
"MT_Legs04_03", "MT_Legs04_03",
@@ -3528,6 +3577,9 @@
"MT_Torso032", "MT_Torso032",
"MT_Torso033", "MT_Torso033",
"MT_Torso034", "MT_Torso034",
"MT_Torso036",
"MT_Torso036_01",
"MT_Torso036_02",
"MT_Torso04_05", "MT_Torso04_05",
"MT_Torso04_06", "MT_Torso04_06",
"MT_Torso04_KingKongKraken", "MT_Torso04_KingKongKraken",
@@ -3587,6 +3639,7 @@
"NK_Head027", "NK_Head027",
"NK_Head027_01", "NK_Head027_01",
"NK_Head029", "NK_Head029",
"NK_Head029_01",
"NK_Head030", "NK_Head030",
"NK_Head030_01", "NK_Head030_01",
"NK_Head031", "NK_Head031",
@@ -3610,6 +3663,7 @@
"NK_Legs003_02", "NK_Legs003_02",
"NK_Legs006", "NK_Legs006",
"NK_Legs008", "NK_Legs008",
"NK_Legs008_01",
"NK_Legs009", "NK_Legs009",
"NK_Legs01_01", "NK_Legs01_01",
"NK_Legs01_02", "NK_Legs01_02",
@@ -3704,6 +3758,7 @@
"NK_Torso021", "NK_Torso021",
"NK_Torso022", "NK_Torso022",
"NK_Torso023", "NK_Torso023",
"NK_Torso023_01",
"NK_Torso024", "NK_Torso024",
"NK_Torso025", "NK_Torso025",
"NK_Torso026", "NK_Torso026",
@@ -3935,6 +3990,7 @@
"S23_Head029_01", "S23_Head029_01",
"S23_Head030", "S23_Head030",
"S23_Head031", "S23_Head031",
"S23_Head031_01",
"S23_Head033", "S23_Head033",
"S23_Head033_01", "S23_Head033_01",
"S23_Head033_02", "S23_Head033_02",
@@ -3971,6 +4027,7 @@
"S23_Legs025_01", "S23_Legs025_01",
"S23_Legs027", "S23_Legs027",
"S23_Legs028", "S23_Legs028",
"S23_Legs028_01",
"S23_Legs029", "S23_Legs029",
"S23_Legs029_01", "S23_Legs029_01",
"S23_Legs031", "S23_Legs031",
@@ -4010,6 +4067,7 @@
"S23_Torso02_02", "S23_Torso02_02",
"S23_Torso020", "S23_Torso020",
"S23_Torso021", "S23_Torso021",
"S23_Torso021_01",
"S23_Torso023", "S23_Torso023",
"S23_Torso024", "S23_Torso024",
"S23_Torso025", "S23_Torso025",
@@ -4094,6 +4152,7 @@
"S24_Legs026_01", "S24_Legs026_01",
"S24_Legs026_02", "S24_Legs026_02",
"S24_Legs026_03", "S24_Legs026_03",
"S24_Legs028",
"S24_Torso006", "S24_Torso006",
"S24_Torso007", "S24_Torso007",
"S24_Torso007_01", "S24_Torso007_01",
@@ -4137,6 +4196,7 @@
"S24_Torso026_02", "S24_Torso026_02",
"S24_Torso026_03", "S24_Torso026_03",
"S24_Torso027", "S24_Torso027",
"S24_Torso028",
"S25_Head006", "S25_Head006",
"S25_Head007", "S25_Head007",
"S25_Head009", "S25_Head009",
@@ -4173,6 +4233,7 @@
"S25_Head031_02", "S25_Head031_02",
"S25_Head031_03", "S25_Head031_03",
"S25_Head032", "S25_Head032",
"S25_Head033",
"S25_Legs006", "S25_Legs006",
"S25_Legs007", "S25_Legs007",
"S25_Legs007_01", "S25_Legs007_01",
@@ -4212,6 +4273,7 @@
"S25_Legs031_02", "S25_Legs031_02",
"S25_Legs031_03", "S25_Legs031_03",
"S25_Legs032", "S25_Legs032",
"S25_Legs033",
"S25_Torso006", "S25_Torso006",
"S25_Torso007", "S25_Torso007",
"S25_Torso007_01", "S25_Torso007_01",
@@ -4261,6 +4323,7 @@
"S25_Torso031_02", "S25_Torso031_02",
"S25_Torso031_03", "S25_Torso031_03",
"S25_Torso032", "S25_Torso032",
"S25_Torso033",
"S26_Head006", "S26_Head006",
"S26_Head008", "S26_Head008",
"S26_Head009", "S26_Head009",
@@ -4383,6 +4446,7 @@
"S28_Legs031_02", "S28_Legs031_02",
"S28_Legs031_03", "S28_Legs031_03",
"S28_Legs032", "S28_Legs032",
"S28_Legs034",
"S28_Torso006", "S28_Torso006",
"S28_Torso007", "S28_Torso007",
"S28_Torso008", "S28_Torso008",
@@ -4432,6 +4496,7 @@
"S28_Torso031_03", "S28_Torso031_03",
"S28_Torso032", "S28_Torso032",
"S28_Torso033", "S28_Torso033",
"S28_Torso034",
"S29_Head006", "S29_Head006",
"S29_Head006_01", "S29_Head006_01",
"S29_Head008", "S29_Head008",
@@ -4577,6 +4642,7 @@
"S31_Legs022_02", "S31_Legs022_02",
"S31_Legs022_03", "S31_Legs022_03",
"S31_Legs023", "S31_Legs023",
"S31_Legs025",
"S31_Torso006", "S31_Torso006",
"S31_Torso007", "S31_Torso007",
"S31_Torso008", "S31_Torso008",
@@ -4616,6 +4682,7 @@
"S31_Torso022_02", "S31_Torso022_02",
"S31_Torso022_03", "S31_Torso022_03",
"S31_Torso023", "S31_Torso023",
"S31_Torso025",
"S32_Head006", "S32_Head006",
"S32_Head008", "S32_Head008",
"S32_Head009", "S32_Head009",
@@ -4672,6 +4739,9 @@
"S34_Head025_01", "S34_Head025_01",
"S34_Head025_02", "S34_Head025_02",
"S34_Head025_03", "S34_Head025_03",
"S34_Head026",
"S34_Head026_01",
"S34_Head026_02",
"S34_Legs006", "S34_Legs006",
"S34_Legs006_01", "S34_Legs006_01",
"S34_Legs009", "S34_Legs009",
@@ -4701,6 +4771,9 @@
"S34_Legs025_01", "S34_Legs025_01",
"S34_Legs025_02", "S34_Legs025_02",
"S34_Legs025_03", "S34_Legs025_03",
"S34_Legs026",
"S34_Legs026_01",
"S34_Legs026_02",
"S34_Torso006", "S34_Torso006",
"S34_Torso006_01", "S34_Torso006_01",
"S34_Torso007", "S34_Torso007",
@@ -4741,6 +4814,9 @@
"S34_Torso025_01", "S34_Torso025_01",
"S34_Torso025_02", "S34_Torso025_02",
"S34_Torso025_03", "S34_Torso025_03",
"S34_Torso026",
"S34_Torso026_01",
"S34_Torso026_02",
"S35_Head006", "S35_Head006",
"S35_Head006_01", "S35_Head006_01",
"S35_Head007", "S35_Head007",
@@ -4768,6 +4844,7 @@
"S35_Head023_02", "S35_Head023_02",
"S35_Head023_03", "S35_Head023_03",
"S35_Head024", "S35_Head024",
"S35_Head025",
"S35_Legs006", "S35_Legs006",
"S35_Legs006_01", "S35_Legs006_01",
"S35_Legs007", "S35_Legs007",
@@ -4798,6 +4875,7 @@
"S35_Legs023_02", "S35_Legs023_02",
"S35_Legs023_03", "S35_Legs023_03",
"S35_Legs024", "S35_Legs024",
"S35_Legs025",
"S35_Torso006", "S35_Torso006",
"S35_Torso006_01", "S35_Torso006_01",
"S35_Torso007", "S35_Torso007",
@@ -4837,6 +4915,7 @@
"S35_Torso023_02", "S35_Torso023_02",
"S35_Torso023_03", "S35_Torso023_03",
"S35_Torso024", "S35_Torso024",
"S35_Torso025",
"S36_Head006", "S36_Head006",
"S36_Head007", "S36_Head007",
"S36_Head007_01", "S36_Head007_01",
@@ -4888,6 +4967,7 @@
"S36_Legs021", "S36_Legs021",
"S36_Legs023", "S36_Legs023",
"S36_Legs024", "S36_Legs024",
"S36_Legs025",
"S36_Torso006", "S36_Torso006",
"S36_Torso007", "S36_Torso007",
"S36_Torso007_01", "S36_Torso007_01",
@@ -4925,6 +5005,7 @@
"S36_Torso021", "S36_Torso021",
"S36_Torso023", "S36_Torso023",
"S36_Torso024", "S36_Torso024",
"S36_Torso025",
"S37_Head006", "S37_Head006",
"S37_Head007", "S37_Head007",
"S37_Head009", "S37_Head009",
@@ -4946,6 +5027,7 @@
"S37_Head023_01", "S37_Head023_01",
"S37_Head024", "S37_Head024",
"S37_Head025", "S37_Head025",
"S37_Head026",
"S37_Legs006", "S37_Legs006",
"S37_Legs009", "S37_Legs009",
"S37_Legs009_01", "S37_Legs009_01",
@@ -4970,6 +5052,7 @@
"S37_Legs023_01", "S37_Legs023_01",
"S37_Legs024", "S37_Legs024",
"S37_Legs025", "S37_Legs025",
"S37_Legs026",
"S37_Torso006", "S37_Torso006",
"S37_Torso008", "S37_Torso008",
"S37_Torso009", "S37_Torso009",
@@ -5004,6 +5087,7 @@
"S37_Torso023_01", "S37_Torso023_01",
"S37_Torso024", "S37_Torso024",
"S37_Torso025", "S37_Torso025",
"S37_Torso026",
"S38_Head006", "S38_Head006",
"S38_Head007", "S38_Head007",
"S38_Head008", "S38_Head008",
@@ -5051,6 +5135,7 @@
"S39_Head01_P01", "S39_Head01_P01",
"S39_Head010", "S39_Head010",
"S39_Head011", "S39_Head011",
"S39_Head013",
"S39_Legs006", "S39_Legs006",
"S39_Legs007", "S39_Legs007",
"S39_Legs009", "S39_Legs009",
@@ -5058,6 +5143,7 @@
"S39_Legs01_P01", "S39_Legs01_P01",
"S39_Legs010", "S39_Legs010",
"S39_Legs011", "S39_Legs011",
"S39_Legs013",
"S39_Torso006", "S39_Torso006",
"S39_Torso007", "S39_Torso007",
"S39_Torso008", "S39_Torso008",
@@ -5066,6 +5152,7 @@
"S39_Torso01_P01", "S39_Torso01_P01",
"S39_Torso010", "S39_Torso010",
"S39_Torso011", "S39_Torso011",
"S39_Torso013",
"S40_Head006", "S40_Head006",
"S40_Head007", "S40_Head007",
"S40_Head008", "S40_Head008",
@@ -5499,6 +5586,7 @@
"S51_Torso01_P01", "S51_Torso01_P01",
"S52_Head006", "S52_Head006",
"S52_Head006_01", "S52_Head006_01",
"S52_Head007",
"S52_Head01", "S52_Head01",
"S52_Head01_01", "S52_Head01_01",
"S52_Head01_02", "S52_Head01_02",
@@ -5508,6 +5596,7 @@
"S52_Head02_01", "S52_Head02_01",
"S52_Legs006", "S52_Legs006",
"S52_Legs006_01", "S52_Legs006_01",
"S52_Legs007",
"S52_Legs01", "S52_Legs01",
"S52_Legs01_01", "S52_Legs01_01",
"S52_Legs01_02", "S52_Legs01_02",
@@ -5521,6 +5610,7 @@
"S52_Legs02_01", "S52_Legs02_01",
"S52_Torso006", "S52_Torso006",
"S52_Torso006_01", "S52_Torso006_01",
"S52_Torso007",
"S52_Torso01", "S52_Torso01",
"S52_Torso01_01", "S52_Torso01_01",
"S52_Torso01_02", "S52_Torso01_02",
@@ -5546,12 +5636,15 @@
"SK_W024", "SK_W024",
"SS_Head029", "SS_Head029",
"SS_Head030", "SS_Head030",
"SS_Head031",
"SS_Legs029", "SS_Legs029",
"SS_Legs030", "SS_Legs030",
"SS_Legs031",
"SS_Torso023_02", "SS_Torso023_02",
"SS_Torso023_03", "SS_Torso023_03",
"SS_Torso029", "SS_Torso029",
"SS_Torso030", "SS_Torso030",
"SS_Torso031",
"SwedenKiller_Body006", "SwedenKiller_Body006",
"SwedenKiller_Body007", "SwedenKiller_Body007",
"SwedenKiller_Body008", "SwedenKiller_Body008",
@@ -5897,6 +5990,9 @@
"TN_Body023_02", "TN_Body023_02",
"TN_Body023_03", "TN_Body023_03",
"TN_Body026", "TN_Body026",
"TN_Body027",
"TN_Body027_01",
"TN_Body027_02",
"TN_Body03", "TN_Body03",
"TN_Body03_01", "TN_Body03_01",
"TN_Body03_02", "TN_Body03_02",
@@ -5942,6 +6038,9 @@
"TN_Head023_02", "TN_Head023_02",
"TN_Head023_03", "TN_Head023_03",
"TN_Head026", "TN_Head026",
"TN_Head027",
"TN_Head027_01",
"TN_Head027_02",
"TN_Head03", "TN_Head03",
"TN_Head03_01", "TN_Head03_01",
"TN_Head04", "TN_Head04",
@@ -5975,6 +6074,9 @@
"TN_W024", "TN_W024",
"TN_W025", "TN_W025",
"TN_W026", "TN_W026",
"TN_W027",
"TN_W027_01",
"TN_W027_02",
"TN_W03", "TN_W03",
"TN_W04", "TN_W04",
"TN_W04_01", "TN_W04_01",
@@ -6017,6 +6119,9 @@
"TR_Body024", "TR_Body024",
"TR_Body026", "TR_Body026",
"TR_Body027", "TR_Body027",
"TR_Body031",
"TR_Body031_01",
"TR_Body031_02",
"TR_Body09", "TR_Body09",
"TR_Body09_02", "TR_Body09_02",
"TR_Body09_03", "TR_Body09_03",
@@ -6060,6 +6165,9 @@
"TR_Mask025", "TR_Mask025",
"TR_Mask026", "TR_Mask026",
"TR_Mask027", "TR_Mask027",
"TR_Mask031",
"TR_Mask031_01",
"TR_Mask031_02",
"TR_Mask06", "TR_Mask06",
"TR_Mask06_01", "TR_Mask06_01",
"TR_Mask06_02", "TR_Mask06_02",
@@ -6098,6 +6206,9 @@
"TR_W026", "TR_W026",
"TR_W027", "TR_W027",
"TR_W028", "TR_W028",
"TR_W031",
"TR_W031_01",
"TR_W031_02",
"TR_W09_02", "TR_W09_02",
"TR_W09_03", "TR_W09_03",
"Trapper_Head_H20", "Trapper_Head_H20",
@@ -6138,6 +6249,7 @@
"TW_Body021", "TW_Body021",
"TW_Body022", "TW_Body022",
"TW_Body023", "TW_Body023",
"TW_Body024",
"TW_Body03", "TW_Body03",
"TW_Body03_01", "TW_Body03_01",
"TW_Head_Marth88", "TW_Head_Marth88",
@@ -6175,6 +6287,7 @@
"TW_Head021", "TW_Head021",
"TW_Head022", "TW_Head022",
"TW_Head023", "TW_Head023",
"TW_Head024",
"TW_Head03", "TW_Head03",
"TW_Head03_03", "TW_Head03_03",
"TW_W006", "TW_W006",
@@ -6202,6 +6315,7 @@
"TW_W021", "TW_W021",
"TW_W022", "TW_W022",
"TW_W023", "TW_W023",
"TW_W024",
"TW_W03", "TW_W03",
"TW_W03_01", "TW_W03_01",
"TW_W03_02", "TW_W03_02",
@@ -6332,6 +6446,9 @@
"US_Head025", "US_Head025",
"US_Head026", "US_Head026",
"US_Head030", "US_Head030",
"US_Head032",
"US_Head032_01",
"US_Head032_02",
"US_Legs006", "US_Legs006",
"US_Legs006_01", "US_Legs006_01",
"US_Legs007", "US_Legs007",
@@ -6367,6 +6484,9 @@
"US_Legs025", "US_Legs025",
"US_Legs026", "US_Legs026",
"US_Legs030", "US_Legs030",
"US_Legs032",
"US_Legs032_01",
"US_Legs032_02",
"US_Torso006", "US_Torso006",
"US_Torso007", "US_Torso007",
"US_Torso007_01", "US_Torso007_01",
@@ -6412,6 +6532,9 @@
"US_Torso027", "US_Torso027",
"US_Torso030", "US_Torso030",
"US_Torso031", "US_Torso031",
"US_Torso032",
"US_Torso032_01",
"US_Torso032_02",
"WI_Body006", "WI_Body006",
"WI_Body006_01", "WI_Body006_01",
"WI_Body007", "WI_Body007",
@@ -6598,6 +6721,7 @@
"BE_outfit_027", "BE_outfit_027",
"BE_outfit_027_01", "BE_outfit_027_01",
"BE_outfit_028", "BE_outfit_028",
"BE_outfit_030",
"BE_outfit_04_01", "BE_outfit_04_01",
"Bear_outfit_001", "Bear_outfit_001",
"Bear_outfit_002", "Bear_outfit_002",
@@ -6750,6 +6874,9 @@
"DK_outfit_027_01", "DK_outfit_027_01",
"DK_outfit_030", "DK_outfit_030",
"DK_outfit_031", "DK_outfit_031",
"DK_outfit_032",
"DK_outfit_032_01",
"DK_outfit_032_02",
"DO_outfit_007_01", "DO_outfit_007_01",
"DO_outfit_009", "DO_outfit_009",
"DO_outfit_01", "DO_outfit_01",
@@ -6854,6 +6981,7 @@
"FM_outfit_042", "FM_outfit_042",
"FM_outfit_042_01", "FM_outfit_042_01",
"FM_outfit_042_02", "FM_outfit_042_02",
"FM_outfit_043",
"FS_outfit_006", "FS_outfit_006",
"FS_outfit_007", "FS_outfit_007",
"FS_outfit_008", "FS_outfit_008",
@@ -6979,6 +7107,7 @@
"HS_outfit_030_02", "HS_outfit_030_02",
"HS_outfit_030_03", "HS_outfit_030_03",
"HS_outfit_031", "HS_outfit_031",
"HS_outfit_032",
"J_outfit_01", "J_outfit_01",
"J_outfit_01_P01", "J_outfit_01_P01",
"Jake_outfit_001", "Jake_outfit_001",
@@ -7044,6 +7173,7 @@
"JP_outfit_027", "JP_outfit_027",
"JP_outfit_030", "JP_outfit_030",
"JP_outfit_033", "JP_outfit_033",
"JP_outfit_034",
"JP_outfit_08_02", "JP_outfit_08_02",
"K20_outfit_006", "K20_outfit_006",
"K20_outfit_007", "K20_outfit_007",
@@ -7079,6 +7209,9 @@
"K21_outfit_021", "K21_outfit_021",
"K21_outfit_021_01", "K21_outfit_021_01",
"K21_outfit_022", "K21_outfit_022",
"K21_outfit_023",
"K21_outfit_023_01",
"K21_outfit_023_02",
"K22_outfit_006", "K22_outfit_006",
"K22_outfit_007", "K22_outfit_007",
"K22_outfit_007_01", "K22_outfit_007_01",
@@ -7097,6 +7230,7 @@
"K22_outfit_011", "K22_outfit_011",
"K22_outfit_013", "K22_outfit_013",
"K22_outfit_015", "K22_outfit_015",
"K22_outfit_015_01",
"K22_outfit_02", "K22_outfit_02",
"K22_outfit_02_01", "K22_outfit_02_01",
"K23_outfit_006", "K23_outfit_006",
@@ -7218,6 +7352,7 @@
"K30_outfit_011", "K30_outfit_011",
"K30_outfit_012", "K30_outfit_012",
"K30_outfit_013", "K30_outfit_013",
"K30_outfit_013_01",
"K30_outfit_014", "K30_outfit_014",
"K30_outfit_017", "K30_outfit_017",
"K30_outfit_017_01", "K30_outfit_017_01",
@@ -7249,6 +7384,7 @@
"K31_outfit_016", "K31_outfit_016",
"K31_outfit_017", "K31_outfit_017",
"K31_outfit_018", "K31_outfit_018",
"K31_outfit_019",
"K32_outfit_006", "K32_outfit_006",
"K32_outfit_008", "K32_outfit_008",
"K32_outfit_008_01", "K32_outfit_008_01",
@@ -7428,6 +7564,7 @@
"KS_outfit_011", "KS_outfit_011",
"KS_outfit_011_01", "KS_outfit_011_01",
"KS_outfit_012", "KS_outfit_012",
"KS_outfit_012_01",
"KS_outfit_012_02", "KS_outfit_012_02",
"KS_outfit_014", "KS_outfit_014",
"KS_outfit_015", "KS_outfit_015",
@@ -7529,6 +7666,7 @@
"MS_outfit_025", "MS_outfit_025",
"MS_outfit_025_01", "MS_outfit_025_01",
"MS_outfit_026", "MS_outfit_026",
"MS_outfit_027",
"MT_outfit_004_03", "MT_outfit_004_03",
"MT_outfit_004_04", "MT_outfit_004_04",
"MT_outfit_005_01", "MT_outfit_005_01",
@@ -7560,6 +7698,9 @@
"MT_outfit_03_01", "MT_outfit_03_01",
"MT_outfit_030", "MT_outfit_030",
"MT_outfit_032", "MT_outfit_032",
"MT_outfit_036",
"MT_outfit_036_01",
"MT_outfit_036_02",
"MT_outfit008_01", "MT_outfit008_01",
"N_outfit_01", "N_outfit_01",
"N_outfit_01_P01", "N_outfit_01_P01",
@@ -7604,6 +7745,7 @@
"NK_outfit_027", "NK_outfit_027",
"NK_outfit_027_01", "NK_outfit_027_01",
"NK_outfit_029", "NK_outfit_029",
"NK_outfit_029_01",
"NK_outfit_030", "NK_outfit_030",
"NK_outfit_030_01", "NK_outfit_030_01",
"NK_outfit_031", "NK_outfit_031",
@@ -7724,6 +7866,7 @@
"S23_outfit_029", "S23_outfit_029",
"S23_outfit_029_01", "S23_outfit_029_01",
"S23_outfit_031", "S23_outfit_031",
"S23_outfit_031_01",
"S23_outfit_033", "S23_outfit_033",
"S23_outfit_033_01", "S23_outfit_033_01",
"S23_outfit_033_02", "S23_outfit_033_02",
@@ -7762,6 +7905,7 @@
"S24_outfit_026_01", "S24_outfit_026_01",
"S24_outfit_026_02", "S24_outfit_026_02",
"S24_outfit_026_03", "S24_outfit_026_03",
"S24_outfit_028",
"S25_outfit_006", "S25_outfit_006",
"S25_outfit_007", "S25_outfit_007",
"S25_outfit_007_01", "S25_outfit_007_01",
@@ -7800,6 +7944,7 @@
"S25_outfit_031_02", "S25_outfit_031_02",
"S25_outfit_031_03", "S25_outfit_031_03",
"S25_outfit_032", "S25_outfit_032",
"S25_outfit_033",
"S26_Outfit_006", "S26_Outfit_006",
"S26_Outfit_008", "S26_Outfit_008",
"S26_Outfit_009", "S26_Outfit_009",
@@ -7854,6 +7999,7 @@
"S28_outfit_031_02", "S28_outfit_031_02",
"S28_outfit_031_03", "S28_outfit_031_03",
"S28_outfit_032", "S28_outfit_032",
"S28_outfit_034",
"S29_outfit_006", "S29_outfit_006",
"S29_outfit_006_01", "S29_outfit_006_01",
"S29_outfit_008", "S29_outfit_008",
@@ -7909,6 +8055,7 @@
"S31_outfit_022_02", "S31_outfit_022_02",
"S31_outfit_022_03", "S31_outfit_022_03",
"S31_outfit_023", "S31_outfit_023",
"S31_outfit_025",
"S32_outfit_006", "S32_outfit_006",
"S32_outfit_008", "S32_outfit_008",
"S32_outfit_009", "S32_outfit_009",
@@ -7947,6 +8094,9 @@
"S34_outfit_025_01", "S34_outfit_025_01",
"S34_outfit_025_02", "S34_outfit_025_02",
"S34_outfit_025_03", "S34_outfit_025_03",
"S34_outfit_026",
"S34_outfit_026_01",
"S34_outfit_026_02",
"S35_outfit_006", "S35_outfit_006",
"S35_outfit_006_01", "S35_outfit_006_01",
"S35_outfit_007", "S35_outfit_007",
@@ -7977,6 +8127,7 @@
"S35_outfit_023_02", "S35_outfit_023_02",
"S35_outfit_023_03", "S35_outfit_023_03",
"S35_outfit_024", "S35_outfit_024",
"S35_outfit_025",
"S36_outfit_006", "S36_outfit_006",
"S36_outfit_007", "S36_outfit_007",
"S36_outfit_007_01", "S36_outfit_007_01",
@@ -8003,6 +8154,7 @@
"S36_outfit_021", "S36_outfit_021",
"S36_outfit_023", "S36_outfit_023",
"S36_outfit_024", "S36_outfit_024",
"S36_outfit_025",
"S36_outfit014_01", "S36_outfit014_01",
"S37_outfit_006", "S37_outfit_006",
"S37_outfit_009", "S37_outfit_009",
@@ -8028,6 +8180,7 @@
"S37_outfit_023_01", "S37_outfit_023_01",
"S37_outfit_024", "S37_outfit_024",
"S37_outfit_025", "S37_outfit_025",
"S37_outfit_026",
"S38_outfit_006", "S38_outfit_006",
"S38_outfit_007", "S38_outfit_007",
"S38_outfit_008", "S38_outfit_008",
@@ -8048,6 +8201,7 @@
"S39_outfit_01_P01", "S39_outfit_01_P01",
"S39_outfit_010", "S39_outfit_010",
"S39_outfit_011", "S39_outfit_011",
"S39_outfit_013",
"S40_outfit_006", "S40_outfit_006",
"S40_outfit_007", "S40_outfit_007",
"S40_outfit_008", "S40_outfit_008",
@@ -8185,6 +8339,7 @@
"S51_outfit_01_P01", "S51_outfit_01_P01",
"S52_outfit_006", "S52_outfit_006",
"S52_outfit_006_01", "S52_outfit_006_01",
"S52_outfit_007",
"S52_outfit_01", "S52_outfit_01",
"S52_outfit_01_01", "S52_outfit_01_01",
"S52_outfit_01_02", "S52_outfit_01_02",
@@ -8230,6 +8385,7 @@
"Spirit_outfit_009", "Spirit_outfit_009",
"SS_outfit_029", "SS_outfit_029",
"SS_outfit_030", "SS_outfit_030",
"SS_outfit_031",
"SwedenKiller_outfit_006", "SwedenKiller_outfit_006",
"SwedenKiller_outfit_007", "SwedenKiller_outfit_007",
"SwedenKiller_outfit_008", "SwedenKiller_outfit_008",
@@ -8333,6 +8489,9 @@
"TN_outfit_023_02", "TN_outfit_023_02",
"TN_outfit_023_03", "TN_outfit_023_03",
"TN_outfit_026", "TN_outfit_026",
"TN_outfit_027",
"TN_outfit_027_01",
"TN_outfit_027_02",
"TR_outfit_008_01", "TR_outfit_008_01",
"TR_outfit_009", "TR_outfit_009",
"TR_outfit_01_03", "TR_outfit_01_03",
@@ -8351,6 +8510,9 @@
"TR_outfit_024", "TR_outfit_024",
"TR_outfit_026", "TR_outfit_026",
"TR_outfit_027", "TR_outfit_027",
"TR_outfit_031",
"TR_outfit_031_01",
"TR_outfit_031_02",
"TR_outfit_09_02", "TR_outfit_09_02",
"TR_outfit_09_03", "TR_outfit_09_03",
"TR_outfit016_01", "TR_outfit016_01",
@@ -8374,6 +8536,7 @@
"TW_outfit_021", "TW_outfit_021",
"TW_outfit_022", "TW_outfit_022",
"TW_outfit_023", "TW_outfit_023",
"TW_outfit_024",
"UK_outfit_006", "UK_outfit_006",
"UK_outfit_007", "UK_outfit_007",
"UK_outfit_007_02", "UK_outfit_007_02",
@@ -8437,6 +8600,9 @@
"US_outfit_025", "US_outfit_025",
"US_outfit_026", "US_outfit_026",
"US_Outfit_030", "US_Outfit_030",
"US_Outfit_032",
"US_Outfit_032_01",
"US_Outfit_032_02",
"WI_outfit_006_01", "WI_outfit_006_01",
"WI_outfit_007", "WI_outfit_007",
"WI_outfit_008", "WI_outfit_008",
+506
View File
@@ -0,0 +1,506 @@
[
{
"name": "halloween",
"grdk": "9NJ77BPBRSFH",
"egs": "c9d4a48a9576483fb6ba27a99bcb3780",
"steam": "530711"
},
{
"name": "fleshAndMud",
"grdk": "9NJQTSL5PZJL",
"egs": "b18a490a58d548588eb60c2fd6b4c3cc",
"steam": "554381"
},
{
"name": "80suitcase",
"grdk": "9NF6VS6NVC2P",
"egs": "a1f208be98e64c5ea5e946b86f7d19c3",
"steam": "530710"
},
{
"name": "bloodletting",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "639710"
},
{
"name": "bloodstainedSack",
"grdk": "9NW55H5J9NH2",
"egs": "abc74084457d46f5a51f062f540bdeee",
"steam": "554380"
},
{
"name": "Sandman",
"grdk": "9NW2X83B4JJV",
"egs": "439c3c5df54b468696f880401660d7ad",
"steam": "700282"
},
{
"name": "sparkofMadness",
"grdk": "9NX58MLKKQWD",
"egs": "4b9c8d9424ca4a2899505254ba46b109",
"steam": "582600"
},
{
"name": "headCase",
"grdk": "9NCLGTXXZ18Q",
"egs": "93f4e154df3a4254a0ece7241659d84e",
"steam": "577901"
},
{
"name": "lastBreath",
"grdk": "0",
"egs": "0",
"steam": "509060"
},
{
"name": "charityChest",
"grdk": "9P1CNFD3MMC7",
"egs": "0885718299d640708080b66ddb9dceb1",
"steam": "627510"
},
{
"name": "Cannibal",
"grdk": "9NKNQ2DZMLZW",
"egs": "06f5b0d8cf56445390f14516b28ea5c2",
"steam": "700280"
},
{
"name": "GStar2017",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "750380"
},
{
"name": "ChineseEventOct2017",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "724650"
},
{
"name": "XboxPerkNov2020",
"grdk": "9N2DHTZ1D9CC",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "-1"
},
{
"name": "BaseGame",
"grdk": "9NMS4SFNBGBH",
"egs": "daedda2898b74feeac35f222ef02539a",
"steam": "381210"
},
{
"name": "ACPack_01",
"grdk": "9N4LWJH8J800",
"egs": "168d750b4a6f451ca6eb68618a741f2c",
"steam": "555"
},
{
"name": "ACPack_02",
"grdk": "9NSD3C05HVNM",
"egs": "d9ba2a71c7664785a1cfff524edb768c",
"steam": "556"
},
{
"name": "ACPack_03",
"grdk": "9N6FGJW61X23",
"egs": "81c99b3171f941ff9f7915b51e371f05",
"steam": "557"
},
{
"name": "ACPack_04",
"grdk": "9PLG9SM9GNLM",
"egs": "916bfd0101c24561b75e984751e46e95",
"steam": "558"
},
{
"name": "ACPack_05",
"grdk": "9N310FS0QMG8",
"egs": "920f365a9b454af3a9bc675f839bed64",
"steam": "559"
},
{
"name": "ACPack_06",
"grdk": "9N82ZN5T0VB3",
"egs": "87bb22af1b6c4ee19404b34b7321fb4c",
"steam": "560"
},
{
"name": "EpicBrillGeneral",
"grdk": "9ZZZZZZZZZZZ",
"egs": "daedda2898b74feeac35f222ef02539a",
"steam": "-1"
},
{
"name": "EpicSilentHillEdition",
"grdk": "9ZZZZZZZZZZZ",
"egs": "3280c01d39a74adc83be41e3fd74b5d1",
"steam": "-1"
},
{
"name": "EpicUltimateEdition",
"grdk": "9ZZZZZZZZZZZ",
"egs": "7f3b3b5e18f04dd0ac73a98af70dd169",
"steam": "-1"
},
{
"name": "EpicBrillFreeWeek",
"grdk": "9ZZZZZZZZZZZ",
"egs": "a9e88f5bd1a047539c772370f15deb48",
"steam": "-1"
},
{
"name": "StoreItem",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "1"
},
{
"name": "Venus",
"grdk": "9NCZMBJCLTJ3",
"egs": "29fe12a4cb51431793239261cb1fd8c3",
"steam": "2469400"
},
{
"name": "Zodiac",
"grdk": "9MZ841F14MXK",
"egs": "8fbd0077488b4334ae91de61588870ff",
"steam": "2661250"
},
{
"name": "Saturn",
"grdk": "9PCSC363JX1B",
"egs": "e3ec01697342406c89110b8d117eccaf",
"steam": "2294610"
},
{
"name": "EP1",
"grdk": "9N343FZ245RD",
"egs": "489ff36aa1ba47089591bf623f0af9df",
"steam": "1622940"
},
{
"name": "EP2",
"grdk": "9NR9FPF9G79L",
"egs": "f8c85b036b0c418097f7abf10384c821",
"steam": "1622941"
},
{
"name": "Pulcinella",
"grdk": "9MTC8NRZLQ5T",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "-1"
},
{
"name": "Mali",
"grdk": "9N29SR96GQS4",
"egs": "4f8625dec370441da5fd0a11ff0732d8",
"steam": "1009820"
},
{
"name": "DeathGarden",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "555440"
},
{
"name": "Oman",
"grdk": "9NMC8SZPD9GF",
"egs": "cd2c0734ab444693884d200be769be0c",
"steam": "1089270"
},
{
"name": "Guam",
"grdk": "9P0HLNG7X2D0",
"egs": "2e8b8ed7a3cd481abcae1f7986153e50",
"steam": "799200"
},
{
"name": "Kabuki",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "-1"
},
{
"name": "Eclair",
"grdk": "9NGXBJNF1C13",
"egs": "18a5a780992347afa03d190a9c1927f9",
"steam": "3103150"
},
{
"name": "Ketchup",
"grdk": "9NK4H61J4B39",
"egs": "ea868d5b96b94b8ba2c2392d9a8505c0",
"steam": "3796620"
},
{
"name": "Wormhole",
"grdk": "9NC2M3W7NHB5",
"egs": "4ebd4f31838549e38eecb23130e57700",
"steam": "2515990"
},
{
"name": "HeritagePack1",
"grdk": "9NB4CC8GN5S7",
"egs": "c8d9fd67a4184f069c3c080f104b89a4",
"steam": "2526530"
},
{
"name": "HeritagePack2",
"grdk": "9NGRVV847PN9",
"egs": "ac0bf77a00eb43cd822b8ac3690f3731",
"steam": "2526540"
},
{
"name": "HeritagePack3",
"grdk": "9NP99MKHQHZS",
"egs": "b96de0a9a2294e69a6fb0667ef6ddf74",
"steam": "2526550"
},
{
"name": "Poutine",
"grdk": "9PJ0JD3ZWTBX",
"egs": "76d10ee1eacd469797a5d13bddd3850a",
"steam": "4318580"
},
{
"name": "Finland",
"grdk": "9N2P7KNZ816R",
"egs": "18b030008f8847af868aff2f0eaab510",
"steam": "750381"
},
{
"name": "WinterEvent2017",
"grdk": "0",
"egs": "0",
"steam": "0"
},
{
"name": "Jerky",
"grdk": "9P7GG0L4LJBN",
"egs": "e65a462d873046499c01f29910b00b1a",
"steam": "3698790"
},
{
"name": "Quiche",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "-1"
},
{
"name": "Omelet",
"grdk": "0",
"egs": "0",
"steam": "0"
},
{
"name": "Hubble",
"grdk": "9N1XTPLC8DGB",
"egs": "4eb6bf2cdef2438b924c5d8cd2137cc5",
"steam": "1763310"
},
{
"name": "Yerkes",
"grdk": "9P0NJ7CS0TM1",
"egs": "f1e1bce49652456e85de167fbcc52a6a",
"steam": "2656010"
},
{
"name": "Gemini",
"grdk": "9PJNHM94SW0S",
"egs": "bc146268c50b4716a65a132a70d12c0a",
"steam": "1734080"
},
{
"name": "Ukraine",
"grdk": "9PK2JHM3C71C",
"egs": "9a109c018e17400eae350a423e595107",
"steam": "1251000"
},
{
"name": "HeritagePack4",
"grdk": "9NVVCQKVPTQR",
"egs": "e0d3d8e56d934016be3ebf74c5ecc85e",
"steam": "2922730"
},
{
"name": "Aurora",
"grdk": "9N02CL4TC7CQ",
"egs": "ffda316a960d4f41930027dbe0772e0f",
"steam": "1474030"
},
{
"name": "Ion",
"grdk": "9NZFJHT080C9",
"egs": "9e8f8dace7a243c480c6d6d06ab429c9",
"steam": "1804690"
},
{
"name": "Meteor",
"grdk": "9PKZR14F59HK",
"egs": "511e4db16dc544faa03b8fb6811efcc5",
"steam": "1985790"
},
{
"name": "Wales",
"grdk": "9NWVSBTG89KQ",
"egs": "e7d0828eb497411c813951058d8fd931",
"steam": "1324970"
},
{
"name": "WalesCust",
"grdk": "9PHV0FJ8HXVJ",
"egs": "3280c01d39a74adc83be41e3fd74b5d1",
"steam": "1324971"
},
{
"name": "Eclipse",
"grdk": "9P29W29LSSG2",
"egs": "dbf62759c9cc439699256801ee09095c",
"steam": "1634040"
},
{
"name": "ApplePie",
"grdk": "9NLCTCL61ZZ2",
"egs": "9a0c250555c14679a6208e57d89918d2",
"steam": "2661270"
},
{
"name": "Icecream",
"grdk": "9NRWN81GQ9CJ",
"egs": "cee46f4734a94018be459b5a642f0536",
"steam": "3448670"
},
{
"name": "IcecreamCust",
"grdk": "9NPTQDMHG1DT",
"egs": "71836318753941dd8efb7ab68575005b",
"steam": "3605020"
},
{
"name": "Kepler",
"grdk": "9PKPS8SDQQM8",
"egs": "1f3b9ad501c24864b20a9e6faef38310",
"steam": "1899750"
},
{
"name": "Lasagna",
"grdk": "9NZJ81G57RGT",
"egs": "f7dfa0fab53146358c1f87bc08d00b7c",
"steam": "3884020"
},
{
"name": "Yemen",
"grdk": "9NFXH0QD1M7C",
"egs": "89120707a96a4210a9e23dced174632e",
"steam": "1408020"
},
{
"name": "Churros",
"grdk": "9PCWX77XPKLP",
"egs": "19bb1e99cbaa41b08fa06ddde6befa28",
"steam": "2958440"
},
{
"name": "ChurrosCust",
"grdk": "9PC5X94ST9QK",
"egs": "f5940ef33904476b945229c70c0508b3",
"steam": "3002590"
},
{
"name": "Orion",
"grdk": "9P47ZQQJM1N4",
"egs": "a523401428b54369880fd3e9d343ffe8",
"steam": "2102730"
},
{
"name": "OrionCust",
"grdk": "9NX0ZCNSRNR1",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "1"
},
{
"name": "Sweden",
"grdk": "9NJG10XN1LGL",
"egs": "01bbc39db2f446daab0b283343fc99c8",
"steam": "1199880"
},
{
"name": "Donut",
"grdk": "9P7BL680J1XZ",
"egs": "b12e9ce935c04bda8624a02d5d14ea02",
"steam": "3024580"
},
{
"name": "DonutCust",
"grdk": "9ZZZZZZZZZZZ",
"egs": "FFFFFFFFFFFFFFFF",
"steam": "-1"
},
{
"name": "Umbra",
"grdk": "9N5390XWCVZ6",
"egs": "19e7cf4f9329474fa0a2692a14e37fe2",
"steam": "2399750"
},
{
"name": "UmbraCust1",
"grdk": "9P4SDDKMV045",
"egs": "956738aff598412c9a5247cfc7dae735",
"steam": "2405130"
},
{
"name": "UmbraCust2",
"grdk": "9NRRQPTBW978",
"egs": "7dbb037c212947fc8011d0c934dd89f5",
"steam": "2405140"
},
{
"name": "Gelato",
"grdk": "9P4PV6KXJGL2",
"egs": "80cf38fedc164b2c97d6d9570a9ab2cc",
"steam": "3261720"
},
{
"name": "Qatar",
"grdk": "9MSMWW173HB5",
"egs": "42e370c2688e4e96a7bf67d87a01874a",
"steam": "1135280"
},
{
"name": "Comet",
"grdk": "9N54CBKZBV44",
"egs": "87fafa3c2a724dddb87fb2a5cd350dae",
"steam": "1557310"
},
{
"name": "Haiti",
"grdk": "9N78HGQN56L7",
"egs": "ca6f548dabef4026b804aaa0a606a8fa",
"steam": "925750"
},
{
"name": "Nepals",
"grdk": "9N55M38QNMCS",
"egs": "f8ead4a3752f41e69632bfce9838ca9b",
"steam": "1009821"
},
{
"name": "Kenya",
"grdk": "9P62QBBJZSD4",
"egs": "268cae6e74134dee92198670d7b30bcc",
"steam": "971790"
},
{
"name": "Maple",
"grdk": "9N7WDS85VBZG",
"egs": "8ddd7882dca64a5f80ec9f1bea49892d",
"steam": "4019590"
},
{
"name": "Quantum",
"grdk": "9N6Z2RG4GSD4",
"egs": "f6ac362ab0aa462e894e698682a92801",
"steam": "2198470"
}
]
Binary file not shown.
Binary file not shown.
+2
View File
@@ -7,4 +7,6 @@ public static class Constants
public static readonly string AESKey = "0x22B1639B548124925CF7B9CBAA09F9AC295FCF0324586D6B37EE1D42670B39B3"; public static readonly string AESKey = "0x22B1639B548124925CF7B9CBAA09F9AC295FCF0324586D6B37EE1D42670B39B3";
public static readonly string[] BlacklistedCustomizationItems = ["NK_Torso01_Crew01Kraken"]; public static readonly string[] BlacklistedCustomizationItems = ["NK_Torso01_Crew01Kraken"];
public static readonly string[] BlacklistedDLCNames = ["development", "steamOnly", "0", "boreal"];
} }
+79 -10
View File
@@ -2,20 +2,15 @@ using CUE4Parse.Compression;
using CUE4Parse.Encryption.Aes; using CUE4Parse.Encryption.Aes;
using CUE4Parse.FileProvider; using CUE4Parse.FileProvider;
using CUE4Parse.MappingsProvider; using CUE4Parse.MappingsProvider;
using CUE4Parse.UE4.Assets.Exports;
using CUE4Parse.UE4.Assets.Exports.Actor;
using CUE4Parse.UE4.Assets.Exports.Engine; using CUE4Parse.UE4.Assets.Exports.Engine;
using CUE4Parse.UE4.Assets.Exports.Texture; using CUE4Parse.UE4.Assets.Exports.Texture;
using CUE4Parse.UE4.Assets.Objects; using CUE4Parse.UE4.Assets.Objects;
using CUE4Parse.UE4.Assets.Objects.Properties;
using CUE4Parse.UE4.Objects.Core.Misc; using CUE4Parse.UE4.Objects.Core.Misc;
using CUE4Parse.UE4.Versions; using CUE4Parse.UE4.Versions;
using CUE4Parse.UE4.VirtualFileSystem; using CUE4Parse.UE4.VirtualFileSystem;
using CUE4Parse.UE4.Wwise.Plugins.MasteringSuite; using CUE4Parse.Utils;
using Microsoft.Win32; using Microsoft.Win32;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Reflection;
class Dumper class Dumper
{ {
private DefaultFileProvider? _provider = null; private DefaultFileProvider? _provider = null;
@@ -26,10 +21,19 @@ class Dumper
/* /*
* ensure mapping * ensure mapping
*/ */
string mappingPath = Path.Combine(Path.GetTempPath(), "DeadByDaylight.usmap"); string mappingPath;
bool hasDownloadedMapping = await DownloadMappingFileAsync(Constants.MappingURL, mappingPath);
if (!hasDownloadedMapping) string baseDir = AppDomain.CurrentDomain.BaseDirectory;
return false; string localMappingPath = Path.GetFullPath(Path.Combine(baseDir, "..", "..", "..", "res", "mappings", "latest-xbox.usmap"));
if (File.Exists(localMappingPath))
mappingPath = localMappingPath;
else
{
mappingPath = Path.Combine(Path.GetTempPath(), "DeadByDaylight.usmap");
bool hasDownloadedMapping = await DownloadMappingFileAsync(Constants.MappingURL, mappingPath);
if (!hasDownloadedMapping)
return false;
}
/* /*
* compression setup * compression setup
@@ -363,6 +367,71 @@ class Dumper
return JsonConvert.SerializeObject(perksSerialized, Formatting.Indented); return JsonConvert.SerializeObject(perksSerialized, Formatting.Indented);
} }
public struct DLCInfo
{
public string name;
public string? grdk;
public string? egs;
public string? steam;
};
public string? DumpDLCs()
{
if (_dataPak == null || _provider == null) return null;
var searchPaths = _dataPak.Files.Keys.Where(x => x.Contains($"/DlcDB.uasset", StringComparison.OrdinalIgnoreCase)).ToList();
var dlcs = new List<DLCInfo>();
foreach (var path in searchPaths)
{
var cleanPath = path.Contains('.') ? path.Substring(0, path.LastIndexOf('.')) : path;
if (_provider.TryLoadPackageObject<UDataTable>(cleanPath, out var dataTable))
{
foreach (var row in dataTable.RowMap)
{
/*
* props
*/
var props = row.Value.Properties;
FPropertyTag? steamIdProp = row.Value.Properties.FirstOrDefault(p => p.Name.Text == "DlcIdSteam");
FPropertyTag? grdkIdProp = row.Value.Properties.FirstOrDefault(p => p.Name.Text == "DlcIdGRDK");
FPropertyTag? epicIdProp = row.Value.Properties.FirstOrDefault(p => p.Name.Text == "DlcIdEpic");
/*
* real data
*/
string dlcName = row.Key.Text;
if (Constants.BlacklistedDLCNames.Contains(dlcName)) continue;
string? steamId = null, grdkId = null, epicId = null;
if (steamIdProp != null && steamIdProp.Tag != null)
steamId = steamIdProp.Tag.GetValue<string>();
if (grdkIdProp != null && grdkIdProp.Tag != null)
grdkId = grdkIdProp.Tag.GetValue<string>();
if (epicIdProp != null && epicIdProp.Tag != null)
epicId = epicIdProp.Tag.GetValue<string>();
var info = new DLCInfo
{
name = dlcName,
steam = steamId,
grdk = grdkId,
egs = epicId
};
dlcs.Add(info);
}
}
}
return JsonConvert.SerializeObject(dlcs, Formatting.Indented);
}
private string? getGamePath() private string? getGamePath()
{ {
const string packagesPath = @"Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages"; const string packagesPath = @"Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages";
+17 -49
View File
@@ -1,5 +1,3 @@
using CUE4Parse.UE4.Assets.Exports.CustomizableObject;
int displayError(string err) int displayError(string err)
{ {
Console.WriteLine($"Dumper error: {err}"); Console.WriteLine($"Dumper error: {err}");
@@ -16,57 +14,27 @@ if (!hasInitialized) return displayError("Dumper.InitAsync failed");
Console.WriteLine("Dumper initialized"); Console.WriteLine("Dumper initialized");
string? customizationItemsJSON = dumper.DumpCustomizationItems(); var dumpTasks = new (Func<string?> dumpFunc, string filename, string description)[]
if (customizationItemsJSON != null)
{ {
File.WriteAllText("customizations.json", customizationItemsJSON); (dumper.DumpCustomizationItems, "customizations.json", "customizations"),
} (dumper.DumpItems, "items.json", "items"),
else (dumper.DumpAddons, "addons.json", "addons"),
{ (dumper.DumpOfferings, "offerings.json", "offerings"),
Console.WriteLine("Failed to dump customizations"); (dumper.DumpPerks, "perks.json", "perks"),
} (dumper.DumpDLCs, "dlcs.json", "dlcs")
};
string? itemsJSON = dumper.DumpItems(); foreach (var (dumpFunc, filename, description) in dumpTasks)
if (itemsJSON != null)
{ {
File.WriteAllText("items.json", itemsJSON); string? json = dumpFunc();
} if (json != null)
else {
{ File.WriteAllText(filename, json);
Console.WriteLine("Failed to dump items"); Console.WriteLine($"Dumped {description}");
} }
else
string? addonsJSON = dumper.DumpAddons(); Console.WriteLine($"Failed to dump {description}");
if (addonsJSON != null)
{
File.WriteAllText("addons.json", addonsJSON);
}
else
{
Console.WriteLine("Failed to dump addons");
}
string? offeringsJSON = dumper.DumpOfferings();
if (offeringsJSON != null)
{
File.WriteAllText("offerings.json", offeringsJSON);
}
else
{
Console.WriteLine("Failed to dump offerings");
}
string? perksJSON = dumper.DumpPerks();
if (perksJSON != null)
{
File.WriteAllText("perks.json", perksJSON);
}
else
{
Console.WriteLine("Failed to dump perks");
} }
Console.WriteLine("Dumper finished"); Console.WriteLine("Dumper finished");
return 0; return 0;
+129
View File
@@ -0,0 +1,129 @@
#include "cachecleaner.h"
#include <nerutils/log.h>
#include <filesystem>
#include <unordered_set>
#include <windows.h>
#include <shlobj.h>
#include <tlhelp32.h>
CacheCleaner::CacheCleaner() : _running(false), _monitorThread(nullptr) {}
CacheCleaner::~CacheCleaner()
{
shutdown();
}
void CacheCleaner::init()
{
std::string localAppData = getLocalAppDataPath();
if (localAppData == "") return Log::error("Failed to get LocalAppData?");
_cacheDir = localAppData + "\\DeadByDaylight\\Saved\\PersistentDownloadDir";
// this is pointless but just in case
std::filesystem::create_directories(_cacheDir);
clearFolder(_cacheDir);
_running = true;
//_monitorThread = std::make_unique<std::thread>(&CacheCleaner::monitorLoop, this);
}
void CacheCleaner::shutdown()
{
if (!_running) return;
_running = false;
if (_monitorThread && _monitorThread->joinable()) _monitorThread->join();
}
std::string CacheCleaner::getLocalAppDataPath()
{
char buffer[MAX_PATH];
if (SHGetFolderPathA(NULL, CSIDL_LOCAL_APPDATA, NULL, 0, buffer) == S_OK)
{
return std::string(buffer);
}
return "";
}
void CacheCleaner::clearFolder(std::string& path)
{
try
{
for (const auto& entry : std::filesystem::directory_iterator(path))
{
std::filesystem::remove_all(entry.path());
}
}
catch (...)
{
}
}
void CacheCleaner::monitorLoop()
{
HANDLE changeHandle = FindFirstChangeNotificationA(_cacheDir.c_str(), TRUE,
FILE_NOTIFY_CHANGE_FILE_NAME | FILE_NOTIFY_CHANGE_DIR_NAME |
FILE_NOTIFY_CHANGE_LAST_WRITE);
if (changeHandle == INVALID_HANDLE_VALUE)
{
Log::error("Failed to create change notification");
_running = false;
return;
}
Log::verbose("Cache cleaner monitoring started");
std::unordered_set<DWORD> previousPids;
while (_running)
{
// Wait 2 seconds between checks
for (int i = 0; i < 20 && _running; i++)
Sleep(100);
if (!_running) break;
// Take snapshot and check for new processes in one pass
HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (hSnapshot == INVALID_HANDLE_VALUE) continue;
PROCESSENTRY32 pe32;
pe32.dwSize = sizeof(PROCESSENTRY32);
std::unordered_set<DWORD> currentPids;
if (Process32First(hSnapshot, &pe32))
{
do
{
DWORD pid = pe32.th32ProcessID;
currentPids.insert(pid);
if (previousPids.find(pid) == previousPids.end())
{
std::string processName(pe32.szExeFile);
for (char& c : processName)
c = static_cast<char>(tolower(c));
if (processName.find("deadbydaylight") != std::string::npos)
{
Log::verbose("New DeadByDaylight process detected (PID: {}), clearing cache", pid);
clearFolder(_cacheDir);
}
}
} while (Process32Next(hSnapshot, &pe32));
}
CloseHandle(hSnapshot);
previousPids = std::move(currentPids);
}
FindCloseChangeNotification(changeHandle);
}
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <string>
#include <atomic>
#include <thread>
class CacheCleaner
{
public:
CacheCleaner();
~CacheCleaner();
void init();
void shutdown();
private:
std::string getLocalAppDataPath();
void clearFolder(std::string& path);
void monitorLoop();
std::atomic<bool> _running;
std::unique_ptr<std::thread> _monitorThread;
std::string _cacheDir;
};
+474
View File
@@ -0,0 +1,474 @@
#include "dbdcrypt.h"
#include <nerutils/log.h>
#include <algorithm>
#include <cstring>
#include <zlib.h>
#include <openssl/types.h>
#include <openssl/evp.h>
#include <openssl/bio.h>
#include <openssl/buffer.h>
std::string DBDCrypt::decrypt(const std::string& data, const std::string& accessKey, PayloadType* outType)
{
if (outType) *outType = NONE;
if (data.starts_with("DbdDAQEB"))
{
if (outType && *outType == NONE) *outType = TYPE_1;
return decType1(data, accessKey, outType);
}
if (data.starts_with("DbdDAgAC"))
{
if (outType && *outType == NONE) *outType = TYPE_2;
return decType2(data, accessKey, outType);
}
if (data.starts_with("DbdDAwAC"))
{
if (outType && *outType == NONE) *outType = TYPE_3;
return decType3(data, accessKey, outType);
}
Log::warning("Attempted to decrypt non encrypted string");
return data;
}
std::string DBDCrypt::encrypt(const std::string& data, const std::string& accessKey, PayloadType type,
std::string keyId)
{
if (type == TYPE_1)
{
auto compressed = zLibCompress(data); // Type 1 is UTF-8
if (compressed.empty()) return "";
uint32_t rawSize = (uint32_t)data.size();
std::vector<uint8_t> fullPayload(4);
std::memcpy(fullPayload.data(), &rawSize, 4);
fullPayload.insert(fullPayload.end(), compressed.begin(), compressed.end());
return "DbdDAQEB" + b64Enc(fullPayload);
}
if (type == TYPE_2)
{
auto transformedKey = transformCDNKey(CDN_KEY_BASE64);
std::string utf16Data = utf8ToUtf16(data);
for (char& c : utf16Data)
c = (char)((unsigned char)c - 1);
std::vector<uint8_t> padded(utf16Data.begin(), utf16Data.end());
int padLen = 16 - (padded.size() % 16);
if (padLen < 16) padded.insert(padded.end(), padLen, 0);
auto encryptedBody = aesECBEncrypt(padded, transformedKey);
if (encryptedBody.empty()) return "";
std::vector<uint8_t> fullPayload(encryptedBody.begin(), encryptedBody.end());
return "DbdDAgAC" + b64Enc(fullPayload);
}
if (type == TYPE_3)
{
auto decodedKey = b64Dec(accessKey);
if (decodedKey.empty()) return "";
std::string utf16Data = utf8ToUtf16(data);
for (char& c : utf16Data)
c = (char)((unsigned char)c - 1);
std::vector<uint8_t> padded(utf16Data.begin(), utf16Data.end());
int padLen = 16 - (padded.size() % 16);
if (padLen < 16) padded.insert(padded.end(), padLen, 0);
auto encryptedBody = aesECBEncrypt(padded, decodedKey);
if (encryptedBody.empty()) return "";
std::string shiftedId = shiftKeyID(keyId, -1);
std::vector<uint8_t> fullData(shiftedId.begin(), shiftedId.end());
fullData.push_back(0); // Null terminator
fullData.insert(fullData.end(), (uint8_t*)encryptedBody.data(),
(uint8_t*)encryptedBody.data() + encryptedBody.size());
return "DbdDAwAC" + b64Enc(fullData);
}
return std::string();
}
std::string DBDCrypt::decType1(const std::string& data, const std::string& key, PayloadType* outType)
{
if (data.length() < 8) return data;
auto decoded = b64Dec(data.substr(8));
if (decoded.size() < 4)
{
Log::error("Type 1 base64 too short ({})", decoded.size());
return "";
}
std::vector<uint8_t> body(decoded.begin() + 4, decoded.end());
std::string decompressed = zlibDecompress(body);
if (decompressed.length() >= 2 && decompressed[1] == '\0') decompressed = utf16ToUtf8(decompressed);
if (decompressed.starts_with("DbdD")) return decrypt(decompressed, key, outType);
return decompressed;
}
std::string DBDCrypt::decType2(const std::string& data, const std::string& key, PayloadType* outType)
{
if (data.length() < 8) return data;
auto decoded = b64Dec(data.substr(8));
if (decoded.empty()) return "";
std::vector<uint8_t> body = decoded;
auto transformedKey = transformCDNKey(CDN_KEY_BASE64);
std::string decrypted = aesECBDecrypt(body, transformedKey);
if (decrypted.empty()) return "";
for (char& c : decrypted)
c = (char)((unsigned char)c + 1);
if (decrypted.length() >= 2 && decrypted[1] == '\0') decrypted = utf16ToUtf8(decrypted);
decrypted.erase(std::remove(decrypted.begin(), decrypted.end(), (char)0x01), decrypted.end());
decrypted.erase(std::remove(decrypted.begin(), decrypted.end(), (char)0x00), decrypted.end());
for (size_t offset : {0ULL, 4ULL})
{
if (offset + 1 < decrypted.size() && (unsigned char)decrypted[offset] == 0x78)
{
std::vector<uint8_t> zlibPart((uint8_t*)decrypted.data() + offset,
(uint8_t*)decrypted.data() + decrypted.size());
std::string decompressed = zlibDecompress(zlibPart);
if (!decompressed.empty()) return decompressed;
}
}
if (decrypted.starts_with("DbdD")) return decrypt(decrypted, key, outType);
return decrypted;
}
std::string DBDCrypt::decType3(const std::string& data, const std::string& key, PayloadType* outType)
{
if (data.length() < 8) return data;
auto rawKey = b64Dec(key);
auto decoded = b64Dec(data.substr(8));
if (decoded.empty()) return "";
auto it = std::find(decoded.begin(), decoded.end(), 0);
if (it == decoded.end()) return "";
std::vector<uint8_t> body(it + 1, decoded.end());
std::string decrypted = aesECBDecrypt(body, rawKey);
if (decrypted.empty())
{
Log::error("AES decryption failed (body size: {})", body.size());
return "";
}
for (char& c : decrypted)
c = (char)((unsigned char)c + 1);
if (decrypted.length() >= 2 && decrypted.at(1) == '\0') decrypted = utf16ToUtf8(decrypted);
decrypted.erase(std::remove(decrypted.begin(), decrypted.end(), (char)0x01), decrypted.end());
decrypted.erase(std::remove(decrypted.begin(), decrypted.end(), (char)0x00), decrypted.end());
for (size_t offset : {0ULL, 4ULL})
{
if (offset + 1 < decrypted.size() && (unsigned char)decrypted[offset] == 0x78)
{
//Log::verbose("nested zlib at offset {}", offset);
std::vector<uint8_t> zlibPart((uint8_t*)decrypted.data() + offset,
(uint8_t*)decrypted.data() + decrypted.size());
std::string decompressed = zlibDecompress(zlibPart);
if (!decompressed.empty())
{
//Log::verbose("nested zlib decompressed, size: {}", decompressed.length());
return decompressed;
}
}
}
if (decrypted.starts_with("DbdD")) return decrypt(decrypted, key, outType);
return decrypted;
}
std::string DBDCrypt::aesECBDecrypt(const std::vector<uint8_t>& cipherText, const std::vector<uint8_t>& key)
{
if (key.size() < 32) return "";
EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
EVP_DecryptInit_ex(ctx, EVP_aes_256_ecb(), NULL, key.data(), NULL);
EVP_CIPHER_CTX_set_padding(ctx, 0);
std::string plaintext;
plaintext.resize(cipherText.size());
int len = 0;
if (EVP_DecryptUpdate(ctx, (unsigned char*)plaintext.data(), &len, cipherText.data(), (int)cipherText.size()) != 1)
{
EVP_CIPHER_CTX_free(ctx);
return "";
}
int outLen = len;
int finalLen = 0;
if (EVP_DecryptFinal_ex(ctx, (unsigned char*)plaintext.data() + len, &finalLen) != 1)
{
// ignore?
}
outLen += finalLen;
EVP_CIPHER_CTX_free(ctx);
plaintext.resize(outLen);
return plaintext;
}
std::string DBDCrypt::aesECBEncrypt(const std::vector<uint8_t>& plainText, const std::vector<uint8_t>& key)
{
if (key.size() < 32) return "";
EVP_CIPHER_CTX* ctx = EVP_CIPHER_CTX_new();
EVP_EncryptInit_ex(ctx, EVP_aes_256_ecb(), NULL, key.data(), NULL);
EVP_CIPHER_CTX_set_padding(ctx, 0);
std::string ciphertext;
ciphertext.resize(plainText.size() + 16);
int len = 0;
if (EVP_EncryptUpdate(ctx, (unsigned char*)ciphertext.data(), &len, plainText.data(), (int)plainText.size()) != 1)
{
EVP_CIPHER_CTX_free(ctx);
return "";
}
int outLen = len;
int finalLen = 0;
if (EVP_EncryptFinal_ex(ctx, (unsigned char*)ciphertext.data() + outLen, &finalLen) == 1)
{
outLen += finalLen;
}
EVP_CIPHER_CTX_free(ctx);
ciphertext.resize(outLen);
return ciphertext;
}
std::vector<uint8_t> DBDCrypt::b64Dec(const std::string& input)
{
std::string in = input;
std::replace(in.begin(), in.end(), '-', '+');
std::replace(in.begin(), in.end(), '_', '/');
BIO *bio, *b64;
int decodeLen = (int)in.length();
std::vector<uint8_t> buffer(decodeLen);
bio = BIO_new_mem_buf(in.data(), decodeLen);
b64 = BIO_new(BIO_f_base64());
bio = BIO_push(b64, bio);
BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL);
int len = BIO_read(bio, buffer.data(), decodeLen);
BIO_free_all(bio);
if (len < 0) return {};
buffer.resize(len);
return buffer;
}
std::string DBDCrypt::b64Enc(const std::vector<uint8_t>& input)
{
if (input.empty()) return "";
BIO *bio, *b64;
BUF_MEM* bufferPtr;
b64 = BIO_new(BIO_f_base64());
bio = BIO_new(BIO_s_mem());
bio = BIO_push(b64, bio);
BIO_set_flags(bio, BIO_FLAGS_BASE64_NO_NL);
BIO_write(bio, input.data(), (int)input.size());
BIO_flush(bio);
BIO_get_mem_ptr(bio, &bufferPtr);
std::string result(bufferPtr->data, bufferPtr->length);
BIO_free_all(bio);
return result;
}
std::string DBDCrypt::zlibDecompress(const std::vector<uint8_t>& compressed)
{
if (compressed.empty()) return "";
z_stream strm;
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
strm.avail_in = (uInt)compressed.size();
strm.next_in = (Bytef*)compressed.data();
if (inflateInit(&strm) != Z_OK) return "";
std::string result;
char buffer[32768];
do
{
strm.avail_out = sizeof(buffer);
strm.next_out = (Bytef*)buffer;
int ret = inflate(&strm, Z_NO_FLUSH);
if (ret != Z_OK && ret != Z_STREAM_END)
{
inflateEnd(&strm);
return "";
}
result.append(buffer, sizeof(buffer) - strm.avail_out);
} while (strm.avail_out == 0);
inflateEnd(&strm);
return result;
}
std::vector<uint8_t> DBDCrypt::zLibCompress(const std::string& data)
{
if (data.empty()) return {};
z_stream strm;
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;
if (deflateInit(&strm, Z_DEFAULT_COMPRESSION) != Z_OK) return {};
strm.avail_in = (uInt)data.size();
strm.next_in = (Bytef*)data.data();
std::vector<uint8_t> result;
uint8_t buffer[32768];
do
{
strm.avail_out = sizeof(buffer);
strm.next_out = (Bytef*)buffer;
deflate(&strm, Z_FINISH);
result.insert(result.end(), buffer, buffer + (sizeof(buffer) - strm.avail_out));
} while (strm.avail_out == 0);
deflateEnd(&strm);
return result;
}
std::vector<uint8_t> DBDCrypt::transformCDNKey(const std::string& b64CDNKey)
{
auto encryptedKey = b64Dec(b64CDNKey);
std::vector<uint8_t> uuidKey(32, 0);
std::memcpy(uuidKey.data(), CDN_UUID, std::min((size_t)32, strlen(CDN_UUID)));
std::string decrypted = aesECBDecrypt(encryptedKey, uuidKey);
std::vector<uint8_t> finalKey(decrypted.begin(), decrypted.end());
if (finalKey.size() > 32)
finalKey.resize(32);
else if (finalKey.size() < 32)
finalKey.resize(32, 0);
return finalKey;
}
std::string DBDCrypt::shiftKeyID(const std::string& id, int shift)
{
std::string res = id;
for (char& c : res)
c = (char)((unsigned char)c + shift);
return res;
}
std::string DBDCrypt::utf16ToUtf8(const std::string& utf16)
{
if (utf16.empty()) return "";
std::string utf8;
for (size_t i = 0; i < utf16.length(); i += 2)
{
uint16_t cp = *(uint16_t*)(utf16.data() + i);
if (cp == 0) break;
if (cp < 0x80)
utf8 += (char)cp;
else if (cp < 0x800)
{
utf8 += (char)(0xC0 | (cp >> 6));
utf8 += (char)(0x80 | (cp & 0x3F));
}
else
{
utf8 += (char)(0xE0 | (cp >> 12));
utf8 += (char)(0x80 | ((cp >> 6) & 0x3F));
utf8 += (char)(0x80 | (cp & 0x3F));
}
}
return utf8;
}
std::string DBDCrypt::utf8ToUtf16(const std::string& utf8)
{
if (utf8.empty()) return "";
std::string utf16;
for (size_t i = 0; i < utf8.length();)
{
uint32_t cp = 0;
unsigned char c = utf8[i];
if (c < 0x80)
{
cp = c;
i += 1;
}
else if (c < 0xE0)
{
cp = ((c & 0x1F) << 6) | (utf8[i + 1] & 0x3F);
i += 2;
}
else if (c < 0xF0)
{
cp = ((c & 0x0F) << 12) | ((utf8[i + 1] & 0x3F) << 6) | (utf8[i + 2] & 0x3F);
i += 3;
}
else
{
cp = ((c & 0x07) << 18) | ((utf8[i + 1] & 0x3F) << 12) | ((utf8[i + 2] & 0x3F) << 6) | (utf8[i + 3] & 0x3F);
i += 4;
}
if (cp < 0x10000)
{
utf16.push_back((char)(cp & 0xFF));
utf16.push_back((char)(cp >> 8));
}
else
{
cp -= 0x10000;
uint16_t high = (uint16_t)(0xD800 | (cp >> 10));
uint16_t low = (uint16_t)(0xDC00 | (cp & 0x3FF));
utf16.push_back((char)(high & 0xFF));
utf16.push_back((char)(high >> 8));
utf16.push_back((char)(low & 0xFF));
utf16.push_back((char)(low >> 8));
}
}
return utf16;
}
+52
View File
@@ -0,0 +1,52 @@
#pragma once
#include <string>
#include <vector>
#include <cstdint>
// 9.5.2_live
#define ACCESS_KEY "BGz7nwlRX8QP__fzvqrgpNRVqrlEyuY54vuGVAqDO_g="
#define KEY_ID "9.5.2_live"
/*
hardcoded variables (they have been the same since like 2017)
*/
#define CDN_KEY_BASE64 "lEQWeCt51ET+MIuxdTs7Ig/gzVZP2vdkVZA1BDfz+L0="
#define CDN_UUID "6EF35759-454D-4EBC-8041-9A94CB99FD5D"
class DBDCrypt
{
public:
enum PayloadType
{
NONE = 0,
TYPE_1, // compressed
TYPE_2, // CDN
TYPE_3 // dyn / accesskey
};
static std::string decrypt(const std::string& data, const std::string& accessKey,
PayloadType* outType = nullptr);
static std::string encrypt(const std::string& data, const std::string& accessKey, PayloadType type,
std::string keyId);
private:
static std::string decType1(const std::string& data, const std::string& key, PayloadType* outType);
static std::string decType2(const std::string& data, const std::string& key, PayloadType* outType);
static std::string decType3(const std::string& data, const std::string& key, PayloadType* outType);
static std::string aesECBDecrypt(const std::vector<uint8_t>& cipherText, const std::vector<uint8_t>& key);
static std::string aesECBEncrypt(const std::vector<uint8_t>& plainText, const std::vector<uint8_t>& key);
static std::vector<uint8_t> b64Dec(const std::string& input);
static std::string b64Enc(const std::vector<uint8_t>& input);
static std::string zlibDecompress(const std::vector<uint8_t>& compressed);
static std::vector<uint8_t> zLibCompress(const std::string& data);
static std::vector<uint8_t> transformCDNKey(const std::string& b64CDNKey);
static std::string shiftKeyID(const std::string& id, int shift);
static std::string utf16ToUtf8(const std::string& utf16);
static std::string utf8ToUtf16(const std::string& utf8);
};
+15
View File
@@ -1,5 +1,6 @@
#include "proxy.h" #include "proxy.h"
#include "spoofing.h" #include "spoofing.h"
#include "cachecleaner.h"
#include <nerutils/log.h> #include <nerutils/log.h>
@@ -55,6 +56,7 @@ bool setProxyAddress(bool enable, const std::string& proxyAddr)
bool running = true; bool running = true;
Proxy* proxy = nullptr; Proxy* proxy = nullptr;
CacheCleaner* cleaner = nullptr;
void cleanup() void cleanup()
{ {
@@ -72,6 +74,12 @@ void cleanup()
Log::info("Shutting down proxy"); Log::info("Shutting down proxy");
proxy->shutdown(); proxy->shutdown();
} }
if (cleaner)
{
Log::info("Shutting down cache cleaner");
cleaner->shutdown();
}
} }
BOOL WINAPI consoleHandler(DWORD dwType) BOOL WINAPI consoleHandler(DWORD dwType)
@@ -117,6 +125,13 @@ int main()
spoofer->init(proxy); spoofer->init(proxy);
/*
cache cleaner setup
*/
Log::info("Cache cleaner init");
cleaner = new CacheCleaner();
cleaner->init();
/* /*
pause pause
*/ */
+5
View File
@@ -526,6 +526,11 @@ void Proxy::handleClient(SOCKET clientSocket)
OnClientRequest.run(url, fullBody, headers); OnClientRequest.run(url, fullBody, headers);
removeHeader(headers, "Transfer-Encoding");
removeHeader(headers, "Content-Length");
headers.insert(headers.size() - 2,
"Content-Length: " + std::to_string(fullBody.size()) + "\r\n");
SSL_write(remoteSSL.get(), headers.data(), (int)headers.size()); SSL_write(remoteSSL.get(), headers.data(), (int)headers.size());
SSL_write(remoteSSL.get(), fullBody.data(), (int)fullBody.size()); SSL_write(remoteSSL.get(), fullBody.data(), (int)fullBody.size());
+1 -1
View File
@@ -30,7 +30,7 @@ class Proxy
bool init(); bool init();
void shutdown(); void shutdown();
CallbackEvent<std::string&, const std::string&, std::string&> OnClientRequest; CallbackEvent<const std::string&, std::string&, std::string&> OnClientRequest;
CallbackEvent<const std::string&, std::string&, std::string&> OnServerResponse; CallbackEvent<const std::string&, std::string&, std::string&> OnServerResponse;
void addWhitelistDomain(const std::string& domain); void addWhitelistDomain(const std::string& domain);
+162 -21
View File
@@ -1,4 +1,4 @@
#include "spoofing.h" #include "spoofing.h"
#include "utils.h" #include "utils.h"
#include <string> #include <string>
@@ -51,7 +51,7 @@ void Spoofer::registerListeners(Proxy* proxy)
this->serverResponseHandler(url, body, respHeaders); this->serverResponseHandler(url, body, respHeaders);
}); });
proxy->OnClientRequest.addListener([this](std::string& url, const std::string& body, std::string& reqHeaders) { proxy->OnClientRequest.addListener([this](const std::string& url, std::string& body, std::string& reqHeaders) {
this->clientRequestHandler(url, body, reqHeaders); this->clientRequestHandler(url, body, reqHeaders);
}); });
} }
@@ -101,6 +101,47 @@ void Spoofer::loadData()
Log::verbose("Loaded customizations.json"); Log::verbose("Loaded customizations.json");
} }
/*
characters
*/
std::ifstream characterFile(utils::getExePath() + "characters.json");
if (characterFile.is_open())
{
std::stringstream buff;
buff << characterFile.rdbuf();
json doc = json::parse(buff.str(), nullptr, false);
if (doc.is_discarded())
Log::error("Failed to parse characters.json");
else
{
for (const auto& character : doc)
{
if (character.is_string()) _characterList.insert(character.get<std::string>());
}
}
}
/*
dlcs
*/
std::ifstream dlcFile(utils::getExePath() + "dlcs.json");
if (dlcFile.is_open())
{
std::stringstream buff;
buff << dlcFile.rdbuf();
json doc = json::parse(buff.str(), nullptr, false);
if (doc.is_discarded())
Log::error("Failed to parse dlcs.json");
else
{
for (const auto& dlc : doc)
{
if (dlc.contains("grdk")) _dlcListGRDK.insert(dlc["grdk"].get<std::string>());
if (dlc.contains("egs")) _dlcListEGS.insert(dlc["egs"].get<std::string>());
}
}
}
Log::verbose("Finished loading data"); Log::verbose("Finished loading data");
Log::verbose("Items - {} camper", _camperItemIds.size()); Log::verbose("Items - {} camper", _camperItemIds.size());
@@ -110,6 +151,8 @@ void Spoofer::loadData()
Log::verbose("Perks - {} camper | {} slasher ", _camperPerkIds.size(), _slasherPerkIds.size()); Log::verbose("Perks - {} camper | {} slasher ", _camperPerkIds.size(), _slasherPerkIds.size());
Log::verbose("Catalog - {} outfits | {} items", _catalogOutfitIds.size(), _catalogItemIds.size()); Log::verbose("Catalog - {} outfits | {} items", _catalogOutfitIds.size(), _catalogItemIds.size());
Log::verbose("Characters - {}", _characterList.size());
Log::verbose("DLCs - GRDK {} - EGS: {}", _dlcListGRDK.size(), _dlcListEGS.size());
} }
void Spoofer::loadConfig() void Spoofer::loadConfig()
@@ -126,6 +169,8 @@ void Spoofer::loadConfig()
configJson.value("spoofCharacterOwnership", _config.spoofCharacterOwnership); configJson.value("spoofCharacterOwnership", _config.spoofCharacterOwnership);
_config.spoofInventory = configJson.value("spoofInventory", _config.spoofInventory); _config.spoofInventory = configJson.value("spoofInventory", _config.spoofInventory);
_config.spoofCustomization = configJson.value("spoofCustomization", _config.spoofCustomization); _config.spoofCustomization = configJson.value("spoofCustomization", _config.spoofCustomization);
_config.accessKey = configJson.value("accessKey", _config.accessKey);
_config.keyId = configJson.value("keyId", _config.keyId);
} }
catch (...) catch (...)
{ {
@@ -137,13 +182,16 @@ void Spoofer::loadConfig()
Log::info("config.json not found, using default settings"); Log::info("config.json not found, using default settings");
json defaultConfig = {{"spoofCharacterOwnership", _config.spoofCharacterOwnership}, json defaultConfig = {{"spoofCharacterOwnership", _config.spoofCharacterOwnership},
{"spoofInventory", _config.spoofInventory}, {"spoofInventory", _config.spoofInventory},
{"spoofCustomization", _config.spoofCustomization}}; {"spoofCustomization", _config.spoofCustomization},
{"accessKey", _config.accessKey},
{"keyId", _config.keyId}};
std::ofstream out(configPath); std::ofstream out(configPath);
out << defaultConfig.dump(4); out << defaultConfig.dump(4);
} }
Log::info("Loaded config: Ownership={}, Inventory={}, Customization={}", _config.spoofCharacterOwnership, Log::info("Loaded config: Ownership={}, Inventory={}, Customization={}, AccessKey={}, keyId={}",
_config.spoofInventory, _config.spoofCustomization); _config.spoofCharacterOwnership, _config.spoofInventory, _config.spoofCustomization, _config.accessKey,
_config.keyId);
} }
/* /*
@@ -293,7 +341,7 @@ void Spoofer::modifyCharacterData(json& js)
{ {
bool needsSpoofing = false; bool needsSpoofing = false;
if (js.value("isEntitled", false) == false) if (js.contains("isEntitled") && js["isEntitled"] == false)
{ {
_unownedCharacters.insert(name); _unownedCharacters.insert(name);
js["isEntitled"] = true; js["isEntitled"] = true;
@@ -373,7 +421,7 @@ void Spoofer::modifyCharacterData(json& js)
appendItems(_slasherPerkIds, true); appendItems(_slasherPerkIds, true);
} }
appendItems(_globalOfferingIds, true); appendItems(_globalOfferingIds, false);
} }
} }
@@ -382,6 +430,28 @@ void Spoofer::modifyCharacterData(json& js)
#endif #endif
} }
void Spoofer::onGetAllClient(std::string& body)
{
if (!_config.spoofCharacterOwnership) return;
json doc = json::parse(body, nullptr, false);
if (doc.is_discarded()) return Log::error("JSON parse error for dbd-inventories/all (client)");
if (doc.contains("ownedCharacters") && doc["ownedCharacters"].is_array())
{
auto& jsonList = doc["ownedCharacters"];
for (const std::string& charName : _characterList)
{
if (charName == "K25") continue;
if (std::find(jsonList.begin(), jsonList.end(), charName) == jsonList.end()) jsonList.push_back(charName);
}
body = doc.dump();
}
}
/* /*
endpoint handlers endpoint handlers
*/ */
@@ -530,6 +600,13 @@ void Spoofer::onMessageList(std::string& body)
#endif #endif
} }
void Spoofer::onBloodwebClient(std::string& body)
{
json req = json::parse(body, nullptr, false);
if (req.is_discarded()) return Log::error("JSON parse error for bloodweb request handler");
if (req.contains("characterName")) this->_lastBloodWebChar = req["characterName"];
}
void Spoofer::onBloodweb(std::string& body, std::string& respHeaders) void Spoofer::onBloodweb(std::string& body, std::string& respHeaders)
{ {
json doc = json::parse(body, nullptr, false); json doc = json::parse(body, nullptr, false);
@@ -605,6 +682,66 @@ void Spoofer::onBloodweb(std::string& body, std::string& respHeaders)
#endif #endif
} }
void Spoofer::onUpdateEntitlements(const std::string& url, std::string& body)
{
if (!_config.spoofCharacterOwnership) return;
json js = json::parse(body, nullptr, false);
if (js.is_discarded()) return Log::error("JSON parse error for get-update-entitlements");
if (js.contains("entitlements"))
{
auto& jsonList = js["entitlements"];
std::unordered_set<std::string>* list = nullptr;
if (url.starts_with("https://grdk.live.bhvrdbd.com/"))
list = &_dlcListGRDK;
else if (url.starts_with("https://egs.live.bhvrdbd.com/"))
list = &_dlcListEGS;
else
return Log::error("Invalid url?");
if (list == nullptr) return;
for (const std::string& dlcId : *list)
{
if (std::find(jsonList.begin(), jsonList.end(), dlcId) == jsonList.end()) jsonList.push_back(dlcId);
}
}
body = js.dump();
}
void Spoofer::onUpdateEntitlementsClient(const std::string& url, std::string& body)
{
if (!_config.spoofCharacterOwnership) return;
json js = json::parse(body, nullptr, false);
if (js.is_discarded()) return Log::error("JSON parse error for get-update-entitlements");
if (js.contains("clientEntitlementIds"))
{
auto& jsonList = js["clientEntitlementIds"];
std::unordered_set<std::string>* list = nullptr;
if (url.starts_with("https://grdk.live.bhvrdbd.com/"))
list = &_dlcListGRDK;
else if (url.starts_with("https://egs.live.bhvrdbd.com/"))
list = &_dlcListEGS;
else
return Log::error("Invalid url?");
if (list == nullptr) return;
for (const std::string& dlcId : *list)
{
if (std::find(jsonList.begin(), jsonList.end(), dlcId) == jsonList.end()) jsonList.push_back(dlcId);
}
}
body = js.dump();
}
/* /*
event handlers event handlers
*/ */
@@ -617,25 +754,29 @@ void Spoofer::serverResponseHandler(const std::string& url, std::string& body, s
Log::verbose("BHVR api res @ {}", url); Log::verbose("BHVR api res @ {}", url);
#endif #endif
if (url.find("api/v1/dbd-character-data/get-all") != std::string::npos) return onGetAll(body); if (url.ends_with("api/v1/dbd-inventories/all")) return onInventoryAll(body);
if (url.find("api/v1/dbd-character-data/get-all") != std::string::npos) return onGetAll(body);
if (url.find("api/v1/dbd-inventories/all") != std::string::npos) return onInventoryAll(body); if (url.find("api/v1/messages/listV2") != std::string::npos) return onMessageList(body);
if (url.find("/api/v1/messages/listV2") != std::string::npos) return onMessageList(body);
if (url.find("api/v1/dbd-character-data/bloodweb") != std::string::npos || if (url.ends_with("api/v1/dbd-character-data/get-all")) return onGetAll(body);
url.find("api/v1/dbd-character-data/bulk-spending-bloodweb") != std::string::npos)
if (url.ends_with("api/v1/dbd-character-data/bloodweb") ||
url.ends_with("api/v1/dbd-character-data/bulk-spending-bloodweb"))
return onBloodweb(body, respHeaders); return onBloodweb(body, respHeaders);
if (url.ends_with("api/v1/owned-products/get-update-entitlements")) return onUpdateEntitlements(url, body);
} }
void Spoofer::clientRequestHandler(std::string& url, const std::string& body, std::string& /*reqHeaders*/) void Spoofer::clientRequestHandler(const std::string& url, std::string& body, std::string& /*reqHeaders*/)
{ {
if (url.find("bhvrdbd.com") == std::string::npos) return; if (url.find("bhvrdbd.com") == std::string::npos) return;
std::lock_guard<std::mutex> lock(_mtx); std::lock_guard<std::mutex> lock(_mtx);
if (url.find("api/v1/dbd-character-data/bloodweb") != std::string::npos || if (url.ends_with("api/v1/dbd-character-data/get-all")) return onGetAllClient(body);
url.find("api/v1/dbd-character-data/bulk-spending-bloodweb") != std::string::npos)
{ if (url.ends_with("api/v1/dbd-character-data/bloodweb") ||
json req = json::parse(body, nullptr, false); url.ends_with("api/v1/dbd-character-data/bulk-spending-bloodweb"))
if (req.is_discarded()) return Log::error("JSON parse error for bloodweb request handler"); return onBloodwebClient(body);
if (req.contains("characterName")) this->_lastBloodWebChar = req["characterName"];
} if (url.ends_with("api/v1/owned-products/get-update-entitlements")) return onUpdateEntitlementsClient(url, body);
} }
+15 -2
View File
@@ -9,11 +9,15 @@
#include <nlohmann/json_fwd.hpp> #include <nlohmann/json_fwd.hpp>
#include "dbdcrypt.h"
struct SpooferConfig struct SpooferConfig
{ {
bool spoofCharacterOwnership = false; bool spoofCharacterOwnership = true;
bool spoofInventory = true; bool spoofInventory = true;
bool spoofCustomization = true; bool spoofCustomization = true;
std::string accessKey = ACCESS_KEY;
std::string keyId = KEY_ID;
}; };
class Spoofer class Spoofer
@@ -40,9 +44,14 @@ class Spoofer
void onInventoryAll(std::string& body); void onInventoryAll(std::string& body);
void onMessageList(std::string& body); void onMessageList(std::string& body);
void onBloodweb(std::string& body, std::string& respHeaders); void onBloodweb(std::string& body, std::string& respHeaders);
void onUpdateEntitlements(const std::string& url, std::string& body);
void onGetAllClient(std::string& body);
void onBloodwebClient(std::string& body);
void onUpdateEntitlementsClient(const std::string& url, std::string& body);
void serverResponseHandler(const std::string& url, std::string& body, std::string& respHeaders); void serverResponseHandler(const std::string& url, std::string& body, std::string& respHeaders);
void clientRequestHandler(std::string& url, const std::string& body, std::string& reqHeaders); void clientRequestHandler(const std::string& url, std::string& body, std::string& reqHeaders);
SpooferConfig _config; SpooferConfig _config;
@@ -62,6 +71,10 @@ class Spoofer
std::unordered_set<std::string> _catalogItemIds; std::unordered_set<std::string> _catalogItemIds;
std::unordered_set<std::string> _unownedCharacters; std::unordered_set<std::string> _unownedCharacters;
std::unordered_set<std::string> _characterList;
std::unordered_set<std::string> _dlcListGRDK;
std::unordered_set<std::string> _dlcListEGS;
std::string _lastBloodWebChar = ""; std::string _lastBloodWebChar = "";
std::mutex _mtx; std::mutex _mtx;
+6
View File
@@ -1,2 +1,8 @@
add_subdirectory(nerutils) add_subdirectory(nerutils)
add_subdirectory(json) add_subdirectory(json)
set(ZLIB_BUILD_TESTING OFF)
set(ZLIB_BUILD_STATIC ON)
set(ZLIB_BUILD_SHARED OFF)
set(ZLIB_INSTALL OFF)
add_subdirectory(zlib)
Vendored Submodule
+1
Submodule vendor/zlib added at f9dd6009be