# AscNet: reconstructing a Punishing: Gray Raven server

> AscNet reconstructs a server for Punishing: Gray Raven. Its C# code includes TCP game sessions, HTTP account and configuration endpoints, and handlers for game features. A companion parser reads packet captures, reassembles length-prefixed TCP messages, decrypts them and decodes MessagePack requests, responses and pushes into JSON.

- Type: Case study
- Targets: Game · Protocol
- Category: Independent reconstruction cases
- Relationship: Independent reconstruction project
- Sources reviewed: 2026-11-06
- Added to the catalog: 2026-11-09
- Original resource: <https://github.com/rafi1212122/AscNet>
- Primary source: <https://github.com/rafi1212122/AscNet/blob/a55e0896f6d402df22ab6e99f23854dd1d2ad46a/AscNet.PcapParser/PcapParser.cs>
- Catalog page: <https://awesomerea.org/resources/ascnet-punishing-gray-raven-case/>
- Record JSON: <https://awesomerea.org/resources/ascnet-punishing-gray-raven-case/record.json>
- Chinese version: [简体中文](https://awesomerea.org/zh/resources/ascnet-punishing-gray-raven-case/index.md)

## Requirements & limits

- **Prerequisites:** The packet parser takes a capture filename as its command-line argument.
- **Scope:** Punishing: Gray Raven is the named client target.
- **License:** No licence file in the repository.

## Primary sources

1. <https://github.com/rafi1212122/AscNet/blob/a55e0896f6d402df22ab6e99f23854dd1d2ad46a/AscNet.PcapParser/PcapParser.cs>
2. <https://github.com/rafi1212122/AscNet/blob/a55e0896f6d402df22ab6e99f23854dd1d2ad46a/README.md>
3. <https://github.com/rafi1212122/AscNet/blob/a55e0896f6d402df22ab6e99f23854dd1d2ad46a/AscNet.GameServer/Packet.cs>
4. <https://github.com/rafi1212122/AscNet/blob/a55e0896f6d402df22ab6e99f23854dd1d2ad46a/AscNet.GameServer/Server.cs>

## More in Games

- [AvalonEmu: reconstructing an Albion Online local server](https://awesomerea.org/resources/avalonemu-case/index.md) · Case study
- [AZMCO: reconstructing Motor City Online and its renderers](https://awesomerea.org/resources/azmco-case/index.md) · Case study
- [Bandersnatch: an annotated ZX Spectrum code disassembly](https://awesomerea.org/resources/bandersnatch-zx-spectrum-case/index.md) · Case study
- [Banjo-Kazooie: rebuilding the game from base ROMs](https://awesomerea.org/resources/banjo-kazooie-rebuild-case/index.md) · Case study
- [Batla 3D server emulator (2015 client)](https://awesomerea.org/resources/batla-3d-server-emulator-case/index.md) · Case study
- [Battlefield Heroes: master-server protocol reconstruction](https://awesomerea.org/resources/bfh-master-protocol-case/index.md) · Case study

## About this entry

The description was reviewed against primary sources.
Original editorial content: MIT. Linked projects, papers and assets retain their own rights and licenses.
