[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109930":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":28,"discoverSource":29},109930,"CivSwitchLDN","ItsNerisma\u002FCivSwitchLDN","ItsNerisma","Port CivSwitch to a LDN transport",null,"JavaScript",100,9,3,1,0,2,47,48.7,"GNU General Public License v3.0",false,"main",true,[],"2026-11-18 15:58:17","2026-11-22 10:25:39","# CivSwitchLDN\n\n> [!IMPORTANT]\n> **[CivSwitch](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch) is an exploit by [Gezine](https:\u002F\u002Fgithub.com\u002FGezine).** This project delivers it through local wireless (LDN) :heart:.\n\n## Demo (don't blink)\n\nNo capture card, sorry 🫣​​\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ffefe32c0-e343-43c3-b716-296bd97ffa70\n\n## Requirements\n\n- The **physical Switch 1 edition of Civilization VII, version 1.0.0**. See [CivSwitch](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch#readme) for console firmware compatibility.\n- A real Linux system (*WSL isn't supported yet*).\n- Node.js 18+, Python 3.12+ with `venv`, and `setcap` (`libcap2-bin` on Debian\u002FUbuntu).\n- A Switch 2, **on the same Wi-Fi network as the Linux system**.\n- **Your own `prod.keys`, dumped from your own Switch 1.** Place it at the repository root before running.\n\n## Usage\n\n### 1. Install dependencies once.\n\n```sh\nnpm install\n```\n\nSetup may ask for `sudo` to grant the Python helper its network permissions.\n\n### 2. Setup the game\n\nOn the Switch, open Civilization VII and go to **MULTIPLAYER > WIRELESS > CREATE GAME (R stick press) > HOST LOBBY (+)**\n\n### 3. Run the thing\n\n> [!IMPORTANT]\n> NetworkManager will **temporarily disable all managed network connections** while the payload is sent over LDN. Afterwards, the script restores the previous Wi-Fi connection and waits for its IPv4 address before looking for the Remote JS Loader. If restoration fails, reconnect Wi-Fi manually before using the loader.\n\nLeave the lobby open, then run:\n\n```sh\nnpm start\n```\n\nThe output shows connection and delivery steps, with warnings and errors when needed. For packet traces and diagnostics, run `npm start -- --verbose`.\n\n### 4. Persist the exploit (optional)\n\nAfter injection, the PC waits for the Remote JS Loader to respond on port 9026 before offering the persistent installer. Type **`y`** to install, or **`n`** to finish. If automatic discovery cannot identify the console, enter the IP displayed by the loader.\n\nIt will replace the game's single-player saves. Keep the game open until it prints **`INSTALL DONE`**. Afterwards, restart the game and select **Load Game** to start the loader again :tada:.\n\n### Send JS payloads\n\nOnce the Remote JS Loader is running, send a JS file to the console IP shown on screen:\n\n```sh\nnode send_payload.js \u003Cconsole-ip> payloads\u002Fhelloworld.js\n```\n\nThe JS file is optional (default: `payloads\u002Fhelloworld.js`), as is a third port argument (default: `9026`).\n\n## How it works\n\n`run.js` handles the sequence:\n\n1. Compress `payloads\u002Fcore.js` into 19 chat messages.\n2. Temporarily release Wi-Fi for LDN, scan nearby LDN networks, connect to the selected host, join its Civilization VII lobby and send the messages.\n3. Close the LDN connection and attempt to restore networking, including on failure or interruption.\n4. Wait for the Remote JS Loader on port 9026 after networking is restored, then offer Gezine's persistent installer.\n\n## Troubleshooting\n\nUse `--verbose` to see a timestamped trace of all packets exchanged with the lobby.\n\n```sh\nnpm start -- --verbose\n```\n\nIf the exploit fails on your hardware, try slowing down the handshake with `--handshake-scale` (default: 1.0). For example, `3` triples the delays between registration messages:\n\n```sh\nnpm start -- --handshake-scale 3\n```\n\nYou can adjust the delay between chat messages (default: 10 ms):\n\n```sh\nnpm start -- --chat-delay 50\n```\n\n## Project structure\n\n```text\nrun.js                   # Main flow and installer prompt\nloader.js                # Remote JS Loader verification and LAN discovery\ncompress.js              # Payload compression for chat delivery\nsend_payload.js          # Optional JS payload sender\nbash\u002F                    # Linux scripts (setup, network stuff...)\npayloads\u002F                # Gezine's exploit and an example payload\ninstaller\u002F               # Persistent installer and save template\nldn\u002F                     # LDN client, game protocol and transport\nLICENSES\u002F                # Original licenses for the upstream components\nTHIRD_PARTY_NOTICES.md   # Reused files, sources and license scope\n```\n\n## Licenses\n\nCivSwitchLDN as a combined application, and the original code contributed by ItsNerisma, are licensed under the **GNU GPL version 3 only (`GPL-3.0-only`)**. See [LICENSE](LICENSE). Copyright (c) 2026 ItsNerisma.\n\nThe reused CivSwitch files retain **Gezine's MIT license and copyright**; they remain available separately under MIT. The **LDN library by Kinnay (Yannik Marchand)** is a GPLv3 dependency. See [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) for file origins, adaptations and the preserved upstream notices.\n\nWhen redistributing the application, include its license and third-party notices. Binary or bundled releases must also provide access to the complete corresponding source under the GPLv3 terms, including any included GPL dependencies and the scripts needed to build and install them. The software is provided without warranty; see the license texts for the full terms.\n\n## Credits\n\n- **[Gezine](https:\u002F\u002Fgithub.com\u002FGezine)** for [CivSwitch](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch), the exploit, Remote JS Loader and persistent installer. Reused files link to [their source version](https:\u002F\u002Fgithub.com\u002FGezine\u002FCivSwitch\u002Ftree\u002F3238a3e3340fd19a9dbd5cde56f3b50f9bc5d97f).\n- **[Kinnay](https:\u002F\u002Fgithub.com\u002Fkinnay)** for the [LDN library](https:\u002F\u002Fgithub.com\u002Fkinnay\u002FLDN), used as a Python dependency under GPL-3.0.\n","CivSwitchLDN 是一个将 CivSwitch 游戏漏洞利用工具适配至任天堂 Switch 本地无线网络（LDN）传输通道的 JavaScript 实现。它通过劫持《文明VII》Switch 1版的无线联机 lobby，将压缩后的 JavaScript 有效载荷分19条聊天消息注入目标主机，并启动远程 JS 加载器（监听端口9026），支持后续自定义 JS 脚本发送与持久化安装。项目依赖真实 Linux 环境、Node.js\u002FPython 运行时及用户自有 prod.keys，需配合物理 Switch 主机与同网段 Switch 2 使用。适用于在合法拥有游戏与设备前提下进行本地安全研究、自制软件加载或调试场景。","2026-11-24 04:37:55","CREATED_QUERY"]