@@ -72,28 +72,11 @@ async def get_file(self, headers):
7272 return file_path , contents , display_name
7373
7474 async def save_file (self , filename , payload , target_dir , encrypt = True , encoding = None ):
75- self .log .debug ('[save_file] Start' )
76- self .log .debug ('[save_file] filename: %s' , filename )
77- self .log .debug ('[save_file] target_dir: %s' , target_dir )
78- self .log .debug ('[save_file] encrypt: %s' , encrypt )
79- self .log .debug ('[save_file] encoding: %s' , encoding )
80-
8175 if encoding :
82- self .log .debug ('[save_file] Decoding payload with encoding: %s' , encoding )
8376 payload = await self ._decode_contents (payload , encoding )
84- self .log .debug (payload )
85- else :
86- self .log .debug ('[save_file] Raw payload type: %s' , type (payload ))
87-
8877 final_path = os .path .join (target_dir , filename )
89- self .log .debug ('[save_file] Final path: %s' , final_path )
90- self .log .debug ('[save_file] Payload preview:\n %s' , str (payload )[:500 ]) # truncate large payloads
91-
9278 self ._save (final_path , payload , encrypt )
93-
94- self .log .debug ('[save_file] File saved.' )
95-
96-
79+
9780 async def create_exfil_sub_directory (self , dir_name ):
9881 path = os .path .join (self .get_config ('exfil_dir' ), dir_name )
9982 if not os .path .exists (path ):
0 commit comments