@Tricksyz/

nitr0us

Python

No description

fork
loading
Files
  • main.py
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from flask import Flask, jsonify, render_template, abort, url_for, redirect
from threading import Thread
from flask_restful import Resource, Api


app = Flask('')
api = Api(app)

def checklogin(code):
  # HWIDs encoded in SHA-1
  if code == "cd4647e2b82b52725785054e4fc57466b5cf3caa":
    return 1
  elif code == "f5c68a496fcc5265174855a61867d663ec79b378":
    return 1
  elif code == "0606c3fd6948c0c070c2b152e21f0fb72abaa8fc":
    return 1
  elif code == "b3d9f59ca2f726fe671d0b1a11b1011e1193a62c":
    return 1
  elif code == "f81c8132b1513fba043b5a9eb0c2f015f6c24e9a":
    return 1
  elif code == "bf9a8691b41e040ade3d032c5a70f69746cb4432":
    return 1
  elif code == "5b44ae28248c82d7e4d1cc2d1a56eab61c767c03":
    return 1
  elif code == "207974c018ba0c058a5d2e13bac7a0e930322005":
    return 1
  elif code == "943e6573f8a1cbdb5c9677ed264a71cbd2bc5cd3":
    return 1
  else:
    return 0
  

class Login(Resource):
  def get(self, code):
    return checklogin(code)

api.add_resource(Login, '/login/<string:code>')


def run():
	app.run(host='0.0.0.0',port=8080)

t = Thread(target=run)
t.start()