Decrypting help on IDA Pro/XXTEA block cypher key extraction - Android Q&A, Help & Troubleshooting

I've been searching the web for information on how to decrypt lua files from an APK package that are encrypted with XXTEA block cipher (cocos2d game engine). When trying to retrieve the key that is used I've imported the libgame.so in IDA Pro but I'm having trouble decompiling it so I can read/understand the code better. My IDA Pro decompile plugins are failing and I don't have the knowledge on how to fix it (only started using the program today).
Is there anyone who can help me figuring out what the used key is and maybe help me understand on how to do it on my particular APK file.
The 'tutorials' I've been reading into are:
https://reverseengineering.stackexchange.com/questions/21759/decrypting-lua-files
https://forum.xda-developers.com/showthread.php?p=12853986#post12853986
https://boards.libre.io/threads/dec...er-in-lua-file-from-cocos2d-lua-games.297552/
https://boards.libre.io/threads/decrypting-lua-files.238916/
The APK I'm trying is:
http://www.filedropper.com/warofcolonyv212android42-apkpurecom
Any pointers on how to proceed with this are really appreciated!

janjaapy said:
I've been searching the web for information on how to decrypt lua files from an APK package that are encrypted with XXTEA block cipher (cocos2d game engine). When trying to retrieve the key that is used I've imported the libgame.so in IDA Pro but I'm having trouble decompiling it so I can read/understand the code better. My IDA Pro decompile plugins are failing and I don't have the knowledge on how to fix it (only started using the program today).
Is there anyone who can help me figuring out what the used key is and maybe help me understand on how to do it on my particular APK file.
The 'tutorials' I've been reading into are:
https://reverseengineering.stackexchange.com/questions/21759/decrypting-lua-files
https://forum.xda-developers.com/showthread.php?p=12853986#post12853986
https://boards.libre.io/threads/dec...er-in-lua-file-from-cocos2d-lua-games.297552/
https://boards.libre.io/threads/decrypting-lua-files.238916/
The APK I'm trying is:
http://www.filedropper.com/warofcolonyv212android42-apkpurecom
Any pointers on how to proceed with this are really appreciated!
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I think key is "@#k./%9l[w~!o"

Related

[APP] Calc+ v1.0

Hi. This is the first app from PDA4PDA developers .This application, is very easy to use and finger friendly.
Also it has programming ability.so you can write any program for easy with it and recall your program any time.
This program also has CMD using feature that means you can use commands, for doing your calculations and it has some mere abilities like using variants. For using this, you have to go to "My functions" tab and click on CMD button.
But don’t worry! if you want to start programming with it, it's very easy. You can use the programs help to learn it fast.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Image2
Image3
Image4​​ :Features
Easy To Use
Programming ability
Scientific features
Finger Friendly
Nice Design
Skin able
Multiscreen
Very large numbers support with usingScientific notation
Light
*For add your functions to "My functions" part, you have to copy .func files to "Main memory/My
.functions" folder
programmer: Pooyaparsa PINGsft[at]gmail.com
Graphics and help translator: Nimaheravi pda4pda[at]gmail.com
Graphics: Arashnikkhah Arasheek96[at]yahoo.com
apps.PDA4PDA.com
use help file for learn how to use
Download : http://up.pda4pda.com/uploads/Calc+_1.0_pda4pda.com.zip
Help : http://up.pda4pda.com/uploads/help.zip
great
best wishes for u
Hi H_R_V,
The Calculator is good! I have tested it on my device, its working fine. I’m sure that you have made more apps. Please share it with us.

[Solved] SDK issue

First, I wasn't quite sure where I should put this, so if theres a better forum for it, please move it.
I feel like a real idiot right now, but nonetheless I'm having issues getting Eclipse 3.5.2 and the Android SDK to work (on Mac OS X).
I got as far as installing the ADT plugin and then once I got to "showing" Eclipse where the Android SDK was located I failed miserably. Every time I navigate to the folder and hit open and then apply nothing happens, it just stays at the "default" no SDK(s) screen. Bit hard to explain, so I took a screenshot.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So if anyone knows how to get that to work, it would be really appreciated. Maybe I screwed up something really obvious, that would be just my luck.
Umm, have you downloaded all the developer tools in the SDK? Launch the android binary in the /tools/ folder and look for available packages and install them all, or the ones you'll be using at least.
GrdLock said:
Umm, have you downloaded all the developer tools in the SDK? Launch the android binary in the /tools/ folder and look for available packages and install them all, or the ones you'll be using at least.
Click to expand...
Click to collapse
Wasn't sure if that would work, I'll give it a try and let you know.
Hooray that worked.
Thanks a ton GrdLock.

