diff --git a/config.py b/config.py new file mode 100644 index 00000000..97f1c27e --- /dev/null +++ b/config.py @@ -0,0 +1,3 @@ +# Kippo configuration + +fake_hostname = 'sales' diff --git a/core/Kippo.py b/core/Kippo.py index 2aa4e93b..9cf6acdd 100644 --- a/core/Kippo.py +++ b/core/Kippo.py @@ -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