-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathxxxxxxx.lua
More file actions
260 lines (252 loc) · 5.89 KB
/
xxxxxxx.lua
File metadata and controls
260 lines (252 loc) · 5.89 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
gg.clearResults()
gg.setRanges(gg.REGION_C_DATA)
gg.searchNumber("-2.2673448e24;-1.36203639e28", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber("-1.36203639e28", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(99)
gg.editAll("0", gg.TYPE_FLOAT)
local app = {}
function Assert(data)
if data == nil or data == "" or data == "nil" then
return false
else
return true
end
end
function mearrass(memory, array)
if Assert(memory) and Assert(array) then
return true
else
return false
end
end
function typetab(array, type)
local datatype = {}
for i = 1, #array do
if Assert(array[i].type) then
table.insert(datatype, i, array[i].type)
else
if Assert(type) then
table.insert(datatype, i, type)
else
return false
end
end
end
return true, datatype
end
function app.memorysearch(memory, array, type)
gg.setVisible(false)
local rx = mearrass(memory, array)
if rx then
local rx, datatype = typetab(array, type)
if rx then
if Assert(array[1].hv) then
gg.clearResults()
gg.setRanges(memory)
gg.searchNumber(array[1].lv .. "~" .. array[1].hv, datatype[1])
else
gg.clearResults()
gg.setRanges(memory)
gg.searchNumber(array[1].lv, datatype[1])
end
if gg.getResultCount() == 0 then
return false
else
local tab = {}
local data = gg.getResults(gg.getResultCount())
gg.clearResults()
for i = 1, #data do
data[i].rx = true
end
for i = 2, #array do
local t = {}
local offset = array[i].offset
for x = 1, #data do
t[#t + 1] = {}
t[#t].address = data[x].address + offset
t[#t].flags = datatype[i]
end
local t = gg.getValues(t)
for z = 1, #t do
if Assert(array[i].hv) then
if tonumber(t[z].value) < tonumber(array[i].lv) or tonumber(t[z].value) > tonumber(array[i].hv) then
data[z].rx = false
end
else
if tostring(t[z].value) ~= tostring(array[i].lv) then
data[z].rx = false
end
end
end
end
for i = 1, #data do
if data[i].rx then
tab[#tab + 1] = data[i].address
end
end
if #tab > 0 then
return true, tab
else
return false
end
end
else
print("type Parameter error")
gg.toast("typeParameter error")
os.exit()
end
else
print("memory or array Parameter error")
gg.toast("memory or array Parameter error")
os.exit()
end
end
function app.memoryread(addr, type)
local t = {}
t[1] = {}
t[1].address = addr
t[1].flags = type
if #t > 0 then
return true, gg.getValues(t)[1].value
else
return false
end
end
function app.memorywrite(addr, type, value, freeze)
local t = {}
t[1] = {}
t[1].address = addr
t[1].flags = type
t[1].value = value
if #t > 0 then
if Assert(freeze) then
t[1].freeze = freeze
--gg.setValues(t)
return gg.addListItems(t)
else
return gg.setValues(t)
end
else
return false
end
end
-------------------------------------------------------------------------------------------
function Main()
RX = gg.prompt({
'Turn On ESP',
'EXIT',},
{},
{"checkbox","checkbox",})
if RX == nil then else
if RX[1] == true then A()end
if RX[7] == true then Exit()end
end
RXY=0
end
function A()
local memory = 8
local array = {
{["lv"] = 2.6253291e-27, ["type"] = 16},
{["lv"] = 6.1629971e-33, ["offset"] = 4, ["type"] = 16},
{["lv"] = -4.5748159e22, ["offset"] = 8, ["type"] = 16},
{["lv"] = -9.156971e22, ["offset"] = 12, ["type"] = 16},
}
local rx, data = app.memorysearch(memory, array)
if rx then
for i = 1, #data do
app.memorywrite(data[i] +0, 16, 2.6253293e-27,true)
end
gg.toast("Take the gun circle through and open successfully")
else
gg.toast("Failed to open the gun through the circle")
end
local array = {
{["lv"] = -2.9522003e20, ["type"] = 16},
{["lv"] = -2.9525603e20, ["offset"] = 4, ["type"] = 16},
{["lv"] = -9.9065615e27, ["offset"] = 8, ["type"] = 16},
{["lv"] = -5.9029581e21, ["offset"] = 12, ["type"] = 16},
}
local rx, data = app.memorysearch(memory, array)
if rx then
for i = 1, #data do
app.memorywrite(data[i] +12, 16, -5.9029587e21,true)
end
gg.toast("Successfully unlocked with a gun")
else
gg.toast("Failed to unlock with gun lock")
end
local array = {
{["lv"] = -9.9839328e27, ["type"] = 16},
{["lv"] = -3.8685626e25, ["offset"] = 4, ["type"] = 16},
{["lv"] = -6.1549554e27, ["offset"] = 8, ["type"] = 16},
{["lv"] = -1.3697734e28, ["offset"] = 12, ["type"] = 16},
}
local rx, data = app.memorysearch(memory, array)
if rx then
for i = 1, #data do
app.memorywrite(data[i] +0, 16, -9.9839906e27,true)
end
gg.toast("The lock frequency is turned on successfully")
else
gg.toast("Failed to turn on the lock frequency")
end
local array = {
{["lv"] = -3.6965549e20, ["type"] = 16},
{["lv"] = -8.7366122e22, ["offset"] = 4, ["type"] = 16},
{["lv"] = -3.8369228e21, ["offset"] = 8, ["type"] = 16},
{["lv"] = 5.8191335e-26, ["offset"] = 12, ["type"] = 16},
}
local rx, data = app.memorysearch(memory, array)
if rx then
for i = 1, #data do
app.memorywrite(data[i] +0, 16, -3.6965553e20,true)
end
gg.toast("Successful shooting")
else
gg.toast("Failed to open gun and lock")
end
local array = {
{["lv"] = -3.8685626e25, ["type"] = 16},
{["lv"] = -6.1526668e27, ["offset"] = 4, ["type"] = 16},
{["lv"] = -1.2811952e23, ["offset"] = 8, ["type"] = 16},
{["lv"] = -1.1159009e28, ["offset"] = 12, ["type"] = 16},
}
local rx, data = app.memorysearch(memory, array)
if rx then
for i = 1, #data do
app.memorywrite(data[i] +0, 16, -3.8685631e25,true)
end
gg.toast("Lie down and lock the person successfully")
else
gg.toast("Failed to unlock when lying down")
end
local array = {
{["lv"] = 1.6615354e35, ["type"] = 16},
{["lv"] = -1.1221873e28, ["offset"] = 4, ["type"] = 16},
{["lv"] = 1.6615354e35, ["offset"] = 468, ["type"] = 16},
{["lv"] = -1.1221873e28, ["offset"] = 472, ["type"] = 16},
}
local rx, data = app.memorysearch(memory, array)
if rx then
for i = 1, #data do
app.memorywrite(data[i] +0, 16, 1.6615352e35,true)
app.memorywrite(data[i] +468, 16, 1.661535e35,true)
end
gg.toast("Oversized prediction opened successfully")
else
gg.toast("Oversized prediction failed to open")
end
end
function Exit()
gg.toast(os.date"Exit script successfully……\n当前时间:%Y年%m月%d日%H时%M分%S秒")
os.exit()
end
while true do
if gg.isVisible(true) then
RXY = 1
gg.setVisible(false)
end
if RXY == 1 then
Main()
end
end