Skip to content

Instantly share code, notes, and snippets.

@dexterbt1
Created March 18, 2026 06:21
Show Gist options
  • Select an option

  • Save dexterbt1/28873169af4545599a220aa9fba8bb1b to your computer and use it in GitHub Desktop.

Select an option

Save dexterbt1/28873169af4545599a220aa9fba8bb1b to your computer and use it in GitHub Desktop.

Source log data from: https://github.com/logpai/loghub/blob/master/OpenSSH/OpenSSH_2k.log

Using a programming language you are strong at, code a single program that reads the file to obtain the results for the ff. ..

  • for those who triggered POSSIBLE BREAK-IN ATTEMPT
    • who are the offending IPs (and reversed mapped domains)?
    • how many attempts for each IP?
  • for those who triggered and matched log lines: "failed password for $user from $ip"
    • count of failed attempts per user-attacked and source IP?
    • most attacked user name and attempts count?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment