-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
infosec/2021/03/01/obtaining-unreal-pak-decryption-key/ #8
Comments
Super useful, thanks! |
Damn it! I knew I'd miss something. Ah well, I'll fix that later. |
Semi-fixed, can't be bothered to remove the cache in the git timeline though. |
Thanks for sharing this; it was really useful! |
Glad that it helped! Figured the resource was a bit scarce when I wrote the article. |
Hi, im stuck at the debugging, i don't know how i can launch Unrealpak while it's trying to unpack my encrypted .pak, i mean i need cmd to do the unrealpak.exe -Test *.pak i tried to use the command directly in X64dbg (initdbg UnrealPak.exe -Test *.pak) using the "change command line" option it launch UnrealPak but don't seem to do anything else :/ |
oh ok i just needed to debug the application directly instead of trying to debug unrealPak.exe damn i feel so dumb |
Before I begin I'd like to mention that I have no knowledge on this stuff. I just want to figure out what some songs used in Layers of Fear 2 are since they seem to me modified tracks from the 1930s or something. Point is, I can't seem to figure out what I'm supposed to do since I can't understand 90% of it. If someone could explain in stupid that would be great thanks! |
I'd look into it if I had a copy of the game, which I don't unfortunately. |
Hey there, Still! I have some questions about this process and was wondering, if you're free, would be able to help me understand it? This is my Discord (Base64): ZnVzZGVjaHVzIzg3MDA= In any case, thank you so much for this post! It's helped me get to where I'm at now :) |
im struggling to figure out what im doing wrong, i keep on getting the same error despite making sure the key is right, Assertion failed: Key.Num() == sizeof(FAES::FAESKey::Key) anyone could help me out? |
Hi Still, I am very new to game development and there is so much I do not know but I am trying to learn every day. I have recently found a game that I like and I am just trying to extract the audio from it because of the music and some voice audio. I have unpacked the .pak file with Unreal Pak editor, because quick bms did not work, and even though I have all the files now they are all encrypted. Umodel is able to open the texture uasset files but not the audio files which I need. I tried to export them with Umodel as well but nothing happened. Do you have any advice on how I can open and listen to them? I also found one .bnk file but it looks to be encrypted as well. Any help will be greatly appreciated, thank you! |
so this was the birth of shrekmidion? Thanks for the detailed write up! |
Recently I've encountered this problem too. So maybe it was something similar in your case. I'll explain my case details if it helps. I discovered it thanks to the And as it was decoding my string key which had 64 characters (32 x 2-digit hex), it compared 64 == 32 which results in |
Yup - shame I haven't really done much with it haha
You're usually not able to do much with the
For those who are struggling to identify which code is which, you can usually tell by looking around for the string references in the debugger and comparing it to the original source code. |
hello, I am trying to get a texture from a game, I have found the key (at least I think so) and tried to convert it to base64. however it does not work and I am unsure about many things, for one I don't know if I am inputting the key correctly into the unrealpak cmd. in your post you show the command: the game uses UE5 and I have UE5 downloaded my discord: dGhlZ29kY29kZXI= |
nvm i found the correct key somehow, and i realized how crypto.json is set up. but now i am getting a new error and i don't understand why
read the lines of code in the file and something about serialization( imma be honest i don't understand exactly what that is) and now i need help with that |
With this tool it's much easier to encode in base64 ) Check that you paste the key without the leading 0x if the key has it. Not sure what the Have you downloaded the source code? |
thank you for the encoder, the problem was I encoded the key without changing them to what they represent, aka you have to type in the key to a hex editor in a text document to get the correct stuff to base64 encode. how would I try with a different version of UE5 do I download 5.1 and such from the epic launcher(that is where I got my UE5). and what source code are you talking about I download, if talking about Edit: i tried again with 5.1.1 instead of 5.2.1 same error, different line
|
now that i look at what its saying i think i have the wrong key. now i am trying to follow the tutorial with x64dbg this time, problem is i don't know how to use it. i am confused on what i open in x64dbg as well. a explanation would be great. |
The source code can be accessed from Github, when UE adds you to their organization, cause it's a private repository. Check these instructions to get access. https://www.unrealengine.com/en-US/ue-on-github Also, I tried to decode with an incorrect key (but with correct key length) and I don't receive the So one way to get more info on that is investigating their code from Github. You'd need to find that file Array.h, and check what it does in the line 1253. |
so it is the correct key? i still think its wrong cause the key i got had /'s in it which i think is what cause the seralizenum problem considering it is not a number, i tried replacing them with 0's and got the corrupt pak index error. so once again i need help with more detail on how to use x64dbg thanks. |
Successfully unpacked a game that ceased operation with this guide, It was using 4.27.1 but the latest tool available on GitHub 4.27.0 also worked for it. And its key was exported onto the stack ( |
Also I found in one game, the audio files weren't in the WwiseAudio folder, and weren't Wwise at all. And also the folder contained only |
How I Extracted an Unreal Engine Game’s WWise Audio - Just Still
When you really want a game’s soundtrack, but the publisher hasn’t released them yet.
https://stillu.cc/infosec/2021/03/01/obtaining-unreal-pak-decryption-key/
The text was updated successfully, but these errors were encountered: