Skip to content

Commit 5b5ee96

Browse files
committed
Generate teams
Added team/password generator, and populated schema
1 parent 535e236 commit 5b5ee96

File tree

3 files changed

+71
-3
lines changed

3 files changed

+71
-3
lines changed

genteams.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import bcrypt
2+
import io
3+
import random as rnd
4+
5+
words = []
6+
with file('/usr/share/dict/words', 'r') as f:
7+
for word in f.readlines():
8+
if len(word) == 6:
9+
words.append(word.strip())
10+
11+
pws = file('passwords.txt', 'w')
12+
13+
num_words = len(words)
14+
15+
def get_word():
16+
return words[rnd.randint(0, num_words - 1)]
17+
18+
for i in range(20):
19+
team = get_word()
20+
password = get_word() + str(rnd.randint(10,99)) + get_word()
21+
hash = bcrypt.hashpw(password, bcrypt.gensalt())
22+
23+
pws.write(team + "\t -- " + password + '\n')
24+
print "INSERT into teams (name, score, hash, last_click, spamming) VALUES ('%s', 0, '%s', 10000, 0); -- %s " % (team, hash, password)
25+
26+
pws.close()

passwords.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
W1n5t0n -- Hehre44Tzong
2+
Greenhorn -- Leeth62fugal
3+
Garcia -- burma51biter
4+
Grishenko -- rheen54flrie
5+
Toby -- varus28Alcae
6+
Murphy -- nanny87CCAFS
7+
Libby -- milha75swelt
8+
Nikon -- Katie36darcy
9+
Levinson -- kerat14Grail
10+
Anderson -- stroy16dirgy
11+
Stickell -- Windy87nabis
12+
Bennett -- birls23Reddy
13+
Flynn -- cheng21Taima
14+
Lightman -- reich71glary
15+
Alderson -- maths22carol
16+
Otacon -- Lotta38Merow
17+
Bartowsky -- bliss63tuber
18+
Brink -- grump77stola
19+
Kusanagi -- Addia80pigmy
20+
Stibbons -- Depue99Kerby

schema.sql

+25-3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@ INSERT into flags (value) VALUES ('congrats flag3');
2424
INSERT into flags (value) VALUES ('congrats flag4');
2525
INSERT into flags (value) VALUES ('congrats flag5');
2626

