Giter Club home page Giter Club logo

pubg-lobby-proxy's Introduction

PUBG lobby proxy

English

Eazy way to view and modify PLAYERUNKNOWN'S BATTLEGROUNDS lobby traffic

Install

  1. Clone or download this repository
  2. Execute npm install
  3. Append to file C:\Windows\System32\drivers\etc\hosts new lines
127.0.0.1 prod-live-front.playbattlegrounds.com
127.0.0.1 pctest-live-front.playbattlegrounds.com
  1. Execute npm start for production server or npm run start:test for test server

If you already have some webserver on port 443, make redirect from prod-live-front.playbattlegrounds.com to 127.0.0.1:{someport} and set this port inside index.js

PUBG Lobby browser debug mode

  1. Start PUBG lobby proxy
  2. Login to game
  3. Go to http://127.0.0.1/debug.html

Use Google Chrome for better experience

Access to API via HTTP

  1. Start PUBG lobby proxy
  2. Login to game
  3. Send requests to http://127.0.0.1/api/:interface/:method/ (For example: http://127.0.0.1/api/UserProxyApi/GetOpenGameInfo/)(Use POST with json body for requests with arguments, flags, etc)

Русский

Простой способ просмотра и редактирования трафика лобби игры PLAYERUNKNOWN'S BATTLEGROUNDS

Установка

  1. Склонируй или скачай код из этого репозитория
  2. Выполни npm install
  3. Добавь в файл C:\Windows\System32\drivers\etc\hosts новые строки
127.0.0.1 prod-live-front.playbattlegrounds.com
127.0.0.1 pctest-live-front.playbattlegrounds.com
  1. Выполни npm start для публичного сервера или npm run start:test для тестового сервера

Если у тебя уже висит вебсервер на порту 443, сделай в нем редирект с prod-live-front.playbattlegrounds.com на 127.0.0.1:{порт} и измени порт в файле index.js

Отладка лобби PUBG в браузере

  1. Запусти прокси
  2. Авторизируйся в игре
  3. Перейди в браузере http://127.0.0.1/debug.html

Лучше всего работает в Google Chrome

Доступ к API через HTTP

  1. Запусти прокси
  2. Авторизируйся в игре
  3. Отправляй запросы на url вида http://127.0.0.1/api/:interface/:method/ (Например, http://127.0.0.1/api/UserProxyApi/GetOpenGameInfo/)(Используй POST с json телом для запросов с аргументами, флагами и т.д.)

pubg-lobby-proxy's People

Contributors

aaa4xu avatar zyi1992 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pubg-lobby-proxy's Issues

PUBG Update now. Unexpected server response: 403

PUBG Client error: Error: Unexpected server response: 403
at ClientRequest.req.on (C:\Users\test\Desktop\test\pubg-lobby-proxy-master\node_modules\ws\lib\websocket.js:535:5)
at ClientRequest.emit (events.js:197:13)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:562:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:113:17)
at TLSSocket.socketOnData (_http_client.js:449:20)
at TLSSocket.emit (events.js:197:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at TLSSocket.Readable.push (_stream_readable.js:224:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:145:17)

in game sniffing

i have access to create a custom server and when i start the game i get a custom game id and a server IP
is there anyway to get match result? winers?

PUBG does not connect

Hey, when adding

127.0.0.1 prod-live-front.playbattlegrounds.com
127.0.0.1 pctest-live-front.playbattlegrounds.com

to the windows hosts file. PUBG no longer manages to connect to the lobby and all that I see in npm running through cmd, is a single asset request calling "favicon" while your code says "Connection to game server dont exists"

How do I fix this?

How Post params work?

Packet sent by game :

image

Packet sent manually on Postman

image

getting :
{ "success": false, "error": "Timeout" }

How to send that packet:?

What is this error?

ubg-lobby-proxy-master\src\AssetsServer.js:47
{type: PubgRequest.TYPES.NORMAL, flags: null, arguments: []},
^
SyntaxError: Unexpected token {
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)

Game server closed connection

I am getting this while trying to use the proxy

Game server closed connection
Game client closed connection

wss://prod-live-entry.playbattlegrounds.com/userproxy?provider=steam&ticket=&playerNetId=7656119809046
3543&cc=BR&timezoneOffset=-3&clientGameVersion=3.7.33&fullClientGameVersion=3.7.33.33

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.