[Release] AB2E - Angry Birds 2 Editor

SGIAI22

Member
Newcomer
Joined
May 28, 2020
Messages
11
Trophies
0
Age
38
XP
81
Country
United States
8DA4F614BD109FD64248704E48E720719DBA53061539CB4C46B6ECBA475C6E5C = Session_ID
You should be able to generate a new session ID and theoretically it will unban you. I haven't looked into their API code yet, I might in the future.
But how should this work? What do I have to do to generate a new session id? Please elaborate.
 

smay

Member
Newcomer
Joined
May 25, 2020
Messages
18
Trophies
0
XP
90
Country
United States
But how should this work? What do I have to do to generate a new session id? Please elaborate.
im kinda waiting to get banned myself before i test anything, i may get bored and try some stuff later. at what i assume to be ur skill level.......

save ur game in the cloud
make a full copy of your entire files folder, not just the saved game. now you can experiment.

decrypt ALL the files in ur saved game folder

go to your app settings and clear all data/cache. open the game, this will start a new account

ok cool...u now got a new sessionID, playerID, and everything else

figure out how to copy in your banned accounts data, without copying whatever mystery value that is flagging the account as banned......i can't test anything for you because i dont have a banned account

so when you go to the screen where u change ur players name, u see a number that identifies you
in the decrypted save game files, you will find PlayerDataHash FacebookID, and another player id in the TOF file

good luck
**************************************************************
update i just got banned....took them long enough. new update v2.42 claims to have an advanced anti-cheating system.
ok so now to unban myself......
 
Last edited by smay,

Visual Studio

Developer
OP
Developer
Joined
Aug 25, 2016
Messages
123
Trophies
0
Age
30
XP
1,707
Country
United States
im kinda waiting to get banned myself before i test anything, i may get bored and try some stuff later. at what i assume to be ur skill level.......

make a full copy of your entire files folder, not just the saved game. now you can experiment.

ok if you go to your app settings and wipe all data/cache then open the game you will be starting a new game, with all new SessionID and a PlayerDataHash. make a full copy of this ones file folder as well, keep these two backups clearly labeled

now you just gotta hope unbanning is easy. our more skilled hack developer has suggested that all you need is likely just the SessionID file.

a good first test would be to replace the games files folder with your original banned account files folder, then to replace the file 8DA4F614BD109FD64248704E48E720719DBA53061539CB4C46B6ECBA475C6E5C with the one from your new account.

while i personally haven't decompiled the game code, i am 90% certain that your banned account would also be identified by the PlayerDataHash you can find in the readable.txt using my modded python script. obviously the FacebookID is also an issue. I suspect changing the PlayerDataHash to ALSO match the new account, with the new account SessionID file, would unban you. Lets not forget any FacebookID data, u could decrypt the other files to steal a "friends" facebookID hehehehehehehehehehehe

Ultimately you can just use the readable.txt to copy in ur feats and such. As our original hack developer mentioned, the game uses the IL2CPP folder to contain some of your account info, this is why I said to copy the entire files folder.

whatever u do, keep unaltered backups of your files folder from your banned account.....otherwise u will be playing all the levels again when something gets messed up. btw did u manage to log in the game using airplane mode? theres a ton of u-tube videos on the topic


btw i had to modify his new updated script some to make it work. or im just an epic fail at my command line arguments. use copy and paste to get indents from nearby lines if you have issues

#from Crypto.Cipher import AES
#from Crypto.Util.Padding import pad, unpad
from Cryptodome.Cipher import AES
from Cryptodome.Util.Padding import pad, unpad
^^^^^---because im lazy and didnt want to figure out what new libraries to install/update----^^^^

# all parsers
parser.add_argument("-in_file", type=str, default="B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1", help="The input file")
parser.add_argument("-o", "--out-file", type=str, default="readable.txt", help="The output file")
parser.add_argument("-i", "--index-file", type=str, default="index", help="The index file to use for encryption/decryption")
parser.add_argument("-k", "--key", type=str, help="The xor key in hex aka l_433")

^^^----because i couldnt make it work, i think he had a typo on in-file and in_file, notice i added default values so i dont have to type all the time

elif args.command == "encrypt":
encrypt_save_file(args.out_file, args.in_file, args.index_file)

^^^^----switched in and out files around, so i never have to type arguments in command line.....im lazy

#assert isfile(in_file), "Input file missing!"
save_json = read_file(in_file, True)

