Skip to content

ceving/hostile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hostile attacks

This repository contains protocols of hostile attacks.

Once a day in the morning the data of the previous day gets collected using journalctl:

journalctl --identifier sshd --since=yesterday --until=today --priority=notice --output=json

Next the IP addresses are extracted using jq:

jq -c '{ts:._SOURCE_REALTIME_TIMESTAMP}+(.MESSAGE|capture("authentication failure.* rhost=(?<ip>[^ ]+) "))'

And the locations are looked up in the IPFire location database using location-lookup.

location-lookup ip

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages