bncsdump

command
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

README

GoWarcraft3/bncsdump

Build Status Build status

A tool that decodes and dumps BNCS packets via pcap (on the wire or from a file).

Usage

./bncsdump [options]

Flag Type Description
-f string Filename to read from
-i string Interface to read packets from
-json bool Print machine readable format
-promisc bool Set promiscuous mode (default true)
-p int BNCS port to sniff (default 6112)
-b int Max number of bytes to print per blob (default 128)
-s int Snap length (max number of bytes to read per packet (default 65536)

Example

➜ ./bncsdump
12:00:00 Sniffing enp11s0
12:00:00 Sniffing lo
12:00:00 [TCP]   192.168.0.101:39562->37.244.29.100:6112    AuthInfoReq    {PlatformCode:IX86 GameVersion:{Product:W3XP Version:29} LanguageCode:enUS LocalIP:192.168.0.101 TimeZoneBias:4294967176 MpqLocaleID:1033 UserLanguageID:1033 CountryAbbreviation:USA Country:United States}
12:00:00 [TCP]    37.244.29.100:6112->192.168.0.101:39562   Ping           {Payload:672995397}
12:00:00 [TCP]   192.168.0.101:39562->37.244.29.100:6112    Ping           {Payload:672995397}
12:00:00 [TCP]    37.244.29.100:6112->192.168.0.101:39562   AuthInfoResp   {ServerToken:1693987612 Unknown1:2635 MpqFileTime:131088735080000000 MpqFileName:ver-IX86-4.mpq ValueString:A=156513096 B=2831108732 C=3097134736 4 A=A-S B=B^C C=C^A A=A^B ServerSignature:[...]}

Download

Official binaries for tools are available. Simply download and run.

Note: additional dependencies may be required (see build instructions).

Documentation

Overview

bncsdump is a tool that decodes and dumps bncs packets via pcap (on the wire or from a file).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL