From 38f362252588cdc0c7ea1a2da0e58344a67173be Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Tue, 7 Mar 2017 16:04:58 -0600 Subject: [PATCH] Update --- count.py | 5 ++++- decode-me/problem.yml | 2 +- listen-closely/problem.yml | 2 +- luckyguess/problem.yml | 2 +- phunkypython1/problem.yml | 4 ++-- phunkypython2/problem.yml | 4 ++-- qrt/problem.yml | 4 ++-- wayward-space-junk/solution.txt | 4 ++++ 8 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 wayward-space-junk/solution.txt diff --git a/count.py b/count.py index bf76c05..a149b8f 100644 --- a/count.py +++ b/count.py @@ -24,10 +24,13 @@ problems.sort(key=lambda p: p.get("value"), reverse=True) print "Grand Total: %d" % len(problems) print "Category Breakdown:" +maxtitle = max(map(lambda p: len(p.get("title")), problems)) + 3 +maxauthor = max(map(lambda p: len(p.get("author")), problems)) + 3 + c = Counter(map(lambda p: p.get("category", ""), problems)) categories = sorted(c.items(), key=lambda c: c[1], reverse=True) for category, count in categories: print " %s: %s" % (category, count) for problem in problems: if problem.get("category") != category: continue - print " %s [%s]" % (problem.get("title"), problem.get("value")) + print " %s %s %sp" % (problem.get("title") + " " * (maxtitle - len(problem.get("title"))), problem.get("author") + " " * (maxauthor - len(problem.get("author"))), problem.get("value")) diff --git a/decode-me/problem.yml b/decode-me/problem.yml index d1ac42b..58059a7 100644 --- a/decode-me/problem.yml +++ b/decode-me/problem.yml @@ -1,7 +1,7 @@ title: Decode Me author: dududum561 hint: Simple decoding :) -category: Forensics +category: Cryptography autogen: false programming: false value: 100 diff --git a/listen-closely/problem.yml b/listen-closely/problem.yml index d25404f..cd18e72 100644 --- a/listen-closely/problem.yml +++ b/listen-closely/problem.yml @@ -1,7 +1,7 @@ author: GenericNickname title: Listen Closely hint: 1, 16, 8000 -category: Crytpography +category: Cryptography autogen: false programming: false value: 50 diff --git a/luckyguess/problem.yml b/luckyguess/problem.yml index 741186c..682babe 100644 --- a/luckyguess/problem.yml +++ b/luckyguess/problem.yml @@ -1,6 +1,6 @@ author: blockingthesky title: Lucky Guess -category: Reversing +category: Reverse Engineering autogen: false programming: false value: 200 diff --git a/phunkypython1/problem.yml b/phunkypython1/problem.yml index 449ec04..2f3722b 100644 --- a/phunkypython1/problem.yml +++ b/phunkypython1/problem.yml @@ -1,6 +1,6 @@ author: blockingthesky title: Phunky Python I -category: Reversing +category: Reverse Engineering autogen: true programming: false -value: 30 \ No newline at end of file +value: 30 diff --git a/phunkypython2/problem.yml b/phunkypython2/problem.yml index 1095691..7e88f3b 100644 --- a/phunkypython2/problem.yml +++ b/phunkypython2/problem.yml @@ -1,6 +1,6 @@ author: blockingthesky title: Phunky Python II -category: Reversing +category: Reverse Engineering autogen: true programming: false -value: 115 \ No newline at end of file +value: 115 diff --git a/qrt/problem.yml b/qrt/problem.yml index 35df231..1851c8f 100644 --- a/qrt/problem.yml +++ b/qrt/problem.yml @@ -1,5 +1,5 @@ title: Hex QR -category: Programming +category: Reverse Engineering value: 200 author: mzhang -autogen: true \ No newline at end of file +autogen: true diff --git a/wayward-space-junk/solution.txt b/wayward-space-junk/solution.txt new file mode 100644 index 0000000..bee1d74 --- /dev/null +++ b/wayward-space-junk/solution.txt @@ -0,0 +1,4 @@ +In reality, the space junk will be following a very predictable orbit, around +a polar function, which means that it will eventually be repeating as well. +The trick is to just shoot a bunch of test ones and see how far off you miss. +The pilot key simply identifies the team so they can enter the correct flag.