forked from MindMac/androguard-yara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (32 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: c
sudo: required
#dist: trusty
before_install:
# Yara
- wget https://github.com/plusvic/yara/archive/v3.4.0.tar.gz -O yara.tar.gz
- tar -xzvf yara.tar.gz
# Androguard for Yara
- cp androguard.c yara-3.4.0/libyara/modules/androguard.c
- cp dist/yara-3.4.0/libyara/modules/module_list yara-3.4.0/libyara/modules/module_list
- cp dist/yara-3.4.0/libyara/Makefile.am yara-3.4.0/libyara/Makefile.am
# libjansson
- wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz
- tar -xzvf jansson-2.7.tar.gz
- cd jansson-2.7
- ./configure
- make
- sudo make install
# Compile Yara
- cd ../yara-3.4.0
- ./bootstrap.sh
- ./configure --enable-cuckoo
- make
- sudo make install
- sudo ldconfig
- cd ../
# Download requirements.txt
- sudo pip install -r requirements.txt
script:
- python download_androguard_report.py -s d8adb784d08a951ebacf2491442cf90d21c20192085e44d1cd22e2b6bdd4ef5f
- echo "trashtrashtrash" > sample.apk
- yara -x androguard=d8adb784d08a951ebacf2491442cf90d21c20192085e44d1cd22e2b6bdd4ef5f-report.json test/rule.yar sample.apk