From c83fd45c87d894495834de4e550231929d1c32d5 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Mon, 18 Aug 2014 15:14:50 +0200 Subject: [PATCH] less verbose logging --- kippo/core/fs.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/kippo/core/fs.py b/kippo/core/fs.py index 05d4b23..0a38c8c 100644 --- a/kippo/core/fs.py +++ b/kippo/core/fs.py @@ -182,27 +182,26 @@ class HoneyPotFilesystem(object): def open(self, filename, openFlags, mode): #print "fs.open %s" % filename - if (openFlags & os.O_APPEND == os.O_APPEND): - #print "fs.open append" + #if (openFlags & os.O_APPEND == os.O_APPEND): + # print "fs.open append" - if (openFlags & os.O_CREAT == os.O_CREAT): - #print "fs.open creat" + #if (openFlags & os.O_CREAT == os.O_CREAT): + # print "fs.open creat" - if (openFlags & os.O_TRUNC == os.O_TRUNC): - #print "fs.open trunc" + #if (openFlags & os.O_TRUNC == os.O_TRUNC): + # print "fs.open trunc" - if (openFlags & os.O_EXCL == os.O_EXCL): - #print "fs.open excl" + #if (openFlags & os.O_EXCL == os.O_EXCL): + # print "fs.open excl" if openFlags & os.O_RDWR == os.O_RDWR: - #print "fs.open rdwr" raise notImplementedError elif openFlags & os.O_WRONLY == os.O_WRONLY: # ensure we do not save with executable bit set realmode = mode & ~(stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH) - #print "fs.open wronly %s " % os.O_WRONLY + #print "fs.open wronly" # TODO: safeoutfile could contains source IP address safeoutfile = '%s/%s_%s' % \ (config().get('honeypot', 'download_path'), @@ -217,7 +216,6 @@ class HoneyPotFilesystem(object): return fd elif openFlags & os.O_RDONLY == os.O_RDONLY: - #print "fs.open rdonly" return None return None