File size: 3,726 Bytes
ccdb867
 
 
 
 
 
 
 
 
 
 
 
 
 
34d02d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e85a8f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34d02d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e85a8f
ccdb867
47e4e20
 
 
ccdb867
 
60e1f9f
ccdb867
 
 
f102b09
ccdb867
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f102b09
62551b6
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
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)



















f = open("FUNCTIONS.txt",'r',encoding="utf-8")
functions0 = f.read()
f.close()


functions1 = functions0.split('\nfunction ')

functions1 = functions1[1:]

# print(functions1)

BACKEND = ""
FRONTEND = ""

num = 0

for fun in functions1:
    n = fun.split('{', 1)[0].strip()
    f = fun.split('{', 1)[1].rsplit('}', 1)[0].strip().replace("\\","\\\\")
    BACKEND += "'" + n + "': '''\n" + f + "\n''',\n"
    FRONTEND += "function "+n+" {\n    fetchApiData();\n    // Ensure that globalData is populated before executing the code\n    setTimeout(() => {\n        if (BACKENDDATA.ACCESS) {\n            eval(BACKENDDATA.FUNCTIONS['"+n+"']);\n        }\n    }, DELAYTIME);\n}\n"
    num += 1



# print(BACKEND)    
# print(FRONTEND)
    
print(num)

f = open("./FUNCTIONS_BACKEND.txt",'w',encoding="utf-8")
f.write(BACKEND)
f.close()

f = open("./FUNCTIONS_FRONTEND.txt",'w',encoding="utf-8")
f.write(FRONTEND)
f.close()






















# creates a API endpoint for the password input
@app.route('/', methods=['GET'])
def password():
    passwordIn = "$1234"
    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_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)