{"id":51448054,"url":"https://github.com/aasb13/mope-io","last_synced_at":"2026-07-05T18:01:26.892Z","repository":{"id":367228786,"uuid":"1279838566","full_name":"aasb13/mope-io","owner":"aasb13","description":"A mope io utility client, with almost all packets reverse engineered","archived":false,"fork":false,"pushed_at":"2026-06-25T04:20:33.000Z","size":3769,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-25T06:13:05.022Z","etag":null,"topics":["client","mope-io","mopeio","mopeio-engine","packet","reverse-engineering","server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aasb13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-25T03:56:32.000Z","updated_at":"2026-06-25T04:21:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aasb13/mope-io","commit_stats":null,"previous_names":["aasb13/mope-io"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aasb13/mope-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasb13%2Fmope-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasb13%2Fmope-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasb13%2Fmope-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasb13%2Fmope-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aasb13","download_url":"https://codeload.github.com/aasb13/mope-io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aasb13%2Fmope-io/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35163846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","mope-io","mopeio","mopeio-engine","packet","reverse-engineering","server"],"created_at":"2026-07-05T18:01:26.172Z","updated_at":"2026-07-05T18:01:26.851Z","avatar_url":"https://github.com/aasb13.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mope.io reverse engineered\n\nA simple mope.io client that injects into the websocket. (Most packets were completely reverse engineered, 64 packets as of now)\n\n## Overview\n\nThis project builds and injects a userscript into mope.io to intercept all WebSocket packets. A Python controller manages the browser session via SeleniumBase (UC mode), injects the userscript, and drains packet logs.\n\n## Installation\n\n### Prerequisites\n\n- Python 3.8+\n- Chromium/Chrome browser\n\n### Setup\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/aasb13/mopeio\ncd mopeio\n```\n\n2. Create a virtual environment:\n```bash\npython3 -m venv .venv\nsource .venv/bin/activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\n### Build the Userscript\n\n```bash\npython3 scripts/build_userscript.py\n```\n\nThis compiles the source files from `src/userscript/` into a fat `userscript.js`.\n\n### Launch the Controller\n\n```bash\npython3 run_controller.py\n```\n\n### Command-Line Options\n\n- `--browser`: Browser to use (chromium, chrome, edge) [default: chromium]\n- `--url`: Target URL [default: https://mope.io/]\n- `--headless`: Run browser in headless mode\n- `--browser-profile-dir`: Persistent browser profile directory\n- `--no-browser-profile`: Use temporary profile instead\n- `--skip-build`: Skip userscript rebuild\n- `--script`: Path to prebuilt userscript.js\n- `--packet-log-file`: Write packet logs to JSONL file [default: packet_logs.jsonl]\n- `--no-packet-log-file`: Disable file logging\n- `--packet-log-stdout`: Pretty-print packet logs to stdout\n- `--packet-log-viewer`: Start web-based packet viewer\n- `--no-open-packet-log-viewer`: Start viewer server without opening browser\n- `--no-debug-log-viewer`: Disable debug viewer\n- `--no-open-debug-log-viewer`: Start debug viewer without opening browser\n\n## Project Structure\n\n```\nmopeio/\n├── assets/                 # Deobfuscated game source files\n│   └── deobf.js            # Primary reference for packet structure\n├── controller/             # Python controller logic\n│   ├── browser.py          # Browser configuration and driver creation\n│   ├── inject.py           # Userscript injection\n│   ├── browser_log_pump.py # Log collection from browser\n│   ├── log_viewer.py       # Log viewer server setup\n│   └── main.py             # Main entry point\n├── scripts/\n│   └── build_userscript.py # Userscript build script\n├── src/userscript/         # Userscript source files\n│   ├── core/               # Core packet handling\n│   ├── event/              # Event system\n│   ├── module/             # Modular features\n│   ├── network/            # Packet parsers\n│   ├── structures/         # Game data structures\n│   ├── ui/                 # UI components\n│   └── utils/              # Utility functions\n├── viewer/                 # Web viewer HTML files\n│   ├── index.html          # Packet viewer UI\n│   └── debug.html          # Debug log viewer UI\n├── userscript.js           # Built userscript (generated, excluded from git)\n├── requirements.txt        # Python dependencies\n└── run_controller.py       # Controller entry point\n```\n\n## Packet File Naming\n\nPacket parsers in `src/userscript/network/` follow the pattern:\n```\n{ID}_{C/S}{PacketName}.js\n```\n\n- `ID`: Packet ID number\n- `C`: Client-sent packet\n- `S`: Server-sent packet\n- `PacketName`: Descriptive packet name\n\nExample: `5_CMovementPacket.js` (ID 5, client-sent, movement data)\n\n## Dependencies\n\n- seleniumbase\u003e=4.40,\u003c5\n- python-socketio\u003e=5.12,\u003c6\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faasb13%2Fmope-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faasb13%2Fmope-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faasb13%2Fmope-io/lists"}