This commit is contained in:
Michel Oosterhof 2018-04-09 11:06:48 +04:00
commit a0ddb1ee49
4 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ twisted/plugins/dropin.cache
_trial_temp _trial_temp
.project .project
.pydevproject .pydevproject
.idea/

View File

@ -43,7 +43,7 @@ download_path = dl
# Directory for miscellaneous data files, such as the password database. # Directory for miscellaneous data files, such as the password database.
# #
# (default: data_path) # (default: data)
data_path = data data_path = data

View File

@ -71,7 +71,7 @@ class Artifact:
return self.fp.fileno() return self.fp.fileno()
def close(self, keepEmpty=True): def close(self, keepEmpty=False):
""" """
""" """
size = self.fp.tell() size = self.fp.tell()

View File

@ -92,6 +92,8 @@ class HoneyPotBaseProtocol(insults.TerminalProtocol, TimeoutMixin):
self.clientVersion = self.getClientVersion() self.clientVersion = self.getClientVersion()
self.logintime = time.time() self.logintime = time.time()
log.msg(eventid='cowrie.session.params', arch=self.user.server.arch)
try: try:
timeout = CONFIG.getint('honeypot', 'interactive_timeout') timeout = CONFIG.getint('honeypot', 'interactive_timeout')
except: except: