GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ChillerDragon/teeworlds-web-traffic-decoder: Paste your raw teeworlds traffic as hex and get annotations about the package payload.

BranchesTags
Open more actions menu

Latest commit

 

History

68 Commits
68 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
scripts
scripts
 
 
src
src
 
 
static
static
 
 
templates
templates
 
 
tests
tests
 
 
.gignore
.gignore
 
 
.gitignore
.gitignore
 
 
.pytest.ini
.pytest.ini
 
 
README.md
README.md
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 
run.sh
run.sh
 
 

Repository files navigation

teeworlds-web-traffic-decoder

Paste your raw teeworlds traffic as hex and get annotations about the package payload.

Try it out at https://twnet.zillyhuhn.com/

image

setup

python -m pip install -r requirements.txt

run development server

FLASK_ENV=development FLASK_APP=main.py flask run

Then goto http://localhost:5000/ in your browser

api usage

$ curl -s http://127.0.0.1:5000/api/v1/decode/ff -X POST | jq .message -r
[twnet_parser v0.8.0][huffman=rust-libtw2] udp payload: ff
--- 0.7
Traceback (most recent call last):
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/main.py", line 89, in hex_str_to_annotation
    packet = twnet_parser.packet.parse7(data)
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/venv/lib/python3.10/site-packages/twnet_parser/packet.py", line 472, in parse7
    return PacketParser().parse7(data, we_are_a_client)
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/venv/lib/python3.10/site-packages/twnet_parser/packet.py", line 453, in parse7
    ctrl_msg: CtrlMessage = match_control7(data[header_size], data[8:], client)
IndexError: index out of range

--- 0.6
Traceback (most recent call last):
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/main.py", line 96, in hex_str_to_annotation
    packet = twnet_parser.packet.parse6(data)
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/venv/lib/python3.10/site-packages/twnet_parser/packet.py", line 469, in parse6
    return PacketParser().parse6(data, we_are_a_client)
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/venv/lib/python3.10/site-packages/twnet_parser/packet.py", line 428, in parse6
    connless_msg: ConnlessMessage = match_connless6(data[header_size:14], data[14:])
  File "/home/chiller/Desktop/git/teeworlds-web-traffic-decoder/venv/lib/python3.10/site-packages/twnet_parser/msg_matcher/connless6.py", line 58, in match_connless6
    f"Error: unknown conless  message id={msg_id!r} data={data[0]}"
IndexError: index out of range

development

run tests

pytest .

About

Paste your raw teeworlds traffic as hex and get annotations about the package payload.

twnet.zillyhuhn.com/

Topics

ddnetteeworldsteeworlds-protocol

Resources

Readme
Activity

Stars

1 star

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.