Code Monkey home page Code Monkey logo

ufw2tgchan's People

Contributors

bzhn avatar

Watchers

 avatar

ufw2tgchan's Issues

Report abuse

Report most active IPs in the list to abuseipdb.com.

Improve stats

Add a list with IPs subnets.
Use indentation for ip, ports and subnets addresses, so the statistics will look more pretty.
Write how many ports and IPs are not in the list of pingers

Count ports accesses and send stats every day

Use redis to store info about every port that has been accessed and info about how many times it happened.
Send the message like below every day:

This day there were 1845 tries to ping the server. Was accessed 548 uniq ports.
The leaderboard of the ports by time of accesses is following:
22 - 358 times
80 - 62 times
3697 - 20 times

Recorded 437 uniq ip addresses.
Leaderboard by number of pings is the following:
89.228.165.249 - 1103 times
61.137.173.36 - 359 times
123.214.175.178 - 43 times

Add tags to the messages

Allow user to add tags in the config file.
The format can be following:

tags:
  6379: redis
  22: ssh
  80: http
  443: https

Then the bot will check if the pinged port is in the list and will add a tag, #ssh e. g. if the port is 22.

This can help search through logs.

Also you can send a tag #vital instead of alert with exclamations marks at the start of the message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.