neo/README.md
2026-03-17 00:16:14 -05:00

34 lines
840 B
Markdown

# Neo
A simple C2 for [Matrix](https://matrix.org/) homeservers, inspired by [DiscordGo](https://github.com/emmaunel/DiscordGo)
## Setup
You'll need an account on a Matrix server to use for the bot.
In `src/main.nim`, modify the config values with your account and server.
Example config:
```nim
const
username: string = "neo"
password: string = "password123"
server: string = "matrix.org"
roomId: string = "!bsafgr3AAmy8gHdrcy:matrix.org"
```
## Building
If it isn't already installed you'll need to install [Nim](https://nim-lang.org/install.html).
```bash
# Install dependencies
nimble install strenc
# Compile (outputs to ./neo)
nim c -d:ssl -d:release -o:neo src/main
```
## Bot Usage
Commands:
- `!ping {ip pattern}`
- `!command {ip pattern} {command}`
- `!kill {ip pattern}`
IP pattern example: `10.1.*.4`