Giter VIP home page Giter VIP logo

angeapk's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @cryptax
  • ๐Ÿ‘€ Iโ€™m interested in research on Android or IoT malware
  • ๐ŸŒฑ I'm the lead organizer of Ph0wn CTF

angeapk's People

Contributors

cryptax 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angeapk's Issues

still can`t get it to function properly

screenshot from 2015-01-15 06 18 45
so after deleting dec- from line 4 to make it only anakin-original.png cause it didnt compile correctly thats the new error and i cant understand which strings of length 16 or maybe it means that it can`t find the png to decrypt
oh and i checked if the eocd2 apk unzips and it does unzip correctly
thank you very much

Problem when I try to use DexClassLoader

Hi Axelle,

I have been following the angeAPK talk. However ,I faced with some issues when I tried to use DexClassLoader.

I would like to unpack and load the dynamic code in the application activity, I was able to get the payloadapk, however when I try to load in the next method loadAPK(): the application crashes and gives me this exception:

java.lang.ClassNotFoundException: Didn't find class "com.example.cryptedv2.StringXORed" on path: DexPathList[[zip file "/storage/emulated/0/hidden.apk"],nativeLibraryDirectories=[/system/lib]]

` private void loadApk(String apkPath) {

    String className = "com.example.cryptedv2.StringXORed"; //modify to new one
    String methodToInvoke = "getFlagEncrypt"; //Modificar to new one

    Log.v("loadDexClasses", "Dex Preparing to loadDexClasses!");

    File dexOpt = this.getDir("dexOpt", MODE_PRIVATE);
    final DexClassLoader classloader = new DexClassLoader(
            apkPath,
            dexOpt.getAbsolutePath(),
            null,
            this.getClassLoader());

    Log.v("loadDexClasses", "Searching for class : "
            + "com.registry.Registry");
    try {
        Class<?> classToLoad = (Class<?>) classloader.loadClass(className);
        Object instance = classToLoad.newInstance();
        Method method = classToLoad.getMethod(methodToInvoke);
        String flag = (String) method.invoke(instance);
    } catch (IllegalAccessException e) {
        e.printStackTrace ();
    } catch (ClassNotFoundException e) {
        e.printStackTrace ();
    } catch (NoSuchMethodException e) {
        e.printStackTrace ();
    } catch (InvocationTargetException e) {
        e.printStackTrace ();
    } catch (InstantiationException e) {
        e.printStackTrace ();
    }

`

I tried to obfuscated also a .dex file of the application but it is also throwing the same exception.

Thanks in advance,

Fernando

encryypt-apk.py

Hi
after padding the file, i tried to encrypt it using encrypt-apk.py (the script that was generated in the beginning from running angecrypt. However as i run the script on the file it gives an error
"" Traceback (most recent call last):
File "encrypt-apk.py", line 7, in
d = algo.encrypt(d)
File "/usr/lib/python2.7/dist-packages/Crypto/Cipher/blockalgo.py", line 244, in encrypt
return self._cipher.encrypt(plaintext)
ValueError: Input strings must be a multiple of 16 in length
""
im a bit new to this and this may seem like a dumb problem but ive spent over a week now trying to figure it out.
hoping for a response.

There was a problem parsing the package when done with PDF version of the project.

Hey, when I try to implement this project with pdf, everything goes smooth except that the payload couldn't be installed, the error being there was a problem parsing the package.
I have implemented the same version of the wrapping apk as for the png and jpg. Should I assume that the error is indeed in this part?
Kindly help.
I shall be obliged.
Regards

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.