##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::Tcp
include Msf::Auxiliary::Scanner
include Msf::Auxiliary::Report
def initialize(info = {})
super(update_info(info,
'Name' => 'Kippo SSH Honeypot Detector',
'Description' => %q{
This module will detect if an SSH server is running a Kippo honeypot.
This is done by issuing unexpected data to the SSH service and checking
the response returned for two particular non-standard error messages.
},
'Author' => 'Andrew Morris <andrew[at]morris.guru>',
'References' => [
['URL', 'https://www.obscurechannel.com/x42/magicknumber.html'],
['URL', 'http://morris.guru/detecting-kippo-ssh-honeypots/']
],
'License' => MSF_LICENSE
))
register_options([
Opt::RPORT(22)
])
end
def run_host(ip)
connect
banner = sock.get_once || ''
sock.put(banner + "\n" * 8)
response = sock.get_once || ''
if response =~ /(?:^Protocol mismatch\.\n$|bad packet length)/
print_good("#{ip}:#{rport} - Kippo detected!")
report_service(
:host => ip,
:port => rport,
:name => 'ssh',
:info => 'Kippo SSH honeypot'
)
else
vprint_status("#{ip}:#{rport} - #{banner.strip} detected")
end
end
end
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation