@@ -63,7 +63,7 @@ def analyze_binary(db_path: str, version: str, debug: bool = False):
6363
6464
6565def run_diff (old_path , new_path , db_path ):
66-
66+ print ( "[+] Analyzing the binaries using IDA PRO!" )
6767 conn = init_db (db_path )
6868 try :
6969 # Explore and save OLD metadata
@@ -93,17 +93,20 @@ def run_diff(old_path, new_path, db_path):
9393 log .warning (f"Could not count functions in { old_path } : { e } " )
9494
9595 old_count = 0
96+ print ()
9697 for name , compressed , addr , blocks , signature in analyze_binary (old_path , "old" ):
9798 try :
9899 insert_function_with_meta (conn , "old" , name , compressed , addr , blocks , signature )
99100 except Exception :
100101 insert_function (conn , "old" , name , compressed )
101102 old_count += 1
102- print (f"[*] { old_path } : { old_count } /{ old_total } " , end = "\r " , flush = True )
103+
104+ print (f"[*] Exporting { old_path } : { old_count } /{ old_total } " , end = "\r " , flush = True )
103105
104- print () # newline after progress
105106 log .info (f"Decompiled { old_count } functions from old binary" )
106107
108+ print ()
109+ print ("-" * 100 )
107110 # Explore and save NEW metadata
108111 try :
109112 new_info = explore_database (new_path )
@@ -129,15 +132,17 @@ def run_diff(old_path, new_path, db_path):
129132 log .warning (f"Could not count functions in { new_path } : { e } " )
130133
131134 new_count = 0
135+ print ()
132136 for name , compressed , addr , blocks , signature in analyze_binary (new_path , "new" ):
133137 try :
134138 insert_function_with_meta (conn , "new" , name , compressed , addr , blocks , signature )
135139 except Exception :
136140 insert_function (conn , "new" , name , compressed )
137141 new_count += 1
138- print (f"[*] { new_path } : { new_count } /{ new_total } " , end = "\r " , flush = True )
142+ print (f"[*] Exporting { new_path } : { new_count } /{ new_total } " , end = "\r " , flush = True )
139143
140144 print ()
145+ print ("-" * 100 )
141146 log .info (f"Decompiled { new_count } functions from new binary" )
142147 log .info (f"Total functions processed: { old_count + new_count } " )
143148
@@ -148,4 +153,5 @@ def run_diff(old_path, new_path, db_path):
148153
149154 finally :
150155 conn .close ()
151- print (f"Database written to { db_path } " )
156+ print ()
157+ print (f"[+] Database written to { db_path } " )
0 commit comments