Skip to content

Commit 2e420cb

Browse files
author
Aaditya Purani
committed
add teamcode
1 parent d148fb9 commit 2e420cb

File tree

7 files changed

+28
-29
lines changed

7 files changed

+28
-29
lines changed

layouts/default.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<p class="dfsec-line">
112112
Premier Sponsored by
113113
<a href="https://dfsec.it/" target="_blank" rel="noopener">
114-
<img class="dfsec" src="../static/dataflow.svg" alt="dfsec" width=400 height=200>
114+
<img class="dfsec" src="../static/dataflow1.svg" alt="dfsec" width=400 height=200>
115115
</a>
116116
</p>
117117
<p>Organized by <a href="https://perfect.blue/" target="_blank" rel="noopener">perfect blue</a></p>

pages/about.vue

+4-27
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
</p>
1010

1111
<h3>Prizes</h3>
12-
<p> We have a total prize pool of 7,000 USD! 🏆 </p><br>
12+
<p> We have a total prize pool of 7,500 USD! 🏆 </p><br>
1313
<ul>
1414
<li><b>1st place</b> - 3,000 USD (2,000 USD cash + 500 USD x 2 Amazon vouchers), 5 Binary Ninja Personal License</li><br>
1515
<li><b>2nd place</b> - 2,000 USD (1,500 USD cash + 500 USD Amazon voucher), 3 Binary Ninja Personal License</li><br>
1616
<li><b>3rd place</b> - 1,000 USD (500 USD cash + 500 USD Amazon voucher), 1 Binary Ninja Personal License</li><br>
17-
<li><b>Writeups </b> - 1,000 USD (10 selected writeups x 100 USD cash for each)</li><br>
18-
<li><b>BN Cloud Writeup </b> - 1 Binary Ninja personal license to best writeup showing Binary Ninja Cloud usage</li><br>
17+
<li><b>Writeups </b> - 1,400 USD (9 selected writeups x 100 USD cash for each, 1 selected writeup x 500 USD Amazon voucher)</li><br>
18+
<li><b>BN Cloud Writeup </b> - 1 Binary Ninja personal license to best writeup showing Binary Ninja Cloud usage, 100 USD</li><br>
1919
</ul>
2020

2121
<h3>Social</h3>
@@ -42,30 +42,7 @@
4242
</timeline>
4343
</li>
4444
</ul>
45-
<!--
46-
<h3>Prizes</h3>
47-
<p> We have a total prize pool of 7,000 USD! 🏆 </p><br>
48-
<ul>
49-
<li><b>1st place</b> - 3,000 USD (2,000 USD cash + 500 USD x 2 Amazon vouchers), 5 Binary Ninja Personal License</li><br>
50-
<li><b>2nd place</b> - 2,000 USD (1,500 USD cash + 500 USD Amazon voucher), 3 Binary Ninja Personal License</li><br>
51-
<li><b>3rd place</b> - 1,000 USD (500 USD cash + 500 USD Amazon voucher), 1 Binary Ninja Personal License</li><br>
52-
<li><b>Writeups </b> - 1,000 USD (10 selected writeups x 100 USD cash for each)</li><br>
53-
<li><b>BN Cloud Writeup </b> - 1 Binary Ninja personal license to best writeup showing Binary Ninja Cloud usage</li><br>
54-
</ul>
55-
56-
<h3>Sponsors</h3>
5745

58-
<p style="display: block; margin: 0 auto; text-align: center;">
59-
<a href="https://vector35.com" target="_blank" rel="noopener">
60-
<img src="../static/v35.png" class="sponsor">
61-
</a>
62-
<a href="https://vector35.com" target="_blank" rel="noopener">
63-
<img src="../static/binja.png" class="sponsor">
64-
</a>
65-
</p>
66-
<p>Vector 35 makes <a href="https://binary.ninja">Binary Ninja</a>.</p>
67-
<p>If you're interested in building reverse engineering tools, <a href="https://vector35.com/hiring.html">contact us</a>.
68-
-->
6946
<h3>Staff</h3>
7047
<a href="https://perfect.blue" target="_blank" rel="noopener">
7148
<img class=logo src="https://blog.perfect.blue/img/logo.png">
@@ -89,7 +66,7 @@
8966
<li><a href="" target="_blank" rel="noopener">@IKEA</a></li>
9067
<li><a href="https://twitter.com/j0nathanj" target="_blank" rel="noopener">@j0nathanj</a></li>
9168
<li><a href="https://twitter.com/Unblvr1" target="_blank" rel="noopener">@Unblvr1</a></li>
92-
<li><a href="https://twitter.com/Corb3nik" target="_blank" rel="noopener">@Corb3nik</a></li>
69+
<li><a href="https://twitter.com/elafargue" target="_blank" rel="noopener">@elafargue</a></li>
9370
<li><a href="https://twitter.com/_neptunia_" target="_blank" rel="noopener">@_neptunia_</a></li>
9471
</ul>
9572
</section>

pages/settings.vue

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<template>
22
<section class="Settings">
33
<h2 class="title"><span>Settings</span></h2>
4+
<h4 class="subtitle"><span>Team Code</span></h4>
5+
<h3>📌 Use your team code for requesting per-team instance challenges, keep it safe and private!</h3><br>
6+
<h4>
7+
<div
8+
class="teamcode"
9+
v-html="$md.render(teamCode)"
10+
/>
11+
</h4>
12+
<br>
413
<div class="subtitle">
514
User settings
615
</div>
@@ -276,7 +285,7 @@ export default {
276285
};
277286
},
278287
computed: {
279-
...mapState(['isLoggedIn', 'isInTeam', 'csrfToken', 'user', 'team', 'countries']),
288+
...mapState(['isLoggedIn', 'isInTeam', 'csrfToken', 'user', 'team', 'countries', 'teamCode']),
280289
},
281290
watch: {
282291
user(newValue) {
@@ -288,6 +297,7 @@ export default {
288297
},
289298
async asyncData(context) {
290299
await context.store.dispatch('updateCsrfToken', context);
300+
await context.store.dispatch('updateTeamCode', context);
291301
},
292302
mounted() {
293303
if (!this.isLoggedIn) {

static/dataflow1.svg

+1
Loading

static/dataflow2.svg

+1
Loading

static/tnc.pdf

517 Bytes
Binary file not shown.

store/index.js

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const state = () => ({
1313
team: {},
1414
rules: '',
1515
sponsors:'',
16+
teamCode:'',
1617
countries: [
1718
['AF', 'Afghanistan'],
1819
['AX', 'Åland Islands'],
@@ -312,6 +313,9 @@ export const mutations = {
312313
setTeam(s, payload) {
313314
s.team = {...s.team, ...payload};
314315
},
316+
setTeamCode(s, payload){
317+
s.teamCode = payload;
318+
}
315319
};
316320

317321
export const actions = {
@@ -378,6 +382,12 @@ export const actions = {
378382
commit('setSponsors', data.data.content);
379383
}
380384
},
385+
async updateTeamCode({commit}, {$axios}){
386+
const {data, headers} = await $axios.get('/api/v1/teams/me/team_code');
387+
if (headers['content-type'] === 'application/json') {
388+
commit('setTeamCode', data.data.team_code);
389+
}
390+
},
381391
async updateCsrfToken({commit, state: s}, {$axios}) {
382392
if (s.isStatic) {
383393
return;

0 commit comments

Comments
 (0)