[RELEASE] Pangya JP Server Source Code - Rev 1.0
Hello everyone,
I’m here to present Revision 1.0 of the Pangya JP Server source code. This is a complete project, including functional modes for:
All Mode Include
I hope this helps the community and that someone can take this base to improve it even further. I have left the sensitive parts of the code compressed within the repository to prevent unauthorized access to specific server infrastructures, as we know leaked code can sometimes be misused.
Quick Links
Code, Docx, Website, Live Preview:
Source
Pangya Server Community Page
Docx
Read-me:
English
Portugues
Video Preview (Rev 2.0): Watch on YouTube
What’s Included The repository contains both the Release and Debug versions. Please check the documentation folder for setup instructions.
Special thanks to all the players who supported and collaborated on this journey, especially my colleagues from this community.
For questions or support, feel free to send me a private message!
Thanks for sharing the code! If I understood correctly, the code has been converted from C++ to C#, is that correct?
IMHO it would be better to add the most important parts of the English documentation on the GitHub’s main page. I always see that in every project on GitHub, as it’s a quick way to show what does the project do and what are its requirements.
Other couple of things that might be worth documenting, sorry if this is already mentioned in the docs:
what version of the client is supported by the server, and where to download it
what functionalities are not yet supported (f.e. gacha?).
Varthall
The server is complete. Gacha? It’s not part of the server; it’s a web element. The server is built. The documentation? It’s in English and Portuguese. We have a wiki; README files are available in both Brazilian and English. I used Google Translate to improve the text in the English version.
Let’s say I convert all the code to C#, the code might not be working as expected, but you can redo it if you’re interested. I had to redo everything, a better version, Revision 2. video: https://www.youtube.com/watch?v=oHEyNKMTazg
luismk
May 11, 2026, 11:35am
5
Revison 2.0 Add Ant Packet Flood + Ant DDOS
luismk
May 11, 2026, 11:47am
6
I can’t say for sure, but since I used Acrisio Super SS Dev’s project, I’ve noticed several flaws in the mechanisms, including the auth server, which needs a huge improvement. I had the patience to completely rewrite it, making the code organized and clean. Let’s say 90% was rewritten; the other 10% was analysis and testing for better results. The server from revision 1.0 crashes constantly (Auth Server), connections become unstable, and a small flaw in the TCP client causes this ‘delay’.
Auth Server 2.0 - Log:
[2026-05-09 17:32:43.065] [AuthServer] Authentication Server started on 127.0.0.1:xxxx
[2026-05-09 17:32:43.195] [System] Digite ‘exit’ para fechar ou ‘status’ para informacoes.
[2026-05-09 17:32:45.248] [AuthService::OnClientConnected] PLAYER[IP: 127.0.0.1 ID: 1]
[2026-05-09 17:32:45.307] [Handle_PLAYER_LOGIN][Sucess] SERVER[ID: Login Server, UID: xxxx, OID: 1]
[2026-05-09 17:32:47.506] [AuthService::OnClientConnected] PLAYER[IP: 127.0.0.1 ID: 2]
[2026-05-09 17:32:47.532] [Handle_PLAYER_LOGIN][Sucess] SERVER[ID: Messenger Server, UID: xxxx, OID: 2]
[2026-05-09 17:32:50.029] [AuthService::OnClientConnected] PLAYER[IP: 127.0.0.1 ID: 3]
[2026-05-09 17:32:50.057] [Handle_PLAYER_LOGIN][Sucess] SERVER[ID: Rank Server, UID: xxxxx, OID: 3]
[2026-05-09 17:32:51.772] [AuthService::OnClientConnected] PLAYER[IP: 127.0.0.1 ID: 4]
[2026-05-09 17:32:51.788] [Handle_PLAYER_LOGIN][Sucess] SERVER[ID: Kuma(2.0), UID: xxxx, OID: 4]
[2026-05-10 00:00:01.538] [AuthService::Monitor][Info] Update File Log.
[2026-05-10 12:57:35.508] [AuthService::OnClientDisconnecteded][Warning] PLAYER[IP: 127.0.0.1 ID: 1]
[2026-05-10 12:57:49.106] [AuthService::OnClientConnected] PLAYER[IP: 127.0.0.1 ID: 5]
[2026-05-10 12:57:49.157] [Handle_PLAYER_LOGIN][Sucess] SERVER[ID: Login Server, UID: xxxx, OID: 5]
[2026-05-10 16:27:01.029] [Handle_REQUEST_INFO_PLAYER][Sucess] SERVER[REQ: xxxx, PLAYER: xxxx, FOR: xxxx]
[2026-05-10 16:27:01.037] [Handle_CONFIRM_SEND_INFO_PLAYER][Sucess] Routing confirmation: SOURCE[Server: xxxx] → DEST[Server: xxxx] PLAYER: xxxx
[2026-05-10 16:27:45.408] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: 1]
[2026-05-10 16:43:01.038] [AuthService::OnClientDisconnecteded][Warning] PLAYER[IP: 127.0.0.1 ID: 5]
[2026-05-10 16:59:02.540] [AuthService::OnClientConnected] PLAYER[IP: 127.0.0.1 ID: 6]
[2026-05-10 16:59:02.589] [Handle_PLAYER_LOGIN][Sucess] SERVER[ID: Login Server, UID: xxxx, OID: 6]
[2026-05-10 17:01:04.718] [Handle_REQUEST_INFO_PLAYER][Sucess] SERVER[REQ: xxxx, PLAYER: xxxx, FOR: xxxx]
[2026-05-10 17:01:04.722] [Handle_CONFIRM_SEND_INFO_PLAYER][Sucess] Routing confirmation: SOURCE[Server: xxxx] → DEST[Server: xxxx] PLAYER: xxxx
[2026-05-10 17:01:20.504] [Handle_REQUEST_INFO_PLAYER][Sucess] SERVER[REQ: xxxx, PLAYER: xxxx7, FOR: xxxx]
[2026-05-10 17:01:20.505] [Handle_CONFIRM_SEND_INFO_PLAYER][Sucess] Routing confirmation: SOURCE[Server: xxxx] → DEST[Server: xxxx] PLAYER: xxxxx
[2026-05-10 17:01:21.781] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: xxxx]
[2026-05-10 17:01:21.793] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: xxxx]
[2026-05-10 17:01:21.797] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: xxxx]
[2026-05-10 17:01:23.812] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: xxxx]
[2026-05-10 17:31:42.354] [Handle_REQUEST_INFO_PLAYER][Sucess] SERVER[REQ: xxxx, PLAYER: xxxx, FOR: xxxx]
[2026-05-10 17:31:42.357] [Handle_CONFIRM_SEND_INFO_PLAYER][Sucess] Routing confirmation: SOURCE[Server: xxxx] → DEST[Server: xxxx] PLAYER: xxxx
[2026-05-10 17:31:42.601] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: xxxx]
[2026-05-10 17:31:44.628] [Handle_NEW_ITEM_NOTICE][Sucess] TARGET[UID: xxxx, FROM: xxxx]
[2026-05-11 00:00:00.066] [AuthService::Monitor][Info] Update File Log.
`
1 Like
luismk
May 11, 2026, 11:57am
7
All Messenger servers have the same problem: connection drops.
I solve it simply by rewriting the process and creating a new network system:
[2026-05-09 17:32:47.431] [MessengerService::Start][Sucess] Running[Port: xxxxx, MaxUsers: 2001]
[2026-05-09 17:32:47.514] [MessengerService::System][Debug] Digite ‘help’ para ver os comandos disponíveis.
[2026-05-10 00:00:01.339] [MessengerService::Monitor][Sucesso] Atualizar registro do arquivo.
[2026-05-10 16:27:00.852] [MessengerService::OnClientConnected][Sucesso] PLAYER[IP: xxxxxx, OID: 1
[2026-05-10 16:27:01.051] [Handle_PLAYER_LOGIN] Player[UID=xxxx] logou com sucesso!
[2026-05-10 16:27:01.052] [MessengerServer] Player[UID=xxxxxx] logou com sucesso!
[2026-05-10 16:27:44.381] [Handle_UPDATE_CHANNEL_INFO][Log] Player[xxxxx] → IN: Kuma(2.0), Sala: -1, Nome: Canal (Todos)
[2026-05-10 17:01:20.379] [MessengerService::OnClientConnected][Sucesso] PLAYER[IP: xxxxxxx, OID: 2
[2026-05-10 17:01:20.505] [Handle_PLAYER_LOGIN] Player[UID=xxxxxxx] logou com sucesso!
[2026-05-10 17:01:20.508] [MessengerServer] Player[UID=xxxxx] logou com sucesso!
[2026-05-10 17:01:21.578] [Handle_UPDATE_CHANNEL_INFO][Log] Player[xxxxx] → IN: Kuma(2.0), Room: -1, Name: Channel (All)
[2026-05-10 17:04:40.015] [Handle_PLAYER_STATE][Log] Player[UID=xxxx] UPDATE TO SLEEP/RECONNECT
[2026-05-10 17:05:35.391] [Handle_PLAYER_STATE][Log] Player[UID=xxxx] UPDATE TO ONLINE
[2026-05-10 17:05:42.794] [Handle_PLAYER_LOGOUT] Player[xxxxx] deslogou do Messenger.
[2026-05-10 17:08:37.743] [Handle_PLAYER_STATE][Log] Player[UID=xxxxxx] ATUALIZAR PARA SUSPENDER/RECONECTAR
[2026-05-10 17:31:42.208] [MessengerService::OnClientConnected][Sucesso] PLAYER[IP: xxxxxxx, OID: 3
[2026-05-10 17:31:42.357] [Handle_PLAYER_LOGIN] Player[UID=xxxxx] logou com sucesso!
[2026-05-10 17:31:42.363] [MessengerServer] Player[UID=xxxxx] logou com sucesso!
[2026-05-10 17:31:43.616] [Handle_UPDATE_CHANNEL_INFO][Log] Player[xxxx] → IN: Kuma(2.0), Sala: -1, Nome: Canal (Todos)
[2026-05-10 19:52:11.759] [MessengerService::OnClientConnected][Sucesso] PLAYER[IP: 152.32.183.22, OID: 4
[2026-05-10 19:52:11.787] [MessengerService::OnClientConnected][Sucesso] PLAYER[IP: 152.32.183.22, OID: 5
[2026-05-10 19:52:20.209] [Timeout::Handshake] Monitor kickou 152.32.183.22 (OID6)? sem aperto de mão em 8s.
[2026-05-10 19:52:20.244] [MessengerService::OnClientConnected][Sucesso] JOGADOR[IP: 152.32.183.22, OID: 6
[Segurança] Tamanho do pacote inválido (21577 bytes) com parseKey 7. Desconectando.
[2026-05-10 19:52:20.249] [Segurança] Violação do protocolo de 152.32.183.22. Encerrando.
===========================================================
[BAN PERMANENTE] IP: 152.32.183.22
[MOTIVO] Ataque Detectado (Packet Flood/Invalid): Pacote invalido
[DADOS] 05/10/2026 19:52:20
===========================================================
[2026-05-10 21:46:44.708] [MessengerService::OnClientConnected][Sucesso] JOGADOR[IP: 45.227.254.156, OID: 8
[Segurança] Tamanho do pacote invalido (4 bytes) com parseKey 1. Desconectando.
[2026-05-10 21:46:44.712] [Segurança] Violação do protocolo de 45.227.254.156. Encerrando.
===========================================================
[BAN PERMANENTE] IP: 45.227.254.156
[MOTIVO] Ataque Detectado (Packet Flood/Invalid): Pacote invalido
[DADOS] 05/10/2026 21:46:44
===========================================================
[2026-05-11 00:00:00.348] [MessengerService::Monitor][Sucesso] Atualizar registro do arquivo.
[2026-05-11 04:32:18.258] [MessengerService::OnClientConnected][Sucesso] PLAYER[IP: 87.236.176.201, OID: 9
1 Like