diff options
| author | Mosder <xmosder12@gmail.com> | 2026-06-14 01:35:28 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-06-14 01:35:28 +0200 |
| commit | d7f24097dcc8985a5824457cc9f73054111a2e8d (patch) | |
| tree | d25bfc25d24279df4fa0a587f8884a3a2a2b2d5a | |
| parent | f0d9f0c2dcc2029a907deee7981e7e5230b6d77c (diff) | |
feat: modified README.md to represent current features
| -rw-r--r-- | README.md | 97 |
1 files changed, 93 insertions, 4 deletions
@@ -1,6 +1,95 @@ -# A (to be) bare-bones analyzer for the game Broken Ranks +# A bare-bones analyzer for the game Broken Ranks -Yet to be implemented, analyzer for the game Broken Ranks. -Inspired by [BrokenHUD](https://github.com/Brok3nSign/BrokenTools/releases). -Will definitely be way more primitive than the one it's inspired on, because I just can't be bothered to add all those features. +Inspired by [BrokenHUD](https://github.com/Brok3nSign/BrokenTools/releases). +Way more primitive than the one it's inspired by, because I just can't be bothered to add all those features. Unless you value FOSS or have troubles setting up BrokenHUD on your linux system, then you should use [it](https://github.com/Brok3nSign/BrokenTools/releases) instead. + +## Features +- Capturing packets sent by the game and saving them to a file for later use + +### Planned features +- Analyzer for the `.pcap` files containing captured packets: + - List of fight results in the given file with rewards gained for each player + - Total gained rewards in all fights in the given file +- Live analyzer parsing packets in real time: + - Results of the last fight + - Total gained rewards, since starting the analyzer + +## Getting started + +### Prerequisites +- Base utils: `git`, `gcc`, `make` +- [tshark](https://tshark.dev/setup/install/#installing-tshark-only) + +### Installation +**1. Clone and enter the repository:** +``` +git clone https://github.com/Mosder/branal +cd branal +``` + +**2. Create the server header file:** +You will need to find out the IP address of the game server. +To do so, use [termshark](https://github.com/gcla/termshark) or any other tool you'd prefer. +Then, create the file (replace `<ip>` with the IP address you found): +``` +echo "#define SERVER_IP \"<ip>\"" > analyzer/headers/server.h +``` +It's not included in the repository to avoid it being scraped by bots or something. + +**3. Modify the interface header file:** +Right now the used interface is `enp8s0`, which likely isn't the name of your interface. +To find the name of your interface, use: +``` +ip address +``` +Then, modify the file (replace `<interface>` with your interface name): +``` +echo "#define INTERFACE \"<interface>\"" > analyzer/headers/interface.h +``` + +**4. Compile the code**: +Finally, compile the code with `make`. +To install it into `/usr/bin`: +``` +make +``` +that will use sudo and require password. +You can instead install it into `~/.local/bin`: +``` +make local +``` + +## Usage + +### Live analyzer (NOT IMPLEMENTED) +To start live analyzer, use: +``` +branal +``` +or +``` +branal (l | live) +``` +It will open the live analyzer in your terminal. + +### File analyzer (NOT IMPLEMENTED) +To analize a `.pcap` file, use: +``` +branal (f | file) <file> +``` +It will perform analysis of the specified `<file>`. + +### Capturing packets +To just capture packets from the server, use: +``` +branal (c | capture) [file] +``` +It will start capturing packets to the specified `[file]`. +If `[file]` is not specified, it will capture them to the default location (`~/.local/share/branal/captures`). + +### Help +You can display help using: +``` +branal (h | help) +``` |
