An api named Crypto Versus, a multiplayer versus hacking simulator. Project still in the making!

Overview

Crypto Versus

A Multiplayer Versus Hacking Simulation

Inspired by the Steam game Bitburner


Table of content

How to use?

This projetc is hosted on Heroku.

Main branch domain: https://cry-vs.herokuapp.com/
Dev branch domain: https://beta-cry-vs.herokuapp.com/

WARNING: there may be security issues in the dev branch. continue at your own disposal


Possible outputs (any endpoint)

Failed parsing (400)

This response is the result of a request that cannot be parsed into json
To prevent this response from happening, across all languages, it is recommended to send String formatted json

Body
Json parsing failed.

Not found (404)

This response is the result of a request made on an unfinished or invalid endpoint

Body
This route is not available / not found.

Unexpected method (405)

This response is the result of a request made using a method invalid with the current endpoint

Body
path '/[Path]' should always be requested with method '[Method]'.

[Path] is the requested endpoint
[Method] is the request method used


Internal error (500)

This response is the result of an internal server error
This is always a bug and if encountered, tell us!

Body
Internal server error

Routes

List of all routes and usage guides. this goes for a while so bear with us. * deep breath *

/index

Method

Any

Input

Any

Outputs

Success (200)

This response is the result of making a request on the main route

Body
There's nothing here!

Routes

/signup

Method

'POST'

Input

{"username":[Username],"password":[Password]}

[Username] and [Password] are expected to be string values
Legal characters that can be used for thoses parameters are:

ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.+<>(){}[]|:;~/\'"

(Case insensitive)

Outputs

Success (200)

This response is the result of a successful account creation

Body
[Token]

[Token] is a connection token used to authenticate yourself when making requests to other endpoints
A connection token created by this path lasts 20 minutes before expiring


Missing data (400)

This response is the result of a missing parameter in the input json

Body
Username is required.

or

Password is required.

Illegal character (400)

This response is the result of an illegal character detected in either the username or password

Body
Username contains the following illegal character: "[Char]"

or

Password contains the following illegal character: "[Char]"

[Char] is the character that posed a problem


Invalid length (400)

This response is the result of a username or password with an length over 30 or under 1

Body
Username and password must have a length of 1 to 30 characters.

Invalid data (417)

This response is the result of a username or password which type is not "String"

Body
Unexpected type for username.
Expected String.

or

Unexpected type for password.
Expected String.

Already existant (403)

This response is the result of a request done on an already registered account username

Body
[Username] already exists.

[Username] is the requested account username

/login

Method

'POST'

Input

{"username":[Username],"password":[Password]}

[Username] and [Password] are expected to be string values
Legal characters that can be used for thoses parameters are:

ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.+<>(){}[]|:;~/\'"

(Case insensitive)

Outputs

Success (200)

This response is the result of a successful connection

Body
[Token]

[Token] is a connection token used to authenticate yourself when making other requests
A connection token created by this path lasts 10 minutes before expiring


Missing data (400)

This response is the result of a missing parameter in the input json

Body
Missing login info

Invalid data (417)

This response is the result of a username or password which type is not "String"

Body
Unexpected type for username.
Expected String.

or

Unexpected type for password.
Expected String.

Illegal character (400)

This response is the result of an illegal character detected in either the username or password

Body
Username contains the following illegal character: "[Char]"

or

Password contains the following illegal character: "[Char]"

[Char] is the character that posed a problem


Not found (401)

This response is the result of a request done on an unexistant account

Body
[Username] doesn't exists.

[Username] is the requested account username


Invalid password (403)

This response is the result of a request done on an account with a password that doesn't match the account password

Body
Invalid password.

Key disabled (403)

This response is the result of an api key used in a request on an account that does not have api key enabled

Body
[Username] does not have key enabled.

[Username] is the requested account username

/edit-account

Method

'POST'

Input

{"token":[Token]}

[Token] is expected to be a string value
Any valid connection token can be used

