Giter Site home page Giter Site logo

micahlt / sv2 Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 22 KB

๐Ÿ”“ A next-generation alternative to ScratchVerifier

Home Page: https://sv2-server.herokuapp.com

License: GNU General Public License v2.0

HTML 16.08% CSS 22.97% JavaScript 60.95%
scratch3 llk server express

sv2's Introduction

svยฒ

A next-generation alternative to ScratchVerifier. A public server is available at https://sv2-server.herokuapp.com/

API Reference

GET /api

This requests the status of the server.

Good response:

200 OK

Bad response:

500 Server Error

POST /api/verify

This requests a user's profile to be checked for the code.

Body:

{
  "user": "scratch_username"
}

Good response:

{
  "code": "3Q8Q8UqObPEQocs3UiVHXy2fp2QqcoQVtlu5seN3nb5BZauFTz"
}

Bad response:

406 Not Acceptable

POST /api/verify

Body:

{
  "user": "scratch_username"
}

Good response:

200 OK

Bad response:

403 Forbidden

sv2's People

Contributors

micahlt avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jumping283

sv2's Issues

Kinda broken.

I think this is kinda very flawed.
First, you can do this:

  1. Login to site A
  2. Site A gets code from site B
  3. User posts code
  4. Site A now has control over the account on site B

Use Scratch API to Fetch Comments

This uses an HTML scraper, which is a very bad idea, because then, if the site changes, then you have to read it, and it is generally just harder to maintain. I recommend that you use the Scratch API, so that way you can fetch the verification code from the comments in a more stable way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.