Add a configuration file

git-svn-id: https://kippo.googlecode.com/svn/trunk@18 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster 2009-11-17 08:23:47 +00:00
parent 8a76ada681
commit b6786b2296
2 changed files with 5 additions and 1 deletions

3
config.py Normal file
View File

@ -0,0 +1,3 @@
# Kippo configuration
fake_hostname = 'sales'

View File

@ -12,6 +12,7 @@ import sys, os, random, pickle, time, stat, copy
from core import ttylog
from core.fstypes import *
import config
class HoneyPotProtocol(recvline.HistoricRecvLine):
def __init__(self, user, env):
@ -19,7 +20,7 @@ class HoneyPotProtocol(recvline.HistoricRecvLine):
self.env = env
self.cwd = '/root'
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.password_input = False