androlyze.model.script.impl package

Submodules

androlyze.model.script.impl.ASTifyMethodsText module

class androlyze.model.script.impl.ASTifyMethodsText.ASTifyMethodsText[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Get the AST (abstract syntax tree) for each method.

Attributes

Methods

VERSION = '0.3'
custom_result_object()[source]
needs_dalvik_vm_format()[source]
needs_vmanalysis()[source]

androlyze.model.script.impl.ApkInfo module

class androlyze.model.script.impl.ApkInfo.ApkInfo[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Shows basic information about the .apk like e.g. permissions, files, libraries, components (activities, broadcast receivers, content providers, services) as wall as their intents.

Attributes

Methods

VERSION = '0.1'

androlyze.model.script.impl.ChainedApkInfos module

class androlyze.model.script.impl.ChainedApkInfos.ChainedApkInfos(androscripts=None, root_categories=(), name=None, log_chained_script_meta_infos=True, continue_on_script_failure=True, log_script_failure_exception=False, **kwargs)[source]

Bases: androlyze.model.script.ChainedScript.ChainedScript

The same as the ApkInfo script, but build using modular scripts chained together

Attributes

Methods

VERSION = '0.1'
chain_scripts()[source]
log_chained_script_meta_infos()[source]

By default some information will be logged. Like e.g. the scripts used, which ran successful and which failed.

root_categories()[source]

androlyze.model.script.impl.ClassDetails module

class androlyze.model.script.impl.ClassDetails.ClassDetails[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Retrieve all classes and their methods and fields

Attributes

Methods

VERSION = '0.1'
needs_dalvik_vm_format()[source]

androlyze.model.script.impl.ClassInfos module

class androlyze.model.script.impl.ClassInfos.ClassInfos(androscripts=None, root_categories=(), name=None, log_chained_script_meta_infos=True, continue_on_script_failure=True, log_script_failure_exception=False, **kwargs)[source]

Bases: androlyze.model.script.ChainedScript.ChainedScript

List classes as well as their details (methods and fields)

Attributes

Methods

VERSION = '0.1'
chain_scripts()[source]
continue_on_script_failure()[source]

Specify if the analysis shall continue if a script encounters an error

create_script_stats()[source]

If true, create some script statistics and write them into the ResultObject (at least if used)

log_script_failure_exception()[source]

If true, write the exception into the result file

androlyze.model.script.impl.ClassListing module

class androlyze.model.script.impl.ClassListing.ClassListing[source]

Bases: androlyze.model.script.AndroScript.AndroScript

List all classes from the dex file

Attributes

Methods

VERSION = '0.1'
needs_dalvik_vm_format()[source]

androlyze.model.script.impl.CodePermissions module

class androlyze.model.script.impl.CodePermissions.CodePermissions[source]

Bases: androlyze.model.script.AndroScript.AndroScript

List where permissions are used in the code and decompile them

Attributes

Methods

VERSION = '0.1'
needs_dalvik_vm_format()[source]
needs_vmanalysis()[source]
androlyze.model.script.impl.CodePermissions.full_method_name(method)[source]
androlyze.model.script.impl.CodePermissions.full_method_signature(method)[source]

androlyze.model.script.impl.DVM module

class androlyze.model.script.impl.DVM.DVM(androscripts=None, root_categories=(), name=None, log_chained_script_meta_infos=True, continue_on_script_failure=True, log_script_failure_exception=False, **kwargs)[source]

Bases: androlyze.model.script.ChainedScript.ChainedScript

List classes as well as their details (methods and fields) and create Disassembly

Attributes

Methods

VERSION = '0.1'
chain_scripts()[source]
continue_on_script_failure()[source]

Specify if the analysis shall continue if a script encounters an error

create_script_stats()[source]

If true, create some script statistics and write them into the ResultObject (at least if used)

log_script_failure_exception()[source]

If true, write the exception into the result file

androlyze.model.script.impl.DecompileClasses module

class androlyze.model.script.impl.DecompileClasses.DecompileClasses[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Get the source code from the apk for each class.

Attributes

Methods

VERSION = '0.2'
needs_dalvik_vm_format()[source]
needs_vmanalysis()[source]

androlyze.model.script.impl.DecompileClassesText module

class androlyze.model.script.impl.DecompileClassesText.DecompileClassesText[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Get the source code from the apk for each class.

Attributes

Methods

VERSION = '0.1'
custom_result_object()[source]
needs_dalvik_vm_format()[source]
needs_vmanalysis()[source]

androlyze.model.script.impl.DecompileMethods module

class androlyze.model.script.impl.DecompileMethods.DecompileMethods[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Get the source code from the apk for each method.

Attributes

Methods

VERSION = '0.1'
needs_dalvik_vm_format()[source]
needs_vmanalysis()[source]

androlyze.model.script.impl.DecompileMethodsText module

class androlyze.model.script.impl.DecompileMethodsText.DecompileMethodsText[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Get the source code from the apk for each method.

Attributes

Methods

VERSION = '0.1'
custom_result_object()[source]
needs_dalvik_vm_format()[source]
needs_vmanalysis()[source]

androlyze.model.script.impl.GVMAnalysisExample module

class androlyze.model.script.impl.GVMAnalysisExample.GVMAnalysisExample[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Example that uses the GVMAnalysis object from androguard to create a graph

Attributes

Methods

VERSION = '0.1'
custom_result_object()[source]

Overwrite this method, if you want to use your own result logging framework/object, You can supply it here and access it via self.cres.

E.g. you could return (“”, “txt”) for simply logging with a string to a .txt file.

Returns:

tuple<object, str>

First argument is the result object you want to use, the second is the file name extension used for storage (without a leading point)

needs_gvmanalysis()[source]

androlyze.model.script.impl.SSL module

androlyze.model.script.impl.ShowLoggingFuncs module

class androlyze.model.script.impl.ShowLoggingFuncs.ShowLoggingFuncs[source]

Bases: androlyze.model.script.AndroScript.AndroScript

Example for demonstrating available logging options and to do some query checks

Attributes

Methods

VERSION = '0.1'

Module contents