27-
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('aaa', 0, '$2a$04$v6PKN3tpOyaiKV/3VZOjh.RRoDUDvITVLZuSwhzyRVbK82ANFMQOi', 10000, 0);
28-
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('bbb', 0, '$2a$12$ydNsdi763MvDytMGdiBNE.rqWeoJxx9pRYHKyIRZ3l/E.x6pLOLmi', 10000, 0);
29-
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('ccc', 0, '$2a$12$uW7DWD3n497ZlVA1gJiuhOftfIudF/nINoiQKwm2/3rnvjuCg6Ldy', 10000, 0);
27+
--INSERT into teams (name, score, hash, last_click, spamming) VALUES ('aaa', 0, '$2a$04$v6PKN3tpOyaiKV/3VZOjh.RRoDUDvITVLZuSwhzyRVbK82ANFMQOi', 10000, 0); -- aaa
28+
--INSERT into teams (name, score, hash, last_click, spamming) VALUES ('bbb', 0, '$2a$12$ydNsdi763MvDytMGdiBNE.rqWeoJxx9pRYHKyIRZ3l/E.x6pLOLmi', 10000, 0); -- bbb
29+
--INSERT into teams (name, score, hash, last_click, spamming) VALUES ('ccc', 0, '$2a$12$uW7DWD3n497ZlVA1gJiuhOftfIudF/nINoiQKwm2/3rnvjuCg6Ldy', 10000, 0); -- ccc
30+
31+
-- Paste output of genteams.py here. Change team names (here and in passwords.txt) as desired.
32+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('W1n5t0n', 0, '$2b$12$HiTPueSksmEhrTmSDrbVqut2FvGTeUkiHwaKZhnq1yvTLpUb9/wve', 10000, 0); -- Hehre44Tzong
33+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Greenhorn', 0, '$2b$12$ZKpBpTFSFxfl9I2GhkJ.NezxN3dXdX9364d1bC8UOQeP2ah.e9HkS', 10000, 0); -- Leeth62fugal
34+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Garcia', 0, '$2b$12$alp0Yi.tFFEoAh817PSAKehkz/3mcI.Y4M5UsxKiVXpVdcNGKC7pi', 10000, 0); -- burma51biter
35+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Grishenko', 0, '$2b$12$pytsxtkBvDdjgKByLkcUTeX35UVIv27iBu7qpSEr7fb3n2kt7ESGm', 10000, 0); -- rheen54flrie
36+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Toby', 0, '$2b$12$4xai2uQFUdsZ5oNvQD90g.d8GyMjvfU/lkmyiYINNzKc6Wths69/m', 10000, 0); -- varus28Alcae
37+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Murphy', 0, '$2b$12$YIbQk2nADUWfdmRIq5xkRuucDqbG6WzktP4fTVjJYiU5ZrZ35XkPS', 10000, 0); -- nanny87CCAFS
38+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Libby', 0, '$2b$12$h5vjP9JqriIkJy4ioVBN8eXuB0A2FTi7FgG.BBNOUdXIkhApXCrmu', 10000, 0); -- milha75swelt
39+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Nikon', 0, '$2b$12$g27udprRdyLkwt2aYSTSDu9ONcquAmNlqB/Y/rM4vqybDdxsW479K', 10000, 0); -- Katie36darcy
40+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Levinson', 0, '$2b$12$SVRuWLc/h.QiisIVOn6ec.XK4zTWFU.E66d7fAH6ZsjOTxw6WIdsO', 10000, 0); -- kerat14Grail
41+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Anderson', 0, '$2b$12$nogkaJq5hubxOoHTpD76DOY.MWpkHzFLb1uIjxzsYxxn3Q9nJ1jQq', 10000, 0); -- stroy16dirgy
42+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Stickell', 0, '$2b$12$G7dKUDeZJaNKWCLyW8ELuOjp44XvJ3.buVRkRdJ61PR83l552bE8a', 10000, 0); -- Windy87nabis
43+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Bennett', 0, '$2b$12$/IwjNeHZImYAmrycxK5RRu.jd5fJdOr1sqIojDxzuVUeHW/4zRyHe', 10000, 0); -- birls23Reddy
44+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Flynn', 0, '$2b$12$osq0NGAoR4KZ6D3TKxTEm.ma7Aj1TcX5HLar0PH5SXKbn9rfGdQLe', 10000, 0); -- cheng21Taima
45+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Lightman', 0, '$2b$12$MLRQIheU9.rU1piyHiMo2.O7jAcS7qG1BOoWu0bzC7yBV7OXs9wVC', 10000, 0); -- reich71glary
46+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Alderson', 0, '$2b$12$0rT9TgwRLxd4D0nkIZRg5Oa7ZNWmZwVnPvQ.pw0ka5WJsx0RLXE3a', 10000, 0); -- maths22carol
47+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Otacon', 0, '$2b$12$fl5GhfQXXMvAixfWu.sbI.CgRRKZXv/pA/NonI/1K.bQKXH4.JIPO', 10000, 0); -- Lotta38Merow
48+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Bartowski', 0, '$2b$12$/GLKIyk7tSldoyQSNSpoaeV3Kc2yVR5Po.xsDdpzKrDeq2.Ou0zFC', 10000, 0); -- bliss63tuber
49+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Brink', 0, '$2b$12$TXufuNFDkfMxbjx41VX7kucLaZgSYtFvgcT4LIiG.8GBo9NsGQ4AK', 10000, 0); -- grump77stola
50+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Kusanagi', 0, '$2b$12$CcOT9CksuhARrvOnpSlyMusedqto09l51M8BaI53v.HYeKADRGSCC', 10000, 0); -- Addia80pigmy
51+
INSERT into teams (name, score, hash, last_click, spamming) VALUES ('Stibbons', 0, '$2b$12$b1nZyLqemxxsivpvRN23KeNBl1QwV/qEWIktfctTdd/cquvzA3Rca', 10000, 0); -- Depue99Kerby

0 commit comments

Comments
 (0)