Angry Birds (*.LUA) Decrypting (All versions)

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 819 times

Angry Birds (*.LUA) Decrypting (All versions)

Post by Ekey » Thu Nov 08, 2012 3:06 pm

So LUA files encrypted with AES 256bit CBC mode and nulled initialization vector.

Here are the keys that I managed to pull out :

Angry Birds
Str = USCaPQpA4TSNVxMI1v9SK9UC0yZuAnb2
Hex = 55534361505170413454534E56784D49317639534B39554330795A75416E6232
Angry Birds: Rio
Str = USCaPQpA4TSNVxMI1v9SK9UC0yZuAnb2
Hex = 55534361505170413454534E56784D49317639534B39554330795A75416E6232
Angry Birds: Seasons
Str = zePhest5faQuX2S2Apre@4reChAtEvUt
Hex = 7A65506865737435666151755832533241707265403472654368417445765574
Angry Birds: Space
Str = RmgdZ0JenLFgWwkYvCL2lSahFbEhFec4
Hex = 526D67645A304A656E4C466757776B5976434C326C5361684662456846656334
Angry Birds: Star Wars
Str = An8t3mn8U6spiQ0zHHr3a1loDrRa3mtE
Hex = 416E3874336D6E38553673706951307A4848723361316C6F44725261336D7445
Examples using by OpenSSL

Decrypt

Code: Select all

openssl enc -aes-256-cbc -d -K 55534361505170413454534E56784D49317639534B39554330795A75416E6232 -iv 0 -in gamelogic.lua -out gamelogic.lua.dec
Encrypt

Code: Select all

openssl enc -aes-256-cbc -e -K 55534361505170413454534E56784D49317639534B39554330795A75416E6232 -iv 0 -in gamelogic.lua.dec -out gamelogic.lua
Have fun (:

lllccc
mega-veteran
mega-veteran
Posts: 216
Joined: Thu Apr 12, 2012 12:27 am
Has thanked: 18 times

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by lllccc » Fri Nov 09, 2012 2:45 am

will this work for the xbox?

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 819 times

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by Ekey » Sat Nov 10, 2012 7:23 am

Do not know. Maybe

lllccc
mega-veteran
mega-veteran
Posts: 216
Joined: Thu Apr 12, 2012 12:27 am
Has thanked: 18 times

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by lllccc » Mon Nov 12, 2012 7:58 pm

damn it doesn't i will post a new angry bids for xbox 360

TheCrazedGuy
n00b
Posts: 10
Joined: Mon Mar 26, 2018 4:59 pm

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by TheCrazedGuy » Tue Oct 09, 2018 1:24 am

The text is a bunch of random jimble jamble. How do i make it readable?

User avatar
LolHacksRule
ultra-n00b
Posts: 4
Joined: Tue Oct 02, 2018 1:50 am

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by LolHacksRule » Thu Oct 11, 2018 4:53 pm

TheCrazedGuy wrote:The text is a bunch of random jimble jamble. How do i make it readable?
What game+file(s) in it are you trying to decrypt? AB Classic gives an LZMA file after decrypting an asset based LUA, a 7z after decrypting a zip and also save data LUAs use a different encryption key that is the same encryption type, giving plain LUAs after decryption, idk about the other games...

TheCrazedGuy
n00b
Posts: 10
Joined: Mon Mar 26, 2018 4:59 pm

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by TheCrazedGuy » Sat Oct 13, 2018 2:31 am

LolHacksRule wrote:
TheCrazedGuy wrote:The text is a bunch of random jimble jamble. How do i make it readable?
What game+file(s) in it are you trying to decrypt? AB Classic gives an LZMA file after decrypting an asset based LUA, a 7z after decrypting a zip and also save data LUAs use a different encryption key that is the same encryption type, giving plain LUAs after decryption, idk about the other games...
Talking about .lua such as episodes.lua, settings.lua and so on...

TheCrazedGuy
n00b
Posts: 10
Joined: Mon Mar 26, 2018 4:59 pm

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by TheCrazedGuy » Sat Oct 13, 2018 2:32 am

If you can get the encryption key, i'll be grateful.

User avatar
LolHacksRule
ultra-n00b
Posts: 4
Joined: Tue Oct 02, 2018 1:50 am

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by LolHacksRule » Sat Oct 13, 2018 5:41 am

settings.lua, bi_data.lua, highscores.lua and highscores_ID.lua are save LUAs, I'm not giving you the keys for that as it could lead to more cheating for Rovio to catch. Episodes.lua and other files in the game asset database are asset LUAs, using the keys above, like I said before, LZMA16'ed 7z's are given from asset files (aside from the ZIPs) after decryption, if you remove the first 9 bytes and only get "]" at the first text, it will open as a 7z.

TheCrazedGuy
n00b
Posts: 10
Joined: Mon Mar 26, 2018 4:59 pm

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by TheCrazedGuy » Sun Oct 14, 2018 6:12 pm

Thanks! By the way how do i edit the luas without the game crashing?

User avatar
LolHacksRule
ultra-n00b
Posts: 4
Joined: Tue Oct 02, 2018 1:50 am

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by LolHacksRule » Tue Oct 16, 2018 7:33 pm

TheCrazedGuy wrote:Thanks! By the way how do i edit the luas without the game crashing?
Edit what LUAs? The save LUAs, the asset LUAs or both? If its save LUAs, get the key for those then use that to decrypt to plaintext, edit, then recrypt and copy to save directory. For assets, use the keys above to decrypt, copy the LZMA header to a backup file (if on mobile version), remove it all the way in the decrypted files to "]"(delete the first 9 bytes), open them in 7Zip, extract the LUAs in them to folders where you would plan to modify them, decompile them with java -jar unluac.jar file_dec.lua > file_dec_decompiled.lua, edit it decompiled, recompile it with Lua 5.1, add and replace it into the 7z, add the LZMA header (so the game will read it legitimately, then save, recrypt, rename, inject to correct asset directory and start the game. I think many files have SHA1 checksums in the game executable (for LZMA-7z encrypted LUAs and JSONs), so modify them as well to match (IDK if this has issues if they mismatch, UPDATE: NOTHING HAPPENED, I tried on my device with a cloned copy of the game). I modified the remote_configuration_default ZIP similarly with this method.

User avatar
LolHacksRule
ultra-n00b
Posts: 4
Joined: Tue Oct 02, 2018 1:50 am

Re: Angry Birds (*.LUA) Decrypting (All versions)

Post by LolHacksRule » Mon Nov 12, 2018 6:53 pm

Here's Angry Birds Star Wars II's AES-256-CBC encryption key, ripped right from the game's memory from the v1.5.1 final PC version:
Str = B0pm3TAlzkN9ghzoe2NizEllPdN0hQni
Hex = 4230706D3354416C7A6B4E3967687A6F65324E697A456C6C50644E3068516E69

Post Reply