mirror of
https://github.com/cowrie/cowrie.git
synced 2025-07-01 18:07:27 -04:00
Add a configuration file
git-svn-id: https://kippo.googlecode.com/svn/trunk@18 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@ -12,6 +12,7 @@ import sys, os, random, pickle, time, stat, copy
|
|||||||
|
|
||||||
from core import ttylog
|
from core import ttylog
|
||||||
from core.fstypes import *
|
from core.fstypes import *
|
||||||
|
import config
|
||||||
|
|
||||||
class HoneyPotProtocol(recvline.HistoricRecvLine):
|
class HoneyPotProtocol(recvline.HistoricRecvLine):
|
||||||
def __init__(self, user, env):
|
def __init__(self, user, env):
|
||||||
@ -19,7 +20,7 @@ class HoneyPotProtocol(recvline.HistoricRecvLine):
|
|||||||
self.env = env
|
self.env = env
|
||||||
self.cwd = '/root'
|
self.cwd = '/root'
|
||||||
self.fs = HoneyPotFilesystem(deepcopy(self.env.fs))
|
self.fs = HoneyPotFilesystem(deepcopy(self.env.fs))
|
||||||
self.prompt = 'sales:%(path)s# '
|
self.prompt = '%s:%%(path)s# ' % config.fake_hostname
|
||||||
self.next_callback = None
|
self.next_callback = None
|
||||||
self.password_input = False
|
self.password_input = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user