September 19, 2018, 15:50
bigger smaller reset 800px Wide width Full width Reset * *

Gildor's Forums

  Homepage Facebook Donate
Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length
« previous next »
Pages: [1] 2 3 ... 5 Print
Author Topic: Fortnite Encryption Key Thread  (Read 58683 times)
Gildor
Administrator
Hero Member
*****
Posts: 6783



View Profile WWW
« on: April 12, 2018, 12:01 »

Welcome Readers,

Since the Fortnite post was being spammed due to asking the key, the Owner of this forum (Not me, Gildor, split the thread into this one, so people can ask the Key right here
Also we need some help, so far we find those, but we can't find the current one, please, if you are watching, and you're expert, send us the key... your help will be appreciated!  Cheesy

Key's versions (or found so far) OLD versions are for people who got Old backups Versions

Old Keys:
14.12.2018 = y298qjSb115NqQ3Agad30DWn2QYrTI8CT6aP05l2PBV9Qe92S94PdoVCCy06A38L
9.02.2018 (Credit: Bizzfarts) = 0x2ccdfd22ad74fbfee693a81ac11ace57e6d10d0b8ac5fa90e793a130bc540ed4
17.03.2018 (Credit: Bizzfarts) = 0xADBB45488E8DE69437AD4F31D3569B0F710D2092799BFB1CE21D5CF9744097C3
29.03.2018 (Credit: Bizzfarts) = 0x7129D5E578F0DC3821E3CD704F01E511F9A60340CF5B4C850F3B0B6B5E80D0B9
??.04.2018 (Credit: Bizzfarts) = F6F6F7029F313A772C7AA17B50A26B4A6723A3467AB095AC911FD6398E91DC7
19.04.2018 (Credit: 0x41414141) = 0xA3278BA7DDD751A75456415A36C3559138E99134D08958C44C2FD29E4BBF342B
24.04.2018 (Credit 0x41414141) = 0x06FAA3C715608759855F551DBF5F7D8302E90E3671CA1B54BAB55FB3E0890BE5
1.05.2018 (Credit 0x41414141) = 0xBB3FE1D6E9296C2C0DBC880D07C7BFD6B4A6D8277D486446353B079B790CC434
8.05.2018 (Credit 0x41414141) = 0x094E272E681207E061897192FEB7DB8C6B6DB228D5B53080645348C18B8FB5D7
16.05.2018 (Credit 0x41414141) = 0x9D8C9A4A4FA082F213EED604B6E756237181685EEDA82216437617D7AA5231AF

Current key:
  • 24.07.2018 (Credit by lorp) = 0x81c42e03b21760a5c457c8db7d52ba066f0633d0891fd9e37cf118f27687924a

  • Update 5 uses same AES Key, and game now has version 7 pak file which latest version of uModel supports (warning still remains in log window).

« Last Edit: July 24, 2018, 12:47 by Blenux » Logged
Gildor
Administrator
Hero Member
*****
Posts: 6783



View Profile WWW
« Reply #1 on: April 12, 2018, 23:55 »

I'd like to provide a few hints which might be useful for those who have programming and assembly-level debugging skills.

  • Only pak file index is encrypted. It is read during game startup, so putting any breakpoint after that is useless.
  • Having a good C++ code reference is good. Pak file index loading code is in FPakFile::LoadIndex() - Engine/Source\Runtime\PakFile\Private\IPlatformFilePak.cpp.
  • Decryption is done with following code:
Code:
// Decrypt if necessary
if (Info.bEncryptedIndex)
{
DecryptData(IndexData.GetData(), Info.IndexSize);
}
  • It calls this:
Code:
void DecryptData(uint8* InData, uint32 InDataSize)
{
SCOPE_SECONDS_ACCUMULATOR(STAT_PakCache_DecryptTime);
FAES::FAESKey Key;
FPakPlatformFile::GetPakEncryptionKey(Key);
FAES::DecryptData(InData, InDataSize, Key);
}
  • So, you may see that the key is requested by calling FPakPlatformFile::GetPakEncryptionKey() and passed to FAES object's constructor.
  • Key is requested with following function:
Code:
void FPakPlatformFile::GetPakEncryptionKey(FAES::FAESKey& OutKey)
{
FCoreDelegates::FPakEncryptionKeyDelegate& Delegate = FCoreDelegates::GetPakEncryptionKeyDelegate();
if (Delegate.IsBound())
{
Delegate.Execute(OutKey.Key);
}
else
{
FMemory::Memset(OutKey.Key, 0, sizeof(OutKey.Key));
}
}
It calls delegate, so locating this place is not very easy.
  • So, the best location for breakpoint is FAES::FAesKey class (Engine/Source/Runtime/Core/Public/Misc/AES.h ). Of course, you can't see where this function is located - you don't have any information in assembly mode. However FAES::DecryptData() does the following:
Code:
void FAES::DecryptData(uint8* Contents, uint32 NumBytes, const FAESKey& Key)
{
checkf(Key.IsValid(), TEXT("No valid decryption key specified"));
DecryptData(Contents, NumBytes, Key.Key, sizeof(Key.Key));
}
It receives key as 3rd parameter. It performs some check, and throws an error "No valid decryption key specified". It is possible to find this message, and find places which has a reference to it. If this message is missing (for example, if engine was compiled with switched off error messages), then you should look for FAES::DecryptData() function. It has the following line in its body:
Code:
nrounds = rijndaelSetupDecrypt(rk, KeyBytes, AES_KEYBITS);
This function prepares decryption tables according to key contents, and it uses large data tables. These tables are all in that cpp file, and they are good patterns to find. Even more, I think it is possible to place a hardware breakpoint which will be executed when data read - you just should analyze rijndaelSetupEncrypt() C++ code and find which tables are used for decryption.

Hope this helps.
Logged
Gildor
Administrator
Hero Member
*****
Posts: 6783



View Profile WWW
« Reply #2 on: April 13, 2018, 23:34 »

-the creator of the forum and his friend know how to get this key, probably have this key already, but wont share it because "epic games will make it more difficult to find"
I am the creator, and I don't have a key. If I'll have it from this thread - nice, I'd be able to check how UModel works with new Fortnite. If not - not a problem for me at all. If I'd need it - I'd dig for it - I would waste probably a few hours, then got it. But I'm absolutely indifferent for this game.

Regarding "his friend" ... Well, I have a couple of friends who registered on this forum, but they're not involved into Fortnite discussion at all, so I don't understand who you're talking about.

I do not understand people who are so "hungry" to get a pair of new meshes from the new game, it looks like they can't eat, can't sleep, can't do anything else. I see that it was a right decision to separate this thread from main Fortnite discussion. I left a few hours ago from home, and when returned - there are 3 new pages in this thread filled with childish talks. There's absolutely nothing useful here at the moment (probably except a few posts), nothing what could be considered as "information".
Logged
Gildor
Administrator
Hero Member
*****
Posts: 6783



View Profile WWW
« Reply #3 on: April 15, 2018, 23:51 »

"Taking out stuff" is not the main purpose of this program. It is most useful for people who wants to LEARN stuff.

Also, Epic knows about my program very well. Not all of them, but at least several people from the top of programming department. Nobody from Epic or other game company been told me that I'm bad and doing illegal stuff. I've got "thank you" from a few gaming companies over 10 years. There were just a few strange people on youtube etc - not game developers at all, who blamed me that I AM STEALING STUFF (cool - I'm almost not using UModel, and even if using - only for viewing content, and for testing of new umodel's functionality).

Fortnite game has protection, but it is not against extraction. You can't use extracted assets for anything public anyway. But it is because this is an ONLINE game, where people cheats. Cheaters are the primary and may be only the reason of protected game executable and data files.
Logged
Gildor
Administrator
Hero Member
*****
Posts: 6783



View Profile WWW
« Reply #4 on: April 16, 2018, 01:28 »

Your right Gildor , but do you 'blame ' us just because you think we want the aes key for cheating Huh?? Wink
and how could we just extract the files
I'm absolutely not blaming anyone. In short, I've just told that Epic is okay with UModel, that protection is just against cheaters, and that there are not so many people who's against umodel (and probably against me) - and they're not related to game development process at all.
Logged
0x41414141
Newbie
*
Posts: 5


View Profile
« Reply #5 on: April 19, 2018, 11:27 »

0xA3278BA7DDD751A75456415A36C3559138E99134D08958C44C2FD29E4BBF342B
Logged
0x41414141
Newbie
*
Posts: 5


View Profile
« Reply #6 on: April 24, 2018, 14:39 »

0x06FAA3C715608759855F551DBF5F7D8302E90E3671CA1B54BAB55FB3E0890BE5
Logged
0x41414141
Newbie
*
Posts: 5


View Profile
« Reply #7 on: May 01, 2018, 14:15 »

0xBB3FE1D6E9296C2C0DBC880D07C7BFD6B4A6D8277D486446353B079B790CC434
« Last Edit: May 02, 2018, 11:49 by 0x41414141 » Logged
0x41414141
Newbie
*
Posts: 5


View Profile
« Reply #8 on: May 08, 2018, 12:37 »

0x094E272E681207E061897192FEB7DB8C6B6DB228D5B53080645348C18B8FB5D7
Logged
0x41414141
Newbie
*
Posts: 5


View Profile
« Reply #9 on: May 16, 2018, 12:55 »

0x9D8C9A4A4FA082F213EED604B6E756237181685EEDA82216437617D7AA5231AF
Logged
lorp
Newbie
*
Posts: 7


View Profile
« Reply #10 on: May 30, 2018, 14:58 »

0x81c42e03b21760a5c457c8db7d52ba066f0633d0891fd9e37cf118f27687924a

proof: https://puu.sh/AvLQh/ae279b45d1.png

have fun
Logged
stairwave
Newbie
*
Posts: 5


View Profile
« Reply #11 on: June 11, 2018, 19:33 »

I think we should close this thread now, this is not going anywhere.

All you need to know is:
 AES key: 0x81c42e03b21760a5c457c8db7d52ba066f0633d0891fd9e37cf118f27687924a

Change the value from 06 to 05 like in my screenshot (it's always 27 bytes from the end) in every pak.
 

And please, for the future: think, check if it wasn't answered a few replies before, google, try out... and then ask, don't immediately type down a question the moment it comes up because most of the time you can answer them by thinking about it. Otherwise this cool Post gets filled with repeated questions and things found on google.


Logged
Blenux
Moderator
Sr. Member
*****
Posts: 347


Welcome to Gildor Land.


View Profile WWW
« Reply #12 on: June 11, 2018, 19:38 »

The post stairwave made is all you need, simply open each pak file up with a hex editor, I used HxD, search for

12 6F 5A 06

then change it to

12 6F 5A 05

and save the file, then use umodel with same recent aes key.

Did a major clean up this thread to make it easier to find the key, left a few key posts for 0x41 post count (Deserves it) and Gildor's key finding tip, thread is still locked until new key or workaround is needed, and to stop the post flooding, for now everything is here that you need.
« Last Edit: June 13, 2018, 07:46 by Blenux » Logged

Computer/Game Dev Enthusiast.
Gildor
Administrator
Hero Member
*****
Posts: 6783



View Profile WWW
« Reply #13 on: June 13, 2018, 16:41 »

Nice cleanup Smiley
Just a quick note. My "tip for finding a key" worked well with previous Fortnite releases. I was able to use my own guide to find a key without debugging - just dumping exe and using disassembler, in 5 minutes. However that didn't work with recent Fortnite build.
Logged
XchickenXslayerX
Newbie
*
Posts: 25


View Profile
« Reply #14 on: June 19, 2018, 10:28 »

In which program and on which files do you have to run the codes to get the aes key?
Logged
Pages: [1] 2 3 ... 5 Print 
« previous next »
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS