-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unused imports. Set default output dir.
- Loading branch information
Hugo Gascon
committed
Nov 2, 2014
1 parent
c6f43cb
commit 0ca3c2b
Showing
3 changed files
with
12 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/usr/bin/python | ||
# ADAGIO Android Application Graph-based Classification | ||
# adagio.py >> Main wrapper for other modules | ||
# Copyright (c) 2013 Hugo Gascon <[email protected]> | ||
# ADAGIO Structural Analysis of Android Binaries | ||
# Copyright (c) 2014 Hugo Gascon <[email protected]> | ||
|
||
|
||
import sys | ||
|
@@ -45,10 +44,10 @@ def exit(): | |
parser.add_argument("-d", "--dir", default="", | ||
help="Load APK/DEX files from this directory.") | ||
|
||
parser.add_argument("-o", "--out", default="", | ||
parser.add_argument("-o", "--out", default="data/fcg", | ||
help="Select output directory for generated graphs.\ | ||
If no directory is given, they will be written\ | ||
to the input directory.") | ||
to the data/fcg directory.") | ||
|
||
fcga = parser.add_argument_group('CALL GRAPHS ANALYSIS') | ||
fcga.add_argument("-f", "--fcgraphs", action="store_true", | ||
|
@@ -65,14 +64,12 @@ def exit(): | |
|
||
generator = "" | ||
if args.fcgraphs: | ||
if args.out: | ||
args.out = os.path.realpath(args.out) | ||
args.out = os.path.realpath(args.out) | ||
generator = FCGGenerator(args.dir, args.out) | ||
|
||
elif args.pdgraphs: | ||
#if args.out: | ||
#args.out = os.path.realpath(args.out) | ||
#generator = PDGGenerator(args.dir, args.out) | ||
# args.out = os.path.realpath(args.out) | ||
# generator = PDGGenerator(args.dir, args.out) | ||
print "Not implemented yet!" | ||
sys.exit() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
#!/usr/bin/python | ||
# ADAGIO Android Application Graph-based Classification | ||
# fcg_extractor.py >> Read all APKs in dir and save NX graphs as pickle objects | ||
# Copyright (c) 2013 Hugo Gascon <[email protected]> | ||
# ADAGIO Structural Analysis of Android Binaries | ||
# Copyright (c) 2014 Hugo Gascon <[email protected]> | ||
|
||
""" A module to build NX objects from APKs call graphs. """ | ||
|
||
import sys | ||
import os | ||
import zipfile | ||
import networkx as nx | ||
import numpy as np | ||
import adagio.common.pz as pz | ||
|
@@ -17,8 +15,6 @@ | |
from adagio.core.instructionSet import INSTRUCTION_CLASSES | ||
|
||
from progressbar import * | ||
from modules.androguard.androguard import * | ||
from modules.androguard.androguard.core.analysis import * | ||
from modules.androguard.androlyze import * | ||
from adagio.common.utils import get_sha256 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters