You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update to conform with flake8/PEP8 | abs0lut3pwn4g3#47
* Update README.md
* Create CODE_OF_CONDUCT.md (abs0lut3pwn4g3#51)
* 1. psf/black formatting with travis checks, 2. adjust docs, create CONTRIBUTING.md, 3. helper fns for creating admin pass and secret key by itself on run
create admin pass and secret key by itself on run
* Update README.md
Co-authored-by: Aman-Codes <[email protected]>
Co-authored-by: Ankur Chattopadhyay <[email protected]>
## This project makes use of the following Flask libraries
26
+
27
+
* Flask-blueprints for modularity and clean codebase,
28
+
* Flask-admin for Admin views and easy realtime management,
29
+
* Flask-SQLAlchemy for SQL models,
30
+
* Flask-login for session handling,
31
+
* Flask-wtf for responsive forms,
32
+
* Flask-mail for mail service,
33
+
* Flask-bcrypt for password hashing and security,
34
+
35
+
## Style Guide
36
+
37
+
Keeping to a consistent code style throughout the project makes it easier to contribute and collaborate. Please stick to the guidelines in PEP8, [](https://github.com/psf/black) and the Google Style Guide unless there’s a very good reason not to.
See: [Issues](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/issues) and the following To-do list. Or just ping one of the mentors with new ideas.
58
+
59
+
> Note: All PRs within the GSSoC'20 period will be merged in the `gssoc20-dev` branch.
60
+
61
+
## To-do
62
+
63
+
-[ ] Ideas for additional logging techniques to prevent flag sharing, cheating and such. (Issue: [#7](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/issues/7))
64
+
-[ ] Support for *n* number of boxes (accordions? seperate route?). (Issue: [#17](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/issues/17))
1. Create your heroku app using `heroku` cli tool.
88
-
89
-
Follow the official guide by Heroku: https://devcenter.heroku.com/articles/getting-started-with-python#prepare-the-app
90
-
91
-
2. Provision Database add-on.
92
-
93
-
Add the following add on to your new app: https://elements.heroku.com/addons/heroku-postgresql
94
-
95
-
3. Creating database instance. In your heroku app directory,
96
-
97
-
```bash
98
-
$ heroku run bash
99
-
[heroku]$ python create_db.py
100
-
```
101
-
4. Your app should be live now. You can run `heroku open` to open it in browser.
102
-
103
-
104
-
## For Your CTF
105
-
106
-
Using this as simple as anything.
113
+
Using this as simple as anything.
107
114
108
115
1. Just configure your CTF settings in [`config.py`](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/blob/master/src/FlaskRTBCTF/config.py).
109
116
110
-
2.DO NOT FORGET to change admin credentials from [`create_db.py`](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/blob/master/src/create_db.py)
117
+
2.When you run [`create_db.py`](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/blob/master/src/create_db.py), a strong and random 16 char password for the **admin** user is created and set in the environment variable `ADMIN_PASS`. On Heroku, you can reveal this password from your application's dashboard settings.
111
118
112
119
3. See database instance creation steps under How To Use.
113
120
@@ -117,7 +124,7 @@ Bonus: You can manage the database CRUD operations from admin views GUI as well
Keeping to a consistent code style throughout the project makes it easier to contribute and collaborate. Please stick to the guidelines in PEP8 and the Google Style Guide unless there’s a very good reason not to.
142
-
Please see: [Issues](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/issues) and the following To-do list.
143
-
144
-
> Note: All PRs within the GSSoC'20 period will be merged in the `gssoc20-dev` branch.
-[ ] Ideas for additional logging techniques to prevent flag sharing, cheating and such. (Issue: [#7](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/issues/7))
163
-
-[ ] Support for *n* number of boxes (accordions? seperate route?). (Issue: [#17](https://github.com/abs0lut3pwn4g3/RTB-CTF-Framework/issues/17))
0 commit comments