Git Product home page Git Product logo

bims-sh / mc-spam-bot-parser Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 7 KB

This repository contains a script that is designed to extract and identify spammer bots that frequently appear in the logs of Minecraft servers. The script parses the log file, filters out the spam bot entries, and provides information about the unique IP addresses associated with the spammer bots along with their corresponding names.

License: MIT License

Shell 100.00%
log-parser minecraft-bots minecraft-script minecraft-server minecraft-server-software server-scanner

mc-spam-bot-parser's Introduction

Spam Bot Log Parser

This repository contains a script that is designed to extract and identify spammer bots that frequently appear in the logs of Minecraft servers. The script parses the log file, filters out the spam bot entries, and provides information about the unique IP addresses associated with the spammer bots along with their corresponding names.

How to

Usage:

./spam-bot-parser.sh <log_file> [options]

Options:

  • -u, --unique: Display only the unique IP addresses and their corresponding names.
  • -p, --ports: Include the port numbers in the IP addresses.

Example usage:

./spam-bot-parser.sh ./logs/latest.log -u

Example output:

Bunger;3.xx.xx.xxx
Bunger;52.xx.xx.xxx
cuute;162.xx.xxx.xxx
cuute;45.xxx.xxx.xxx

Note: If you want to save the output, it can be easily done by using the > operator as shown below.

./spam-bot-parser.sh ./logs/latest.log -u > output.csv

License

This project is licensed under the MIT License.

mc-spam-bot-parser's People

Contributors

bims-sh avatar

Stargazers

 avatar  avatar

Watchers

 avatar

mc-spam-bot-parser's Issues

Bots with ID's don't get filtered

As of currently there were almost no bots that had an actual UUID, this has changed.

Previously there were only logs with the UUID being "null" like this one:

[05:57:21 INFO]: com.mojang.authlib.GameProfile@2b9ec49c[id=<null>,
name=xxx,properties={},legacy=false]
(/147.xx.xx.xx:36688) lost connection: Disconnected

However...
It seems that some bots using actual accounts have appeared:

[03:12:48 INFO]: com.mojang.authlib.GameProfile@61d5a8a2[id=3c7ef033-aee9-4e8d-b3bd-2d185138b337,
name=xxx,properties={textures=[com.mojang.authlib.properties.Property@55679987]},legacy=false]
(/94.xx.xx.xx:34952) lost connection: You are not whitelisted on this server!

and since this script doesn't take this into consideration it doesn't filter them out, I'll try to think of a solution and will update the script accordingly in the next few days.

I might add an option to filter only accounts with UUID "null".

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.