diff --git a/cuckoo/data/analyzer/windows/modules/packages/exe.py b/cuckoo/data/analyzer/windows/modules/packages/exe.py index 3afd55e0ba..78a22cd2c8 100644 --- a/cuckoo/data/analyzer/windows/modules/packages/exe.py +++ b/cuckoo/data/analyzer/windows/modules/packages/exe.py @@ -17,6 +17,8 @@ def start(self, path): name, ext = os.path.splitext(path) if not ext: new_path = name + ".exe" + if os.path.exists(new_path): + os.remove(new_path) os.rename(path, new_path) path = new_path