Optionnal additional info

{"username":[Username],"password":[Password]}

[Username] and [Password] are expected to be string values
Legal characters that can be used for thoses parameters are:

ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890-_.+<>(){}[]|:;~/\'"

(Capitals do not matter)

Outputs

Success (200)

This response is the result of a successful request

Body
Account updated!

Missing token (400)

This response is the result of a missing token parameter in the input json

Body
Token is required.

Invalid token (403)

This response is the result of requesting to the endpoint with an invalid/expired token

Body
Token is invalid.

Illegal character (400)

This response is the result of an illegal character detected in either the username or password

Body
Username contains the following illegal character: "[Char]"

or

Password contains the following illegal character: "[Char]"

[Char] is the character that posed a problem

/delete-account

Method

'POST'

Input

{"token":[Token]}

[Token] is expected to be a string value
Any valid connection token can be used

Outputs

Success (200)

This response is the result of a successful account deletion

Body
[Username] deleted successfully!

[Username] is the token's corresponding account username


Missing token (400)

This response is the result of a missing token parameter in the input json

Body
Token is required.

Invalid token (403)

This response is the result of requesting to the endpoint with an invalid/expired token

Body
Token is invalid.

Database error

This response is the result of a valid request that somehow created a database error
This should never happen, if it does, tell us

/refresh-token

Method

'POST'

Input

{"token":[Token]}

[Token] is expected to be a string value
Any valid connection token can be used

Outputs

Success (200)

This response is the result of a successful token refresh

Reminder that this endpoint does not* increase the lifetime of the current token
It generates a new one and invalidates the first

Body
[Token]

[Token] is a connection token used to authenticate yourself when making other requests
A connection token created by this path lasts 5 minutes before expiring


Missing token (400)

This response is the result of a missing token parameter in the input json

Body
Token is required.

Invalid token (403)

This response is the result of requesting to the endpoint with an invalid/expired token

Body
Token is invalid.

/key

Method

'POST'

Input

{"token":[Token]}

[Token] is expected to be a string value
Any valid connection token can be used

Outputs

Success (200)

This response is the result of a successful request

Body
[Key]

[Key] is the newly generated api key for the requested account


Missing token (400)

This response is the result of a missing token parameter in the input json

Body
Token is required.

Invalid token (403)

This response is the result of requesting to the endpoint with an invalid/expired token

Body
Token is invalid.

Key disabled (403)

This response is the result of an api key used in a request on an account that does not have api key enabled

Body
[Username] does not have key enabled.

[Username] is the requested account username

/dostuff

Method

'POST'

Input

{"token":[Token]}

[Token] is expected to be a string value
Any valid connection token can be used

Outputs

Success (200)

This response is the result of a successful request
This endpoint is temporary and was made solely for testing purposes

Body
Successfully did stuff as [Username]

[Username] is the requested account's username


Missing token (400)

This response is the result of a missing token parameter in the input json

Body
Token is required.

Invalid token (403)

This response is the result of requesting to the endpoint with an invalid/expired token

Body
Token is invalid.

Community

Found an issue? got any questions? you can contact these contributors

Here is the Code of Conduct for this community!

You might also like...

Vision is a complete project manager where you can colaborate with your team. Everything is still in development phase.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Jun 4, 2022

This blog is still under development! I present a project scope for science articles, it can now be used in production! But there are some details that need to be put up front.

Science-Blog πŸ›‘ Attention! This blog is still under development! I present a project scope for science articles, it can now be used in production! But

Sep 19, 2022

API, web and mobile application for finding a partner to play online multiplayer games.

API, web and mobile application for finding a partner to play online multiplayer games.

Duo Finder Duo Finder is a simple mobile and web application for gamers looking for partners to play a game with. It's basics was developed during the

Sep 20, 2022

Blobernize your pictures with this all-new tool! Still under development, but it works for now.

Blobernize your pictures with this all-new tool! Still under development, but it works for now.

Still under development, but in a usable state image-blobernizer A very simple image-blobernizer made for the webbrowser using p5.js Live demo Require

Mar 23, 2022

Kasada's p.js partially deobfuscated, still has VM logic

Kasada's p.js Deobfuscated The script was obfuscated by replacing most strings with a function to grab the string from an array and decode it. Ex: _0x

Nov 9, 2022

MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are still part of a flow in the AWS cloud remote.

MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are still part of a flow in the AWS cloud remote.

MerLoc MerLoc is a live AWS Lambda function development and debugging tool. MerLoc allows you to run AWS Lambda functions on your local while they are

Dec 21, 2022

πŸš€ A (still experimental) Lyra integration for Astro

Lyra's Astro Plugin This package is a (still experimental) Lyra integration for Astro. Usage Configuring the Astro integration // In `astro.config.mjs

Dec 13, 2022

Fitness Platform with authentication and more (still in development) πŸ‹οΈβ€β™‚οΈπŸ‹οΈ

Fitness Platform with authentication and more (still in development) πŸ‹οΈβ€β™‚οΈπŸ‹οΈ

LB Fitness readme Fitness platform with authentication containing workout plans, diet and blogs. Explore the docs Β» View Demo Table of Contents About

Dec 19, 2022
Comments
  • hello i rewrote the site ok

    hello i rewrote the site ok

    hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok hello i rewrote the site ok

    opened by whosethh 1
Owner
we basically like created crypto_versus aha
null
We are a group of videogame URJC students making a brand new Phaser3.0 browser multiplayer game. Come and support us!

COOKIE MAYHEM - JUEGOS EN RED Este proyecto estΓ‘ sujeto a cambios. Somos un grupo de estudiantes de DiseΓ±o y Desesarrollo de Videojuegos en la Univers

null 6 Dec 19, 2022
A pokemon-like project game where you level up by hacking your neighbor.

CTF BourgPalette A pokemon-like project game where you level up by hacking your neighbor. You play as a new hacker. You are not trying to capture all

VB 23 Dec 27, 2022
Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

Hasbik is a community based social token and the new paradigm in the crypto space. With the goal to build a community around a crypto token.

null 2 Jan 5, 2022
Crypto-tracker - Get crypto currency data in one click. Followed by a few more clicks.

https://crypto-tracker-ayaanzaveri08.vercel.app/ Crypto Tracker Crypto Tracker tracks crypto with the CoinGecko API. This app uses the React framework

Ayaan Zaveri 0 Apr 30, 2022
🌈 Put a date and a crypto, optionally a quantity of that crypto, to see how much has augmented/increased in dollars & percentage

crypif Put a date and a crypto, optionally a quantity of that crypto, to see how much has augmented/increased in dollars & percentage Figma I still ha

Eliaz Bobadilla 8 Apr 4, 2022
Hacking Prodigy, the math game.

Website β€’ Discord β€’ Installation β€’ YouTube How to install See our Quickstart Guide. Info We aren't evil. We aren't evil. Everything is open source, fo

Prodigy P-NP 30 Dec 19, 2022
Clone of the Fallout hacking mini-game, rendered into a browser canvas.

kodenkel-fo-hacking Clone of the Fallout hacking mini-game, rendered into a browser canvas. You can try it out at: https://www.kodenkel.com/games/fo-h

Gabor Major 14 Dec 19, 2022
A powerful, extensible, customizable & rapidly develop hacking framework.

YourN3xt(Beta) A powerful, extensible, customizable & rapidly develop hacking framework. Installations Github: https://github.com/OTAKKATO/YourN3xt N

OTAK 4 Nov 21, 2022
Hacking Instructions for the Nokia 800 Tough (aka Bananaphone with KaiOS)

Nokia 800 Tough Hacking Instructions for Arch Linux host system. I don't care about your messed up Windows, sorry. 1. Android Platform Tools Install t

Cookie Engineer 3 Jul 12, 2022