@@ -72,28 +72,11 @@ async def get_file(self, headers):
72
72
return file_path , contents , display_name
73
73
74
74
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
-
81
75
if encoding :
82
- self .log .debug ('[save_file] Decoding payload with encoding: %s' , encoding )
83
76
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
-
88
77
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
-
92
78
self ._save (final_path , payload , encrypt )
93
-
94
- self .log .debug ('[save_file] File saved.' )
95
-
96
-
79
+
97
80
async def create_exfil_sub_directory (self , dir_name ):
98
81
path = os .path .join (self .get_config ('exfil_dir' ), dir_name )
99
82
if not os .path .exists (path ):
0 commit comments