From 52431402dd11b549c5463c69f2952b20e6223736 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 16 Jul 2012 17:58:30 +0100 Subject: [PATCH] minor fix to avoid cleanup() if web backdoor upload failed --- plugins/generic/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/generic/misc.py b/plugins/generic/misc.py index 5bf55ea14..87d7a98f7 100644 --- a/plugins/generic/misc.py +++ b/plugins/generic/misc.py @@ -112,7 +112,7 @@ class Miscellaneous: and functions """ - if web: + if web and self.webBackdoorFilePath: logger.info("cleaning up the web files uploaded") self.delRemoteFile(self.webStagerFilePath)