Giter VIP home page Giter VIP logo

volkansah / browsergamesspy Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 684 KB

This tool monitors system metrics and network connections for browser-based games like "Die Siedler Online". It collects data on CPU usage, memory usage, network activity, and active network connections, and displays these metrics in a graphical user interface (GUI)

License: GNU General Public License v3.0

Python 100.00%
chrome-driver csv dso matplotlib monitoring-tool network-analysis psutil python3 selenium system-analysis

browsergamesspy's Introduction

BrowserGamesSpy

System and Network Monitoring Tool | > Auf deutsch lesen

GameSpy

Table of Contents

Introduction

This tool monitors system metrics and network connections for browser-based games like "Die Siedler Online" (The Settlers Online). It collects data on CPU usage, memory usage, network activity, and active network connections, and displays these metrics in a graphical user interface (GUI) using tkinter. Additionally, the tool can save the collected data to a CSV file and visualize the metrics using matplotlib.

Why This Tool?

Online game operators often claim their systems are secure and harmless to your system. However, many forensic experts and security admins can prove otherwise. Frequent blue screens or system freezes, leading to improper shutdowns, can cause the following damages to your system:

  • Data Loss: Hard drive corruption
  • Memory Damage: Permanent damage to RAM
  • Overheating: Especially in modern devices like netbooks and laptops with minimal cooling and sensitive parts

It's not always clear where data is being sent, especially under the European General Data Protection Regulation (GDPR). As a user, I want to know where my data is being streamed. This tool is designed to help you document any concerns and potential damages, providing evidence to consumer protection agencies or similar entities to combat the pursuit of profit over service and security.

User Rights and GDPR

Under the GDPR, users have several rights regarding their personal data:

  • Right to be Informed: You must be informed about how your data is being used.
  • Right of Access: You can access your personal data and understand how it is being processed.
  • Right to Rectification: You can have your data corrected if it is inaccurate or incomplete.
  • Right to Erasure: You can request your data to be deleted.
  • Right to Restrict Processing: You can limit how your data is used.
  • Right to Data Portability: You can obtain and reuse your data across different services.
  • Right to Object: You can object to the processing of your data in certain circumstances.
  • Rights Related to Automated Decision-Making: You can challenge and request a review of decisions made without human intervention.

This tool helps you exercise these rights by providing transparency about the data being collected and how it is being used.

Features

  • Monitors CPU usage, memory usage, network sent/received bytes, and active network connections.
  • Displays metrics in a tkinter GUI with real-time updates.
  • Allows the user to select which metrics to display using checkboxes.
  • Saves collected data to a CSV file.
  • Visualizes metrics in plots using matplotlib.

Requirements

  • Python 3.x
  • psutil library for system metrics
  • selenium library for browser interaction
  • tkinter library for the GUI
  • csv module for saving data
  • matplotlib library for plotting data
  • ChromeDriver for selenium (ensure it is in the PATH)

Installation

  1. Install the required libraries:

    pip install psutil selenium matplotlib
  2. Download and install "ChromeDriver" and ensure it is in your PATH.

Usage

  1. Clone the repository or download the script.

  2. Run the script:

    python monitor.py
  3. The GUI will open and start monitoring the specified URL (https://www.diesiedleronline.de/), You can use this tool for every browsergame, please change URL for your needs.

  4. Use the checkboxes to select which metrics to display in the plots.

  5. Click the "Save Data" button to save the collected data to a CSV file.

Code Explanation

The code consists of the following main parts:

  1. Imports and Functions:

    • Import necessary libraries.
    • Define functions to get system metrics and network connections.
  2. Update Metrics:

    • Collect metrics every 5 seconds.
    • Update the GUI with the latest metrics.
    • Append collected data to a list for future reference or saving.
  3. Save Data:

    • Save the collected data to a CSV file when the "Save Data" button is clicked.
  4. Plot Data:

    • Plot the selected metrics in the GUI using matplotlib.
  5. Main Function:

    • Set up the tkinter GUI.
    • Start the Chrome browser using selenium.
    • Begin the monitoring and updating loop.

This tool aims to empower users by ensuring transparency and accountability from online game operators, particularly in light of the GDPR. Use this tool to monitor your system, understand the impact of online games, and safeguard your rights.

License

This project is licensed under the GPLv3 License - see the LICENSE file for details.

Source

browsergamesspy's People

Contributors

volkansah avatar

Stargazers

 avatar

Watchers

 avatar

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.