From 5ca19ab08be85cb9d101ea0a69f886487adc2467 Mon Sep 17 00:00:00 2001 From: Michel Oosterhof Date: Wed, 13 May 2015 06:40:21 +0000 Subject: [PATCH] update version string rename hostname --- cowrie.cfg.dist | 16 +++++++++------- cowrie/core/ssh.py | 2 +- honeyfs/etc/hostname | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/cowrie.cfg.dist b/cowrie.cfg.dist index 856278a..801eb3c 100644 --- a/cowrie.cfg.dist +++ b/cowrie.cfg.dist @@ -26,8 +26,8 @@ # Hostname for the honeypot. Displayed by the shell prompt of the virtual # environment. # -# (default: svr03) -hostname = svr03 +# (default: svr04) +hostname = svr04 # Directory where to save log files in. # @@ -117,8 +117,8 @@ exec_enabled = true # sftp_enabled enables the sftp subsystem sftp_enabled = true -# IP address to bind to when opening outgoing connections. Used exclusively by -# the wget command. +# IP address to bind to when opening outgoing connections. Used by +# the wget and curl commands. # # (default: not specified) #out_addr = 0.0.0.0 @@ -134,8 +134,9 @@ sftp_enabled = true #fake_addr = 192.168.66.254 # The IP address on which this machine reachable on from the internet. -# Useful if you use portforwarding or other mechanisms. If empty, the cowrie +# Useful if you use portforwarding or other mechanisms. If empty, cowrie # will determine by itself. Used in 'netstat' output +# #internet_facing_ip = 9.9.9.9 # SSH Version String @@ -159,10 +160,11 @@ sftp_enabled = true # SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze2 # SSH-2.0-OpenSSH_5.8p2_hpn13v11 FreeBSD-20110503 # SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1 +# SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2 # SSH-2.0-OpenSSH_5.9 # -# (default: "SSH-2.0-OpenSSH_5.1p1 Debian-5") -ssh_version_string = SSH-2.0-OpenSSH_5.1p1 Debian-5 +# (default: "SSH-2.0-SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2") +ssh_version_string = SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2 # Banner file to be displayed before the first login attempt. # diff --git a/cowrie/core/ssh.py b/cowrie/core/ssh.py index 932fc14..ec6a0e6 100644 --- a/cowrie/core/ssh.py +++ b/cowrie/core/ssh.py @@ -159,7 +159,7 @@ class HoneyPotSSHFactory(factory.SSHFactory): 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.ourVersionString = "SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2" t.supportedPublicKeys = self.privateKeys.keys() diff --git a/honeyfs/etc/hostname b/honeyfs/etc/hostname index 16e58e6..4a45f40 100644 --- a/honeyfs/etc/hostname +++ b/honeyfs/etc/hostname @@ -1 +1 @@ -svr03 +svr04