No commit activity in last 3 years
No release in over 3 years
Themis::Finals::Attack::Result constants
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

themis-finals-attack-result

Latest Version License Dependencies status Code Climate
A Ruby gem that specifies attack result constants for Themis Finals, CTF contest checking system.

Installation

gem install themis-finals-attack-result

or just add gem 'themis-finals-attack-result' to your Gemfile and run bundle.

Attack results

Status Code Description
Themis::Finals::Attack::Result::SUCCESS_FLAG_ACCEPTED 0 Flag has been accepted
Themis::Finals::Attack::Result::ERR_GENERIC 1 Generic error
Themis::Finals::Attack::Result::ERR_INVALID_IDENTITY 2 The attacker doesn't appear to be a team
Themis::Finals::Attack::Result::ERR_CONTEST_NOT_STARTED 3 Contest hasn't been started yet
Themis::Finals::Attack::Result::ERR_CONTEST_PAUSED 4 Contest has been paused
Themis::Finals::Attack::Result::ERR_CONTEST_COMPLETED 5 Contest has been completed
Themis::Finals::Attack::Result::ERR_INVALID_FORMAT 6 Submitted data has invalid format
Themis::Finals::Attack::Result::ERR_ATTEMPTS_LIMIT 7 Attack attempt limit exceeded
Themis::Finals::Attack::Result::ERR_FLAG_EXPIRED 8 Flag has expired
Themis::Finals::Attack::Result::ERR_FLAG_YOURS 9 Flag belongs to the attacking team and therefore won't be accepted
Themis::Finals::Attack::Result::ERR_FLAG_SUBMITTED 10 Flag has been already accepted before
Themis::Finals::Attack::Result::ERR_FLAG_NOT_FOUND 11 Flag hasn't been found
Themis::Finals::Attack::Result::ERR_SERVICE_NOT_UP 12 The attacking team service isn't up and therefore flag from the same service of other teams won't be accepted

Note

Themis::Finals::Attack::Result is a simple ruby-enum class.

License

MIT @ Alexander Pyatkin