[Q] Eclipse and external libraries

Hi everyone :victory:
So, first of all, I'm not a java developper, I never done any java in my life, only C and C++, and i'm used to have .c/.cpp files along with .h files.
That being said, I can still understand the syntax of Java, however I don't fully understand how Eclipse is supposed to work.
I've followed a few guides on the web in order to get started and to be ready to compile APK from pre-existing code (I just want to modify a Xposed Module), and here's what I've done.
Install Eclipse
Install ADT
Update ADT and install Android SDK
Get the xposed module code from GitHub
I've then went to File -> New Project --> Android Folder --> Android Project from Existing Code, and I've selected the xposed module folder.
So far everything works, I've even found how to add the XposedBridgeAPI.jar in my project (not an easy thing to do and I'm not sure i've done it the correct way, but no more Eclipse error about Xposed functions )
But I now encounter another problem which is that I can't find a way to import this library : Android-DirectoryChooser into my project :crying:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've tried to follow the instructions given on the GitHub :
Import the project into your favorite IDE and add android.library.reference.1=/path/to/Android-DirectoryChooser/library to your project.properties.
Click to expand...
Click to collapse
but it doesn't change anything ... :silly:
I've been struggling with this for hours now, can someone tell me what I've done wrong or what to do ?
Thank you in advance.
Regards,
Azsde.
Edit : I found the solution, I just needed to make a '' libs'' folder at the Root of my project, with my jar inside

[Q] Customizing GUI in simulator?

Hi
Need to know something rudimentary.
Is it possible to design/modify the look and feel of the Firefox OS from the device simulator? Not the apps, but the entire Firefox OS GUI.
Thanks.
arjunm009 said:
Hi
Need to know something rudimentary.
Is it possible to design/modify the look and feel of the Firefox OS from the device simulator? Not the apps, but the entire Firefox OS GUI.
Thanks.
Click to expand...
Click to collapse
Hi arjunm009,
FirefoxOS development name is b2g (boot2gecko) there is a beautiful diagram on Mozilla's pages advising how the layers work, see https://developer.mozilla.org/en-US/Firefox_OS/Platform/Architecture
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Gonk is the Hardware Abstraction Layer for the drivers
Gecko is the Rendering Engine
Gaia is the GUI, and the part you are interested in.
It is possible to modify Gaia, and Mozilla have a very detailed guide located just here: https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia
You can also grab the B2G source code and only pull down Gaia this would then let you modify, or even fix and pass back upstream to Mozilla.
You would then need a way to get your changes into the emulator, you can do this on a live device by entering the Gaia directory and typing make gaia, and then reset gaia.
However, on the emulator Mozilla offer the following detailed tutorial on how to see your gui changes in realtime on the emulator running on Firefox:
https://developer.mozilla.org/en-US/Firefox_OS/Developing_Gaia/Making_Gaia_code_changes
thanks a lot. this would get me started.

New Phone - Mysterious Files in Download Folder

Hi everyone, I just got a new XZ1 today (purchased from recommended Sony retailer as new), but I noticed some unknown files in the downloads folder I'm worried about, has anybody else noticed these or know what they are?
File list:
rce_plugin_string_resource_pt_BR.json.min
rce_plugin_string_resource_fr_FR.json.min
rce_plugin_string_resource_de_DE.json.min
rce_plugin_string_resource_en_US.test.json.min
rce_plugin_string_resource_it_IT.json.min
rce_plugin_string_resource_es_ES.json.min
rce_plugin_string_resource_cz_CZ.json.min
rce_plugin_string_resource_ja_JP.json.min
rce_plugin_string_resource_v2_TYPO_TEST.json.min
rce_plugin_string_resource_zh_CN.json.min
rce_plugin_string_resource_nl_NL.json.min
CS_JIT_Animation.mp4
jit_cs_positive_preview.png
Opening one of the files in VSCode, this is what the file looks like:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm worried about "rce" since that seems eerily close to remote code execution.
Any advice very much appreciated.
I just found the exact same files in the download directory of an old Verizon Ellipsis tablet I just reset and renewed a few days ago. It is running 5.1.1 Lollipop
Did you find any info on this? Thx!
Bump! Found this on a phone that was purchased/reset a few days ago. BB Key2 on android 8.1.0
Files only show up when i insert a USB drive and open the file copy android native UI. Does not show up on ghostcommander unless i move the files to a new directory (but then stupid android UI deletes and recreates the file, losing all original metadata such as permission, owner etc... and the useless android UI where i can see/copy the files, do not show permission/owner)

Categories

Resources