mirror of https://github.com/cowrie/cowrie.git
config fix
git-svn-id: https://kippo.googlecode.com/svn/trunk@53 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
parent
34257aa97b
commit
5d1a22dee6
|
@ -5,7 +5,7 @@ import os, time
|
||||||
from kippo.core.honeypot import HoneyPotCommand
|
from kippo.core.honeypot import HoneyPotCommand
|
||||||
from kippo.core.fs import *
|
from kippo.core.fs import *
|
||||||
from twisted.internet import reactor
|
from twisted.internet import reactor
|
||||||
import config
|
from kippo.core.config import config
|
||||||
|
|
||||||
commands = {}
|
commands = {}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class command_cat(HoneyPotCommand):
|
||||||
f = self.fs.getfile(path)
|
f = self.fs.getfile(path)
|
||||||
|
|
||||||
realfile = self.fs.realfile(f,
|
realfile = self.fs.realfile(f,
|
||||||
'%s/%s' % (config.contents_path, path))
|
'%s/%s' % (config().contents_path, path))
|
||||||
if realfile:
|
if realfile:
|
||||||
f = file(realfile, 'rb')
|
f = file(realfile, 'rb')
|
||||||
self.write(f.read())
|
self.write(f.read())
|
||||||
|
|
Loading…
Reference in New Issue