{
"ip": "",
"uname": "root",
"pass": "",
"port": 67
}The file, config.json needs to be in the same directory for SSH or SCP to work.
Example of this can be seen in ssh.rb
require_relative 'lib'
out = Input.new.wget
SaveBar.new(out, "test.png", json: true, show_labels: true).create_barrequire_relative 'lib'
inputs = Input.new
inputs.input.each do |i, ii|
puts "#{ii}] " + i
end
p inputs.wgetrequire_relative 'lib'
require 'date'
log = Login.new
s = log.run
SaveBar.new(s, Date.today.to_s + "-LOGIN-success.png", json: true, show_labels: true, title: "Successful Logins").create_bar
log.type = "failed"
f = log.run
SaveBar.new(f, Date.today.to_s + "-LOGIN-failed.png", json: true, show_labels: true, title: "Failed Logins").create_barruby login.rb -success
Will create a bar graph that contains the top ten successful logins.
ruby login.rb -failed
The command above will create a bar graph with the top 10 failed logins.
The ssh.rb file can be used to download the cowrie log file from the honey pot. There must be a file named config.json in the same directory. This config file contains the information needed to SSH or SCP to the honeypot server. An example of what the contents of the config file should look like can be seen below.
{
"ip": "",
"uname": "root",
"pass": "",
"port": 67
}