Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dasskelett/lmpwiresharkdissector
A WireShark dissector LUA plugin to decode Luna Multiplayer (https://lunamultiplayer.com) packets
https://github.com/dasskelett/lmpwiresharkdissector
kerbal-space-program ksp lmp lua lunamultiplayer wireshark wireshark-dissector
Last synced: about 1 month ago
JSON representation
A WireShark dissector LUA plugin to decode Luna Multiplayer (https://lunamultiplayer.com) packets
- Host: GitHub
- URL: https://github.com/dasskelett/lmpwiresharkdissector
- Owner: DasSkelett
- Created: 2022-04-17T23:44:11.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-17T23:44:21.000Z (almost 3 years ago)
- Last Synced: 2024-11-12T14:50:49.003Z (3 months ago)
- Topics: kerbal-space-program, ksp, lmp, lua, lunamultiplayer, wireshark, wireshark-dissector
- Language: Lua
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LMP Wireshark Dissector
## Usage
```sh
wireshark -X lua_script:LmpWiresharkDissector.lua
```## Manual server list request
```sh
# Sends a server list request, static date
echo -ne "0000009000000001009bee15b40520da0800001c000000" | xxd -ps -r | cat > /dev/udp/116.203.125.175/8700# The following gets the hex representation of the current ticks (=one ten millionth of a second) since 0001-01-01
printf %016x `echo $((($(date --utc +%s) - $(date +%s --utc --date "0001-01-01")) * 10000000))`
# Converts big-endian hex to little-endian hex (https://km.kkrach.de/p_bash_conversion/)
be2le() {
[ -z "$1" -o "$1" = "-h" ] && echo "be2le: Converts zero-padded big-endian hex numbers to little-endian" && return 0
echo "$1" | grep -o .. | tac | echo "$(tr -d '\n')"
}# Combined
echo -ne "000000900000000100$(be2le $(printf %016x $(echo $((($(date --utc +%s) - $(date +%s --utc --date "0001-01-01")) * 10000000)))))00001c000000" | xxd -ps -r | cat> /dev/udp/127.0.0.1/8700
# or 00001d000000 for 0.29.0
```## Manual ping
Type Frag Seq PayLen Payload
........ . ....... ........ ........ ........ ------
Bin 10000001 0 0000000 00000000 00000000 00000000
Hex 8 1 0 0 0 0 0 0 0 0echo -ne "\x81\x00\x00\x00\x00" >/dev/udp/116.203.125.175/8700