GithubHelp home page GithubHelp logo

huuck / katalina Goto Github PK

View Code? Open in Web Editor NEW
116.0 4.0 14.0 65.97 MB

Katalina is like Unicorn but for Dalvik bytecode. It provides an environment that can execute Android bytecode one instruction at a time.

Home Page: https://www.humansecurity.com/tech-engineering-blog/katalina-an-open-source-android-string-deobfuscator

License: MIT License

Python 100.00%
android dalvik deobfuscation emulation emulator malware obfuscation reverse-engineering

katalina's Introduction

Katalina

Katalina is like Unicorn but for Dalvik bytecode. It provides an environment that can execute Android bytecode one instruction at a time. Requires Python >= 3.10

How to install:

pip install -r requirements.txt

How to run:

python3 main.py -xe classes.dex

How it looks like:

image

What works:

  • most instructions
  • same-class method invocations
  • Static fields/method invocations
  • String APIs
  • Base64 APIs

What kinda works:

  • Iterator APIs
  • Arrays APIs
  • cross-class non static method invocations and fields

What's broken:

  • MultiDex
  • I/O
  • Windows support might be broken because of the timeout mechanism, please use WSL to run it

katalina's People

Contributors

f10w3r-s avatar huuck avatar huuck-human avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

katalina's Issues

Error in Simple App's classes.dex file

I created a sample app without using multi dex and then extracted classes.dex file and run Katalina, but this error shows.

ERROR ←[35mError running La0/d;->onCreate: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/activity/ComponentActivity;->onCreate: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/app/a;->onCreate: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/widget/AppCompatTextView;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/widget/d;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/widget/h;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/widget/k;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/appcompat/widget/p;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/core/content/FileProvider;->onCreate: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/fragment/app/Fragment;->onCreateContextMenu: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/fragment/app/g;->onCreateView: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Landroidx/fragment/app/g;->onCreateView: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/google/android/material/appbar/AppBarLayout;->onCreateDrawableState: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/google/android/material/button/MaterialButton;->onCreateDrawableState: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/google/android/material/chip/Chip;->onCreateDrawableState: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/google/android/material/internal/CheckableImageButton;->onCreateDrawableState: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/google/android/material/internal/NavigationMenuItemView;->onCreateDrawableState: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/google/android/material/textfield/TextInputEditText;->onCreateInputConnection: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/photovideomaker/MainClas;->onCreate: module 'signal' has no attribute 'SIGALRM'←[0m
ERROR ←[35mError running Lcom/photovideomaker/SomeApp;->onCreate: module 'signal' has no attribute 'SIGALRM'←[0m

SyntaxError: invalid syntax

Traceback (most recent call last):
File "main.py", line 6, in
from vm import VM
File "/mnt/d/source_code/Python/Katalina/vm.py", line 4, in
from instructions import *
File "/mnt/d/source_code/Python/Katalina/instructions.py", line 111
match self.opcode:
^
SyntaxError: invalid syntax

wsl, python3.8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.