^^^^---line 434 i think, commented out the assert command....i think the code got more complicated by adding encrypt/decrypt features, who cares it works!!!

so just have to type
python3 AB2E.py decrypt
then rename or delete the B4F5----- file, and edit the readable.txt
python3 AB2E.py encrypt

you will want to do ALL the files in your saved game folder, so you wanna copy them ALL and run
python3 AB2E.py -in-file -o decrypt using a dif in-file and -o output file for each one, so you can look at them all in plain text. you will notice you have a PlayerID in the TOF file, and likely some others

i also couldnt find anything too interesting in IL2CPP folder, so maybe it needs root to look at all the files. i have not taken the time to set up a Android Root Emulator on my Chromebook (my pc is far away right now) but u can find u-tube videos on the topic. basically u install Android Studio, then follow youtube videos telling you how to root the Google API's emulator...some other root emulators may be out there.

p.s. you never replied to my pm requesting your readable.txt, i would like to view ur saved game data to see what a banned account looks like.
Your changes trigger me.
 
  • Like
Reactions: smay

smay

Member
Newcomer
Joined
May 25, 2020
Messages
18
Trophies
0
XP
90
Country
United States
Your changes trigger me.
i'll keep them to myself....post was edited....i made a lot of changes on mine, u inspired me to learn some python

p.s. thanks for updates, below u will notice i didnt hijack any of your code :-) i used much cruder string techniques...everyone else will notice my indents are char(20h) instead of char(9) so anyone can easily edit it...we will classify it as GNU GPL

You can edit what level you are on, with this script, I also made it edit ArenaStars, now you can fully adjust your players star level, and get any avatar pic u want. BACKUP YOUR STUFF FIRST!!! Put ur phone in airplane mode to test changes and make sure it worked. I recommend saving ur game to the cloud before ever doing anything, then you can always wipe ur app data and restore thanx to rovio

You will want to rename this file to split.py
Decrypt your saved game file B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1 and name the decrypted file B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1.txt
run python3 split.py
answer the on screen questions
you should now have a file called output.txt
delete B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1
encrypt file output.txt, make sure to rename it to B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1

KEEP IN MIND, if you started a new account......this just beats the levels, so it doesn't give you the bird keys and such. I will have to add some more code later to unlock the birds for new accounts. Maybe start off by jumping to lvl 150, then play the levels before the bird keys or something.....then unlock a couple thousand levels or so


below is areas for code needed to edit for new accounts.

"PD_FeatureUnlockData":"{\"SeenTutorials\":[\"TowerOfFortune\",\"DailyChallenge\",\"Arena\",\"MightyEaglesBootcamp\",\"Clans\"],\"QueuedTutorials\":[],\"PreviouslyUnlockedFeatures\":[\"TowerOfFortune\",\"DailyChallenge\",\"Arena\",\"MightyEaglesBootcamp\",\"Clans\"]}",

\"UnlockedSpells\":[\"MagicDuck\",\"Blizzard\",\"Chili\",\"PigInflater\",\"MightyEagleCaller\"],

