aboutsummaryrefslogtreecommitdiff
path: root/src/data/proto-test
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-08-31 22:52:44 +0930
committerDavid Timber <mieabby@gmail.com>2020-08-31 22:52:44 +0930
commit09a0a109caf71578beab6dd0cf2ac38885068a44 (patch)
tree01293306d62587f6ddcb72bb2a5a29407df71678 /src/data/proto-test
parentff4d91db20381471493b4f485fa0f75390138e54 (diff)
Impl: NY_BIN
Diffstat (limited to 'src/data/proto-test')
-rw-r--r--src/data/proto-test/nybin32
-rwxr-xr-xsrc/data/proto-test/print-raw.sh2
2 files changed, 33 insertions, 1 deletions
diff --git a/src/data/proto-test/nybin b/src/data/proto-test/nybin
new file mode 100644
index 0000000..3008d31
--- /dev/null
+++ b/src/data/proto-test/nybin
@@ -0,0 +1,32 @@
+# msg id 8A06, init
+8A06
+# PRNE_HTBT_OP_NY_BIN
+06
+ # bin_len = 121
+ 000079
+ # detach = 0, args_len = 20
+ 0014
+ # "It"
+ 49 74 00
+ # "worked, "
+ 77 6f 72 6b 65 64 2c 20 00
+ # "Marty!!"
+ 4d 61 72 74 79 21 21 00
+ # #!/bin/bash
+ # set -e
+ #
+ # echo "hello world!"
+ #
+ # i=1
+ # while [ $# -gt 0 ]; do
+ # echo "arg $i: $1"
+ # let "i+=1"
+ # shift 1
+ # done
+ #
+ # exit 0
+ 23212f62696e2f626173680a736574202d650a0a6563686f202268656c6c
+ 6f20776f726c6421220a0a693d310a7768696c65205b202423202d677420
+ 30205d3b20646f0a096563686f20226172672024693a202431220a096c65
+ 742022692b3d31220a09736869667420310a646f6e650a0a657869742030
+ 0a
diff --git a/src/data/proto-test/print-raw.sh b/src/data/proto-test/print-raw.sh
index 61b2997..a824fe1 100755
--- a/src/data/proto-test/print-raw.sh
+++ b/src/data/proto-test/print-raw.sh
@@ -1,2 +1,2 @@
#!/bin/bash
-sed -E -e "/^((\\s+)?#.*)?$/D" -e "s/\\s//g" | tr -d "\\n" | xxd -ps -r
+sed -E -e "s/((\\s+)?#.*)?$//" -e "/^(\\s+)?$/D" -e "s/\\s//g" | tr -d "\\n" | xxd -ps -r