Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature does not work (coredump / zero division) #44

Closed
GoogleCodeExporter opened this issue Mar 20, 2016 · 4 comments
Closed

Signature does not work (coredump / zero division) #44

GoogleCodeExporter opened this issue Mar 20, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Created a signature that will look for AirPush Services:
[ { "SAMPLE" : "myairpushapp" }, { "BASE" : "AndroidOS", "NAME" : "AirPush", 
        "SIGNATURE" : 
        [   
            { "TYPE" : "CLASSSIM", "CN" : "Lcom/airpush/android/PushAds;" },  
            { "TYPE" : "CLASSSIM", "CN" : "Lcom/airpush/android/UserDetailsReceiver;" },                                                                                                      
            { "TYPE" : "CLASSSIM", "CN" : "Lcom/airpush/android/MessageReceiver;" } , 
            { "TYPE" : "CLASSSIM", "CN" : "Lcom/airpush/android/DeliveryReceiver;" }
        ],  
        "BF" : "a || b || c || d"  
    }   
]

2. run androcsign:
./androcsign.py -i ../androsign/airpush.sign -o signatures/testdb
3. run androsign on the same sample to verify:
./androsign.py -i myairpushapp -b signatures/testdb -c signatures/dbconfig -v

What is the expected output? What do you see instead?
Got the following output:

[...]
ADD ELEMENT 71
ADD ELEMENT 1542
ADD ELEMENT 126
ADD ELEMENT 297
ADD ELEMENT 4
ADD ELEMENT 4
ADD ELEMENT 145
 CMClustering init rows
 [SIGN:0 CLUSTERS:0 CMP_CLUSTERS:0 ELEMENTS:984 CMP_ELEMENTS:0 ERROR float division by zero



What version of the product are you using? On what operating system?
latest hg.

The Sample is also attached (pw infected)


Please provide any additional information below.


Original issue reported on code.google.com by 5hp...@gmail.com on 21 May 2012 at 9:37

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by anthony....@gmail.com on 21 May 2012 at 9:57

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

ok, fix in all repositories :
  hg pull
  hg update
  make clean && make


desnos@t0t0:~/androguard$ ./androsign.py -i apks/test/myairpushapp -b 
apks/test/testdb -c signatures/dbconfig 
apks/test/testdb signatures/dbconfig False
myairpushapp : ----> AirPush

Original comment by anthony....@gmail.com on 21 May 2012 at 1:34

@GoogleCodeExporter
Copy link
Author

thanks for fixing! Its working

Original comment by 5hp...@gmail.com on 21 May 2012 at 1:53

@GoogleCodeExporter
Copy link
Author

ok cool

Original comment by anthony....@gmail.com on 21 May 2012 at 1:54

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant