mirror of https://github.com/cowrie/cowrie.git
add imports for logging, disable logging from fs.py
This commit is contained in:
parent
4ace22db76
commit
c4efff1283
|
@ -6,6 +6,7 @@ import string
|
|||
import twisted
|
||||
from twisted.cred import checkers, credentials, error
|
||||
from twisted.internet import defer
|
||||
from twisted.python import log
|
||||
from zope.interface import implements
|
||||
|
||||
from kippo.core.config import config
|
||||
|
@ -131,7 +132,7 @@ class HoneypotPasswordChecker:
|
|||
log.msg( 'login attempt [%s/%s] succeeded' % (username, password) )
|
||||
return True
|
||||
else:
|
||||
losg.msg( 'login attempt [%s/%s] failed' % (username, password) )
|
||||
log.msg( 'login attempt [%s/%s] failed' % (username, password) )
|
||||
return False
|
||||
|
||||
# vim: set sw=4 et:
|
||||
|
|
|
@ -96,7 +96,7 @@ class HoneyPotFilesystem(object):
|
|||
if not f[A_REALFILE] and os.path.exists(realfile) and \
|
||||
not os.path.islink(realfile) and os.path.isfile(realfile) and \
|
||||
f[A_SIZE] < 25000000:
|
||||
log.msg( 'Updating realfile to %s' % realfile )
|
||||
#log.msg( 'Updating realfile to %s' % realfile )
|
||||
f[A_REALFILE] = realfile
|
||||
|
||||
def realfile(self, f, path):
|
||||
|
@ -124,7 +124,7 @@ class HoneyPotFilesystem(object):
|
|||
if count > 10:
|
||||
raise TooManyLevels
|
||||
path = self.resolve_path(target, os.path.dirname(target))
|
||||
log.msg( '%s resolved into %s' % (target, path) )
|
||||
#log.msg( '%s resolved into %s' % (target, path) )
|
||||
if not path or not self.exists(path):
|
||||
raise FileNotFound
|
||||
f = self.getfile(path)
|
||||
|
|
|
@ -6,6 +6,7 @@ from copy import deepcopy, copy
|
|||
import os
|
||||
import shlex
|
||||
|
||||
from twisted.python import log
|
||||
from kippo.core import fs
|
||||
from kippo.core.config import config
|
||||
import kippo.core.exceptions
|
||||
|
|
|
@ -10,6 +10,7 @@ from twisted.conch import recvline
|
|||
from twisted.conch.ssh import transport
|
||||
from twisted.conch.insults import insults
|
||||
from twisted.internet import protocol
|
||||
from twisted.python import log
|
||||
from copy import deepcopy, copy
|
||||
|
||||
from kippo.core import ttylog, fs
|
||||
|
|
Loading…
Reference in New Issue