File size: 2,787 Bytes
ccdb867 34d02d9 2e85a8f ccdb867 6208c15 ccdb867 60e1f9f ccdb867 f102b09 ccdb867 f102b09 9c97d98 ccdb867 |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
import flask
import flask_cors
import os
def checkPassword(passwordInput, password):
if (str(passwordInput) == str(password)):
return True
else:
return False
# sets up the app
app = flask.Flask(__name__)
flask_cors.CORS(app)
# creates a API endpoint for the password input
@app.route('/<passwordIn>', methods=['GET'])
def password(passwordIn):
PASSWORD = "1234"
securePassword = "$"+PASSWORD
access = checkPassword(passwordIn, securePassword)
data = {}
# Example data (could be fetched or processed dynamically)
if access:
data = {
'PASSWORD': securePassword,
'PASSWORDINPUT': passwordIn,
'ACCESS': access,
'RIGHTCLICK':
'''
var contextMenu = document.querySelector(".wrapperfortheclick");
window.addEventListener("contextmenu", e => {
e.preventDefault();
let x = e.offsetX, y = e.offsetY,
winWidth = document.body.scrollWidth,
winHeight = document.body.scrollHeight,
cmWidth = contextMenu.offsetWidth,
cmHeight = contextMenu.offsetHeight;
x = x > winWidth - cmWidth ? winWidth - cmWidth : x;
y = y > winHeight - cmHeight ? winHeight - cmHeight : y;
contextMenu.style.left = `${x}px`;
contextMenu.style.top = `${y}px`;
contextMenu.style.visibility = "visible";
});
document.addEventListener("click", () => contextMenu.style.visibility = "hidden");
''',
'LINKS': {
'Listen to Wellerman': 'https://cdn.jsdelivr.net/gh/The-Wellerman-Group/v3@latest/assets/wellerman.mp3',
'Jacob Janzen\'s Website': 'https://jacobinathanialpeterson-thiswillgiveyoualotofmalware.static.hf.space',
'Make a Review': 'https://embed-v2.testimonial.to/c/the-wellerman-group-reviews/?theme=light',
'The Wellerman Group AI': 'https://thewellermangroup-the-wellerman-group-ai.hf.space/',
'Listen to Wellerman': '',
'Listen to Wellerman': '',
}
}
f = open('/FUNCTIONS/FUNCTIONS_BACKEND.txt', 'r', encoding='utf-8')
FCODE = f.read()
f.close()
exec("data.update({'FUNCTIONS': {"+FCODE+"}})")
else:
data = {
'PASSWORD': 'Access Denied',
'PASSWORDINPUT': passwordIn,
'ACCESS': access,
'RIGHTCLICK': 'Access Denied',
'FUNCTIONS': 'Access Denied'
}
return flask.jsonify(data)
if __name__ == "__main__":
app.run(debug=True,host="0.0.0.0",port=5000) |