mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 22:44:29 +01:00
Make ourVersionString configurable (Resolves issue #54)
git-svn-id: https://kippo.googlecode.com/svn/trunk@247 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -640,10 +640,16 @@ class HoneyPotSSHFactory(factory.SSHFactory):
|
||||
self.dbloggers.append(dblogger)
|
||||
|
||||
def buildProtocol(self, addr):
|
||||
cfg = config()
|
||||
|
||||
# FIXME: try to mimic something real 100%
|
||||
t = HoneyPotTransport()
|
||||
|
||||
t.ourVersionString = 'SSH-2.0-OpenSSH_5.1p1 Debian-5'
|
||||
if cfg.has_option('honeypot', 'ssh_version_string'):
|
||||
t.ourVersionString = cfg.get('honeypot','ssh_version_string')
|
||||
else:
|
||||
t.ourVersionString = "SSH-2.0-OpenSSH_5.1p1 Debian-5"
|
||||
|
||||
t.supportedPublicKeys = self.privateKeys.keys()
|
||||
|
||||
if not self.primes:
|
||||
|
||||
Reference in New Issue
Block a user