about summary refs log tree commit diff stats
path: root/example/ida
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-11-07 14:17:58 +0100
committerserpilliere <serpilliere@users.noreply.github.com>2015-11-07 14:17:58 +0100
commit3e2a88817d41d6111801e64ca6de58eb5bdbc23b (patch)
treef5b1a41218d999c9e241d480e6672e3e9b55482a /example/ida
parentecb48bb8a993e72b96d84fe09f81bbdc0c513fbc (diff)
parentb960a393c057205859dcb62301f8b22573d385af (diff)
downloadmiasm-3e2a88817d41d6111801e64ca6de58eb5bdbc23b.tar.gz
miasm-3e2a88817d41d6111801e64ca6de58eb5bdbc23b.zip
Merge pull request #255 from commial/unused-import
Unused import
Diffstat (limited to 'example/ida')
-rw-r--r--example/ida/depgraph.py3
-rw-r--r--example/ida/graph_ir.py11
2 files changed, 2 insertions, 12 deletions
diff --git a/example/ida/depgraph.py b/example/ida/depgraph.py
index fcd87cb9..03eea3d5 100644
--- a/example/ida/depgraph.py
+++ b/example/ida/depgraph.py
@@ -1,14 +1,11 @@
-import sys
 import os
 import tempfile
 
-from idaapi import GraphViewer
 from miasm2.core.bin_stream_ida import bin_stream_ida
 from miasm2.core.asmbloc import *
 from miasm2.expression import expression as m2_expr
 
 from miasm2.expression.simplifications import expr_simp
-from miasm2.analysis.machine import Machine
 from miasm2.analysis.depgraph import DependencyGraph
 
 from utils import guess_machine
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py
index e7fd39d0..bbb44bbb 100644
--- a/example/ida/graph_ir.py
+++ b/example/ida/graph_ir.py
@@ -2,20 +2,14 @@ import sys
 import os
 import tempfile
 
-# Set your path first!
-sys.path.append("/home/serpilliere/tools/pyparsing/pyparsing-2.0.1/build/lib.linux-x86_64-2.7")
-sys.path.append("/home/serpilliere/projet/miasm/build/lib.linux-x86_64-2.7")
-sys.path.append("/home/serpilliere/projet/elfesteem/build/lib.linux-x86_64-2.7")
-
 from idaapi import GraphViewer
 
 from miasm2.core.bin_stream_ida import bin_stream_ida
 from miasm2.core.asmbloc import *
 from miasm2.expression.simplifications import expr_simp
 from miasm2.expression.expression import *
-
-from miasm2.analysis.data_analysis import intra_bloc_flow_raw, inter_bloc_flow
-from miasm2.analysis.data_analysis import intra_bloc_flow_symbexec
+from miasm2.analysis.data_analysis import inter_bloc_flow, \
+    intra_bloc_flow_symbexec
 
 from utils import guess_machine, expr2colorstr
 
@@ -219,7 +213,6 @@ def gen_bloc_data_flow_graph(ir_arch, in_str, ad):  # arch, attrib, pool_bin, bl
     bloc2w = {}
 
     for irbloc in ir_arch.blocs.values():
-        # intra_bloc_flow_raw(ir_arch, flow_graph, irbloc)
         intra_bloc_flow_symbexec(ir_arch, flow_graph, irbloc)
         # intra_bloc_flow_symb(ir_arch, flow_graph, irbloc)