"PD_Wallet":"{\"Gems\":99999999,\"SecondaryCurrency\":9999999,\"FreeBirdTokens\":0,\"TOFExpressTickets\":999,\"TOFEntryTickets\":999}","PD_CardSpecCollection":"{\"CardSpecifications\":[{\"CardTemplateName\":\"RedBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"YellowBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"BlackBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"BlueBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"WhiteBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"TerenceBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"PurpleBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]}]}","PD_SpellCollection":"{\"CardSpecifications\":[]}","PD_GuestBirdCollection":"{\"CardSpecifications\":[{\"CardTemplateName\":\"OrangeBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"LeonardBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"PinkBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]},{\"CardTemplateName\":\"GreenBird\",\"Level\":163,\"Tokens\":6863900,\"DeckNames\":[\"DefaultDeck\"]}]}","PD_NewSpellCollection":"{\"Spells\":[{\"Name\":\"MagicDuck\",\"Count\":100015,\"LastChangeUtc\":\"1970-01-01 00:00:00Z\"},{\"Name\":\"Blizzard\",\"Count\":99987,\"LastChangeUtc\":\"1970-01-01 00:00:00Z"},{\"Name\":\"Chili\",\"Count\":100017,\"LastChangeUtc\":\"1970-01-01 00:00:00Z\"},{\"Name\":\"PigInflater\",\"Count\":100023,\"LastChangeUtc\":\"1970-01-01 00:00:00Z\"},{\"Name\":\"MightyEagleCaller\",\"Count\":100001,\"LastChangeUtc\":\"1970-01-01 00:00:00Z\"}]}",


and below, is the MEBC Chuck avatar pic
\"PurchasedShopItems\":[\"5004\"]
and for all 3 avatar pics
\"PurchasedShopItems\":[\"5004\",\"5005\",\"5006\"]
however this entry only makes the item show as purchased...it does not place the avatar pic in ur list....
 

Attachments

  • split.txt
    91.1 KB · Views: 306
Last edited by smay,

urzy

New Member
Newbie
Joined
Jun 15, 2020
Messages
1
Trophies
0
Age
26
XP
33
Country
Indonesia
hello, I am currently trying the AB2E that you created, but I found a problem, when I run the program the message appears:

XOR_key = unhexlify (args.key)
binascii.Error: Odd-length string

can you help me please about this, I'm in trouble with the resources in angry bird 2
thank you for the previous program
 

smay

Member
Newcomer
Joined
May 25, 2020
Messages
18
Trophies
0
XP
90
Country
United States
hello, I am currently trying the AB2E that you created, but I found a problem, when I run the program the message appears:

XOR_key = unhexlify (args.key)
binascii.Error: Odd-length string

can you help me please about this, I'm in trouble with the resources in angry bird 2
thank you for the previous program
ur xor_key.bin should be exactly 256 bytes.....how big is ur file? im certain if you read all of the posts on this forum u can solve ur problem

as a side note....if you open the program in a text editor you will see

if args.key is not None:
XOR_KEY = unhexlify(args.key)
elif isfile(KEY_FILE):
XOR_KEY = read_file(KEY_FILE)
else:
raise Exception("The XOR key xor_key.bin or -k/--key command line parameter was not specified")
assert len(XOR_KEY) == 0x100 and sha1(XOR_KEY).hexdigest() == KEY_HASH, "The specified XOR key is invalid!"


so to translate
if you supply a 512 byte hex key argument the program converts it to the needed binary form
if no key argument was typed, check if the file xor_key.bin exists, load that key from the file
otherwise terminate the program, display error to user
verify the contents of the loaded xor key, ensure user didn't supply the xor key for a different game

it looks like you typed a key argument that wasn't a 512 byte hex string, im guessing you must of typed the file name instead. i personally replaced all of those lines of code so i wouldn't have to type stuff. you could always

you can always go to web page https://tomeko.net/online_tools/file_to_hex.php?lang=en and UNCHECK both check boxes, so you get a plain hex string. and upload ur xor_key.bin file to the web page. so then it would be
python3 AB2E.py -k stuff-copied-from-web-page-smay-told-me-about-WITH-OUT-the-check-boxes-selected
with ur other arguments too of course....anyways that hex string can always be put in to the code with " before and after it, on an unhexlify("hex-string") method....it looks like u would want to make XOR_KEY be assigned to that value

**************************************************************
update i just got banned....took them long enough. new update claims to have an advanced anti-cheating system.
ok so now to unban myself......
first thing you should do is make a full copy of all the files from com.rovio.baba
i then wiped all my game data, and started a new account
at this point in time you can copy in the save game folder and reload...u are now mostly back.....
had to wait 3 days for MEBC to come back, u do loose ur MEBC stuff

a more complicated/complete "unbanning" might be possible. the sharedprefs folder has some xml files containing more game settings. install game on a chromebook with linux + dev mode enabled. android-data/data/data/com.rovio.baba/shared_prefs/com.rovio.baba.v2.playerprefs.xml u can find all kinds of sessionIDs and such. depends entirely on how the servers database is designed
 
Last edited by smay,

Herba

New Member
Newbie
Joined
Jul 13, 2020
Messages
3
Trophies
0
Age
45
XP
34
Country
Azerbaijan
I cant use this :( i´m struggling with pycryptodomex install ...

Can anyone send me a save game with lv of stars 199.

I don´t need anything else...


The rest i can do with gameguardian

Thanks

naoqueroreceberoteuemail gmail com
 

smay

Member
Newcomer
Joined
May 25, 2020
Messages
18
Trophies
0
XP
90
Country
United States
I cant use this :( i´m struggling with pycryptodomex install ...

Can anyone send me a save game with lv of stars 199.

I don´t need anything else...


The rest i can do with gameguardian

Thanks

naoqueroreceberoteuemail gmail com
read all posts on this forum....all noob questions were answered on first 2 pages. also remove the letter x, u r trying to install packages for the older version of this editor. have u tried google? ur star lvl is determined by how many pvp-arena wins u have and main game levels beat, it cant be modified directly....split.py edits both of those for you!!!!! you want 100000 - 200000 arena stars for ur lvl desire
https://pypi.org/project/pycryptodome/

lets leave forum page 3 for more advanced questions, like how to get unbanned. i took a AB2 break to go hack Merge Dragons, learning to use my Chromebooks full potential. Now my AB2 accounts are banned again. New version of game has some kind of improved cheat detection.

OK so now thanx to Chromebook I got full access to the Android file system, plus 2 debian's to run things like python. I should make a u-tube video teaching people how to use these things. Thanx Google

.......

So when the game is first loading, it displays the PlayerID from the sharedprefs xml file, need root to see it.
After the game loads, it gets ur PlayerID from ????
I changed the FacebookID's in in the B4 and 91C files...and modified the PlayerID in the 91C file....

anyways after first getting unbanned, i basically didnt play. it took 3 days to get MEBC back, couple days later account banned. the thing i notice most is that version 2.42 lists the improved cheat detection as part of the update. that implies client side detection. found an android decompiler online...will have to get super bored to figure out how the code works

it seems to me that some answers are needed before cheating on AB2 again....have done a basic unbanning without facebook or cloud. game seems to run just fine. backup banned account save folder, wipe app data, make new account, close game, replace save game folder. will wait a week to see if i get banned again. as MEBC is gone for 3 days, i was only able to access Arena...
 
Last edited by smay,
  • Like
Reactions: Herba

Herba

New Member
Newbie
Joined
Jul 13, 2020
Messages
3
Trophies
0
Age
45
XP
34
Country
Azerbaijan
Finnaly, i have instaled pycryptodome/

I had some difficulties, because I was not hitting the code.
I had to install it inside the folde PY - Scripts.

is now supposed to open AB2E.py?
When I run in code, nothing happens.

I'm having difficulties, because I don't understand programming. and I don't understand some of the things that are said here.
 

smay

Member
Newcomer
Joined
May 25, 2020
Messages
18
Trophies
0
XP
90
Country
United States
Finnaly, i have instaled pycryptodome/

I had some difficulties, because I was not hitting the code.
I had to install it inside the folde PY - Scripts.

is now supposed to open AB2E.py?
When I run in code, nothing happens.

I'm having difficulties, because I don't understand programming. and I don't understand some of the things that are said here.
for your first lesson........the devil is in the details. no one can help you without screen shots, and very detailed descriptions of what you did, and what happened. usually people just copy and paste from their screen, everything they typed, and what was displayed. we also might want to know what operating system ur using, im guessing u have Windows? also thanx to me, there is now a few dif versions of this script...as a courtesy to the original developer im keeping my changes to myself, so i dont really remember how his copy of the program works anymore....but basically u gotta type all the parameters when u run the program, do not put xor_key.bin or index parameters in the command line arguments......details are life
 

Herba

New Member
Newbie
Joined
Jul 13, 2020
Messages
3
Trophies
0
Age
45
XP
34
Country
Azerbaijan
Yes, you are right.
But sometimes it is difficult to explain what is not known.

So far I have installed Python and then i have instaled pycryptodome
I have XOR Key

and i have the folder like in the picture:

What i have to do next?
i really don´t know...

Thanks and i apologize for bee so noob....
 

Attachments

  • Capturar.JPG
    Capturar.JPG
    68.4 KB · Views: 383
Last edited by Herba,

smay

Member
Newcomer
Joined
May 25, 2020
Messages
18
Trophies
0
XP
90
Country
United States
Yes, you are right.
But sometimes it is difficult to explain what is not known.

So far I have installed Python and then i have instaled pycryptodome
I have XOR Key

and i have the folder like in the picture:

What i have to do next?
i really don´t know...

Thanks and i apologize for bee so noob....
learn to use command.com....been a while since i used a Windows OS. I think if u r Windows10 or newer u can press the Windows Button + X to get a secret menu to pop up, and then look for anything call Command Prompt. you can also go to the Run box and type cmd or maybe its command.com it should take you to an old fashioned DOS screen where u type commands in.

now u need to learn to use commands like "cd" and "dir" and if your python3 is installed in to the PATH, you should hopefully also be able to just type "python3", if that works exit out of any python prompt that may of popped up. start off by typing
cd \ <---i think the \ is for windows, on linux you would type /
dir <---the displays files in ur current folder, on linux it would be ls instead of dir
then looking at only the names of folders, you need to navigate to the folder where ur saved game is...probably
cd "Documents and Settings" <--- once again my Windows is a little rusty....and keep using cd to change directory (directory is old name for folder) until u r in the folder with ur save game files
finally you would run
python3 AB2E.py decrypt B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1

or....better yet....make a file named *** decrypt.bat *** and open it in NOTEPAD not Word...only use Notepad.exe, it can be found in the Windows folder
now type this exact stuff in the file using Notepad.exe

@Echo off
cls
python3 AB2E.py decrypt B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1
pause

save the file....put ur new batch file in the same folder as ur saved game files....double click on ur batch file to run it. you would then either get better at making batch files, or make another batch to encrypt ur stuff, calling encrypt.bat note that the .bat ending of the file name is critical!!!!!


i think a better batch file might be bellow....but i havent tested cuz i only use linux these days
so name this batch file something with a .bat at the end of its name. keep in mind im also using a dif game editor than u??? i only need python3 ab2e.py decrypt without anything else after it.....so i dont know for sure what command line arguments u need

@Echo OFF
cls
ECHO ...............................................
ECHO PRESS 1 OR 2 to select your task, or 3 to EXIT.
ECHO ...............................................
ECHO.
ECHO 1 - Decrypt
ECHO 2 - Encrypt
ECHO.
SET /P M=Type 1, 2, or 3 then press ENTER:
IF %M%==1 GOTO DECRYPT
IF %M%==2 GOTO ENCRYPT
IF %M%==3 GOTO END
:DECRYPT <---- website displays as happy face, it is : D E C R Y P T
python3 AB2E.py decrypt
notepad.exe B4F59D3E9582F13D98B85102B4003E377A9434837B71846F44C05637D2613FA1.txt
GOTO END
:ENCRYPT
python3 AB2E.py encrypt
GOTO END
:END
pause
 
Last edited by smay,

Brijeshkol

New Member
Newbie
Joined
Aug 13, 2020
Messages
2
Trophies
0
Age
22
XP
43
Country
India
I am not so much familier with codes so please can some one send me the file ...which I can replace with my save file ..please...it will be a great help

--------------------- MERGED ---------------------------

I am not very familiar with the codes...please can you give me the files which I can is replace with my save files...it will be great help..please
 

Visual Studio

Developer
OP
Developer
Joined
Aug 25, 2016
Messages
123
Trophies
0
Age
30
XP
1,707
Country
United States
I am not so much familier with codes so please can some one send me the file ...which I can replace with my save file ..please...it will be a great help

--------------------- MERGED ---------------------------

I am not very familiar with the codes...please can you give me the files which I can is replace with my save files...it will be great help..please
Nobody can do that, it's unique to your device.
 

Emivita

New Member
Newbie
Joined
Jan 1, 2021
Messages
3
Trophies
0
Age
51
XP
33
Country
Italy
Hi all, unfortunately I'm totally ignored about editing and modding.
I just have a phone.
I'm here to ask you all an help.
It's about angry birds 2,yes, simply a game.
I've been banned after 5 years and is be never used any cheats.
When I've switched to another phone I've made the mistake to erase save file and paste again.
Rovio reply that ban cannot be lifted.
I've leaved my job in Turin to come back parents home cause they have a terrific brain damage both: Cancer and Alzheimer.
The game was the only thing that distracted me a little bit so now ,after 5 years,I've lost everything.
I'm just ask an help to unban or anything else to play again.
Wish you and your family best and safe New year.
Ty
IMG_20201229_171903.jpg
Screenshot_2020-12-29-07-38-59-018_com.android.chrome.jpg
 

Emivita

New Member
Newbie
Joined
Jan 1, 2021
Messages
3
Trophies
0
Age
51
XP
33
Country
Italy
I'm sorry,
I was a 1500 fp and I've been banned switched to another phone.
I've never used any cheats,maybe erase save when switched.
Ban permanently.
I'm not able with editor or modding.
I've saved data and all the folder.
Someone could help please? The game was the only thing that distracted my head from my parents brain damage: cancer and Alzheimer.
I'm really sorry,o don't know what can I do.
Version 2.48.1
Many thanks
 

Attachments

  • IMG_20201229_171903.jpg
    IMG_20201229_171903.jpg
    8.2 KB · Views: 174
Last edited by Emivita,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @SylverReZ, @AncientBoi my condolences to both of you +2