Skip to content

Commit

Permalink
Add bugreport-dump, keyfile-dump
Browse files Browse the repository at this point in the history
  • Loading branch information
ithinkihaveacat committed Jun 16, 2020
1 parent 2d9a88f commit 29bd1ef
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/bugreport-dump
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

if [ $# == 0 ]; then
echo "usage: $(basename "$0") bugreport.zip"
exit 1
fi

unzip -p "$1" 'bugreport*.txt' | perl -ne 'print if /^------ SYSTEM LOG/ .. /^------ EVENT LOG/'
12 changes: 12 additions & 0 deletions bin/keyfile-dump
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

if [ $# == 0 ]; then
echo "usage: $(basename "$0") keyfile.zip"
exit 1
fi

require() { hash "$@" || exit 127; }

require protoc

unzip -p "$1" export.bin | tail +17c | protoc --decode TemporaryExposureKeyExport -I $HOME/workspace/exposure-notifications-server/internal/pb/export export.proto

0 comments on commit 29bd1ef

Please sign in to comment.