Skip to content

Michael-Meade/Cowrie-Log-ToolKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cowrie-Log-ToolKit

config.json

{
    "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

wget.rb

require_relative 'lib'
out = Input.new.wget
SaveBar.new(out, "test.png", json: true, show_labels: true).create_bar

input

require_relative 'lib'
inputs  = Input.new
inputs.input.each do |i, ii|
    puts "#{ii}] " + i
end

p inputs.wget

Get Login Data

require_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_bar

Login.rb

ruby 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.

ssh.rb

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
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages